Spring Boot 启动:No active profile set, falling back to default profiles: default
启动 Spring Boot 失败,但是没有出现多余的异常信息:


在pom.yml加上下面两个依赖
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
博客主要讲述Spring Boot启动失败,提示‘No active profile set, falling back to default profiles: default’且无多余异常信息的问题,还提到可在pom.yml中添加两个依赖来解决。


被折叠的 条评论
为什么被折叠?



