nohup java -jar authentication-1.0.0-SNAPSHOT.jar --spring.cloud.bootstrap.location=/opt/service/bootstrap.yml > /opt/service/cas.log
代码内获取外部化配置文件路径:
@Value("${spring.cloud.bootstrap.location}")
private String path;
nohup java -jar authentication-1.0.0-SNAPSHOT.jar --spring.cloud.bootstrap.location=/opt/service/bootstrap.yml > /opt/service/cas.log
代码内获取外部化配置文件路径:
@Value("${spring.cloud.bootstrap.location}")
private String path;