1. jar同级 创建config文件夹 把配置文件 放到 config中, 2.启动jar java -jar test-0.0.1-SNAPSHOT.jar --spring.config.location=file:./config/