Spring Boot 启动:No active profile set, falling back to default profiles: default

 

 

 

 检查之后发现是依赖的问题(之前依赖的是 spring-boot-starter),修改即可:

pom.xml加上下面两个依赖

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
  <groupId>org.springframework.cloud</groupId>
  <artifactId>spring-cloud-starter-config</artifactId>
</dependency>

 

加完后:

 

posted @ 2020-04-22 14:39  秃了也变强了  阅读(887)  评论(0编辑  收藏  举报