BeanFactory和ApplicationContext读取xml配置文件
2015-09-18 11:55
375 查看
1,BeanFactory container=new XmlBeanFactory(new ClassPathResource("配置文件路劲"));
2,ApplicationContext container=new ClassPathXmlApplicationContext("配置文件路劲");
3,ApplicationContext container=new FileSystemXmlApplicationContext("配置文件路劲");
2,ApplicationContext container=new ClassPathXmlApplicationContext("配置文件路劲");
3,ApplicationContext container=new FileSystemXmlApplicationContext("配置文件路劲");
相关文章推荐
- android 修改系统的dialog样式
- android 修改系统的dialog样式
- android 修改系统的dialog样式
- android 修改系统的dialog样式
- android 修改系统的dialog样式
- android 修改系统的dialog样式
- iOS每日一记之——————iOS9系统策略更新
- IOS-手机来电或者第三方音频打断当前播放
- IOS单例
- Android实现Service获取当前位置(GPS+基站)的方法
- Android Studio系列教程四--Gradle基础
- [转]微信公众号配置
- Android中内存泄露监测
- C++标准库:bitset 用法整理 (来自网易 happyboy200032的博客)
- 在Json解析过程中,我为什么用object1.optInt ,和 object1.optString
- 适配 ios 9
- IOS9之BitCode
- Android代码截屏
- 关于xcode7的一些问题
- android 透明的activity