Load environment-specific properties for use with PropertyPlaceholderConfigurer?

后端 未结 8 1218
夕颜
夕颜 2020-12-23 17:24

This seems like a pretty common problem, but I haven\'t found any sort of consensus on the best method, so I\'m posing the question here.

I\'m working on a command-l

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-23 17:57

    I use the classpath option and adjust the classpath per environment in Jetty. In the jetty-maven-plugin you can set a directory for testclasses and have your testresources located there.

    For non-local environments (test / production) I use an environment flag and send the appropriate files to the $JETTY_HOME/resources folder (which is built into Jetty's classpath)

提交回复
热议问题