我有一个外部配置文件(外部 jar)。我尝试运行并期望外部文件中的值将覆盖内部文件中的值(application.properties在\resource\- jar 文件中)。我阅读文档并尝试这个:
java -jar ccgame-1.0.jar --spring.config.location=classpath:/application.properties,file:/production.properties
Run Code Online (Sandbox Code Playgroud)
这不起作用。
我的 jar 文件位于\target\目录和我的production.properties太(at \target\)
我该如何解决我的问题?