Right path to applicationContext.xml using ClassPathXmlApplicationContext

后端 未结 5 1793
渐次进展
渐次进展 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 14:03

    private static final ApplicationContext ac =
    new FileSystemXmlApplicationContext(
        "/WEB-INF/config/applicationContext.xml"
    );
    

提交回复
热议问题