javaEE applicationContext.xml 放到WEB-INF下 class获得bean方法

来源:互联网 发布:增值税发票软件app 编辑:程序博客网 时间:2024/06/03 22:52
Resource resource = new ClassPathResource("../applicationContext.xml");
BeanFactory factory = new XmlBeanFactory(resource);
原创粉丝点击