Location of ApplicationContext.xml and properties file in spring

前端 未结 2 1601
生来不讨喜
生来不讨喜 2021-02-06 18:25

In my application I have placed the ApplicationContext xml file in src and the project is working fine.
Can we place the ApplicationContext.xml in

2条回答
  •  北荒
    北荒 (楼主)
    2021-02-06 18:59

    Yes you can.

    If you put the files directly inside WEB-INF that should work.

    If you want to put them in a folder called WEB-INF/conf you would need to change the properties location to refer to conf/LicenseSettings.properties

提交回复
热议问题