What is the best place to store a configuration file in a Java web application (WAR)?

后端 未结 6 1593
猫巷女王i
猫巷女王i 2020-12-23 01:54

I create a web application (WAR) and deploy it on Tomcat. In the webapp there is a page with a form where an administrator can enter some configuration data. I don\

6条回答
  •  长情又很酷
    2020-12-23 02:44

    Putting it in WEB-INF will hide the XML file from users who try to access it directly through a URL, so yes, I'd say put it in WEB-INF.

提交回复
热议问题