spring boot 学习篇(-)

 

1、多环境配置 

spring.profiles.active=local
激活使用哪个环境配置

 

 

2、java -jar xx.jar --spring.profiles.active=test

3、加入 spring-boot-starter-actuator

1)启动时候会打印:

2)可以通过原来端点查看配置信息和运行的一些信息,如:/autoconfig 、/beans、/env、/mappings、/info等等

 

posted on 2018-10-10 09:51  Legend_yan  阅读(100)  评论(0编辑  收藏  举报