Right path to applicationContext.xml using ClassPathXmlApplicationContext

后端 未结 5 1791
渐次进展
渐次进展 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:54

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

提交回复
热议问题