springboot先读取指定文件夹中配置项
项目执行命令
-Dspring.config.additional-location=file:/www/wwwroot/../config/
例如:
/usr/local/btjdk/jdk8/bin/java -jar -Xmx1024M -Xms256M -Dspring.config.additional-location=file:/www/wwwroot/ruoyi-pub/config/ /www/wwwroot/ruoyi-pub/ruoyi-pub.jar --server.port=8081