config files for a webapplication - load once and store where?

后端 未结 4 1148
礼貌的吻别
礼貌的吻别 2020-12-09 21:46

I have a bunch of properties (configurations) that can change per environment. However these values do not change once the web application is deployed.So consider that there

4条回答
  •  长情又很酷
    2020-12-09 22:20

    Put your configuration classes/properties in a jar file, and put that jar file in WEB-INF/lib. Then you can access them through the normal classpath resource facilities whereever you need to in your web application.

提交回复
热议问题