报错No active profile set, falling back to default profiles

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 @ 2018-12-28 15:27  bihang  阅读(50784)  评论(4编辑  收藏  举报