Right path to applicationContext.xml using ClassPathXmlApplicationContext

后端 未结 5 1848
渐次进展
渐次进展 2021-02-03 13:03

I have working web-application with applicationContext.xml in WEB-INF/config/applicationContext.xml. Now i need to implement some testing tool as standalone application, that ca

5条回答
  •  青春惊慌失措
    2021-02-03 13:37

    This is the reason why I prefer to put all configuration files in classes folder. In fact, using Maven, you can put all these files in src/main/resources. Then, in your test files you can access as 'classpath:applicationContext.xml'.

提交回复
热议问题