Adding a directory to tomcat classpath and read the property file in spring

后端 未结 3 357
梦毁少年i
梦毁少年i 2021-02-03 23:29

I am trying to read the test1.properties file which is located at an external folder.

here is my spring config file:



        
3条回答
  •  被撕碎了的回忆
    2021-02-04 00:24

    Ok.. finally fixed it.. I had been doing it correctly this whole time.. it was my IDE which caused the problem. The IDE was not picking up the changes in the catalina.properties file. I had to delete the server config in my IDE and re configure it.

    these links were helpful in general:

    Adding a directory to tomcat classpath

    http://www.mulesoft.com/tomcat-classpath#solutions

提交回复
热议问题