在运行Springboot项目的时候出现No active profile set, falling back to 1 default profile: “default“
在运行Springboot项目的时候出现No active profile set, falling back to 1 default profile: “default”如果依赖配置了,打开Edit Configurations。
·
问题
在运行Springboot项目的时候出现No active profile set, falling back to 1 default profile: “default”
原因
没有配置启动依赖
解决1
配置如下依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
解决2
如果依赖配置了,打开Edit Configurations
修改Environment vatiables为:
spring.profiles.active=application
更多推荐
已为社区贡献1条内容
所有评论(0)