简体   繁体   English

如何使用 Z2A2D595E6ED9A0B234D6B7 将 log4j.xml、应用程序属性和 jar 外部化?

[英]How do I externalize log4j.xml,application properties and jar using spring boot?

I created a spring boot project and wanted to externalize log4j.xml, application property file and jar,so that I can create a bat file and run the spring boot application through this command I created a spring boot project and wanted to externalize log4j.xml, application property file and jar,so that I can create a bat file and run the spring boot application through this command

java -Dlog4j.configuration=file:/temp/log4j.xml -jar temp/ltstatus.jar -Dspring.config.location=temp/application.properties java -Dlog4j.configuration=file:/temp/log4j.xml -jar temp/ltstatus.jar -D04A9D2AC40Z-D04A9D2AC40Z-D04A9D2AC40Z -D04A9D2AC40Z

Replace temp as your folder path将 temp 替换为您的文件夹路径

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM