工具类-ApplicationContextUtil

 1 package com.zhouyy.netBank.util;
 2 
 3 import org.springframework.beans.BeansException;
 4 import org.springframework.context.ApplicationContext;
 5 import org.springframework.context.ApplicationContextAware;
 6 
 7 public class ApplicationContextUtil implements ApplicationContextAware {
 8 
 9     private static ApplicationContext context;
10 
11 
12     public void setApplicationContext(ApplicationContext context) throws BeansException {
13         this.context = context;
14     }
15 
16     public static ApplicationContext getContext() {
17         return context;
18     }
19 }

 

工具类-ApplicationContextUtil

上一篇:货物移动BAPI:BAPI_GOODSMVT_CREATE报错提示“不能执行功能模块 MB_CREATE_GOODS_MOVEMENT”的原因


下一篇:sqlserver apply