开发者

Spring .properties file in located in classpath

If I do

<value>classpath:site/properties/default/placeholder.properties</value>

What does the classpath: actually mean? Does that mean my properties file needs to be in a place that won't be easily updateable? I would like a .properties file to be in a location where a webmaster can change settings on the fly if needed. Can you still do that with 开发者_如何学Goa .properties file located in the classpath:?


classpath: points to files located in the classes directory. In other words, your placeholder.properties is located in <classes-dir>/site/properties/default directory. I don't think the webmaster is allowed to change the settings on the fly once you deployed the project, I mean, you could change it, but it probably won't take effect at all.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜