Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
320 views
in Technique[技术] by (71.8m points)

java - Spring boot JAR as windows service AND external application.yml

I packaged my spring boot application into a jar and I made it as a web service via apache tomcat 9 with a .bat file.

on the other hand the externalization of application-prod.yml does not work and the .yml file is ignored in the same path as the jar.

how can I do it please


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

use packaging tools to package,such as maven. if you use maven,you should config packaging plugins


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...