你用的sping,很容易:
ApplicationContext ctx=new FileSystemXmlApplicationContext(path+"bean.xml");
RxRepository rxRepository= (RxRepository) ctx.getBean("rxRepository");
rxRepository.getUserName();
rxRepository.getPassWord();
ApplicationContext ctx=new FileSystemXmlApplicationContext(path+"bean.xml");
RxRepository rxRepository= (RxRepository) ctx.getBean("rxRepository");
rxRepository.getUserName();
rxRepository.getPassWord();
解决方案 »
- ant到底是做什么用的
- web负载,请有经验的人指导一下,谢谢
- 这是个啥错?在网上搜没有哦~
- MyEclipse加载项目框架的时候为什么那些数据流和数据类型都报错?
- (转贴)程序员职业的发展前景及成为程序员所要具备的几个条件
- 在MyEclipse 中 加入Struts +hibernate 之后,myeclipse 就卡死了
- 在8个号码中任意取6个组成一串,不允许重复,将所有可能结果保存在一个字符串数组中,请问如何实现?
- 怎样通过eclipse启动tomcat 5.0
- 关于一个画面中两个frame的问题
- 如果实现杀毒软件中的定时杀毒功能
- 写了个hibernate简单程序,结果报这种错。谁知道原因?
- 90分,hibernate映射问题!顶都有分!解决马上结贴!!!急
List elementList = root.getChildren();
然后第归遍历找