spring boot启动报错:No active profile set, falling back to default profiles: default

来源:互联网 发布:苹果远程桌面连接软件 编辑:程序博客网 时间:2024/05/24 05:08

在基于spring boot的hello world下添加
<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>1.4.1.RELEASE</version><relativePath/></parent>

启动失败,日志有如下记录:

No active profile set, falling back to default profiles: default

原因:
1. yml文件放错了位置,具体是在src/main/resources(这个可以在spring-boot-starter-parent的pom文件里查看)
2. .m2里的jar包没有下完全,删了,然后update project
阅读全文
0 0