Specify the configuration file when the jar package starts application.yml
nohup java -jar XXXX.jar --spring.config.location=//application.yml > //nohup.out 2>&1 &
Specify the configuration file when the jar package starts application.yml
nohup java -jar XXXX.jar --spring.config.location=//application.yml > //nohup.out 2>&1 &