今天用到了设置多个spring2 xml文件,因为设置多个可以更容易去维护和管理。
我新增了一个beans-config.xml文件,里面放一些特殊的bean设置,但是存在了与ApplicationContext.xml中bean的引用关系,
我在beans-config.xml文件中开头写上:
这样没什么问题,所涉及到的逻辑正常,同样的道理我在ApplicationContext.xml文件设置
同时在web.xml加上了
我新增了一个beans-config.xml文件,里面放一些特殊的bean设置,但是存在了与ApplicationContext.xml中bean的引用关系,
我在beans-config.xml文件中开头写上:
- <import resource="applicationContext.xml"/>
- <import resource="beans-config.xml"/>