Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个spring boot项目,想将log4j.xml、应用程序属性文件和jar外化,这样我就可以创建一个bat文件并通过这个命令运行spring boot应用程序
java -Dlog4j.configuration=file:/temp/log4j.xml -jar temp/ltstatus.jar -Dspring.config.location=temp/application.properties
将 temp 替换为您的文件夹路径