SpringBoot启动报
No active profile set, falling back to default profiles: default
将以来修改为
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
即可。
本文介绍了解决SpringBoot启动时未设置活动配置文件,导致回退到默认配置的问题。通过修改Maven依赖,将spring-boot-starter-web依赖加入项目,可有效解决此问题。
SpringBoot启动报
No active profile set, falling back to default profiles: default
将以来修改为
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
即可。
5544
4642
1万+
304
25万+

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