报 错 : N o a c t i v e p r o f i l e s e t , f a l l i n g b a c k t o d e f a u l t p r o f i l e s 报错: No active profile set, falling back to default profiles 报错:Noactiveprofileset,fallingbacktodefaultprofiles
原 因 : 未 配 置 W e b 容 器 。 原因:未配置Web容器。 原因:未配置Web容器。
解 决 办 法 : p o m . x m l 加 上 下 面 两 个 依 赖 解决办法: pom.xml加上下面两个依赖 解决办法: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>