AppContext
来源:互联网 发布:宜学贷总是网络不给力 编辑:程序博客网 时间:2024/05/21 05:40
package org.yyj.util;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class AppContext {
private static AppContext instance;
private ApplicationContext appContext;
public synchronized static AppContext getInstance() {
if (instance == null) {
instance = new AppContext();
}
return instance;
}
private AppContext() {
this.appContext = new ClassPathXmlApplicationContext("applicationContext.xml");
}
public ApplicationContext getAppContext() {
return appContext;
}
public static void main(String args[]){
System.out.println(AppContext.getInstance().getAppContext().toString());
}
}
0 0
- AppContext
- src/number/appContext.xml
- 小球运动Android AppContext
- Android中Activity全局共享方法AppContext
- AppContext,开发的时候 存储每个用户的信息
- java.util.NoSuchElementException: No mapping for class sun.awt.AppContext
- Caused by: java.lang.ClassNotFoundException: Didn't find class "net.oschina.app.AppContext" on path:
- hibernate.cfg.xml
- Codeforces 466E Information Graph(dfs+并查集)
- 工具类
- freemarker中文乱码问题
- oracle.jdbc.driver连接数据库
- AppContext
- oracle手动创建表空间,用户,和授权
- oracle分别使用jdbc和hibernate的例子
- 数据结构 第一章绪论【思维导图】
- xmlHttpRequest对象的使用
- 级联菜单,省市级联菜单
- MyEclipse中js中不能放中文解决办法
- 如何使用预订进行计划收货
- 高通平台修改msm8916_defconfig