问题
在运行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