Spring启动的时候没有报错,启动不起来,然后查看之后发现以上语句
No active profile set, falling back to default profiles: default
,没有多余的异常信息
解决方法
pom.xml添加如下的依赖
<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>
然后等导入成功之后,再次启动错误解决了