读取web-inf目录下的spring配置文件

项目结构  ApplicationContext applicationContext = new FileSystemXmlApplicationContext("src/main/webapp/WEB-INF/smart-context.xml"); this.userService = (UserService)applicationContext.getBean("userService"
相关文章
相关标签/搜索