idea引入spring-boot项目不识别 yml文件

在svn上导入spring-boot项目时候启动报错。

仔细查看原因 发现

tomcat启动端口为:8080 

idea引入spring-boot项目不识别 yml文件

而我设置的YML文件为8888

idea引入spring-boot项目不识别 yml文件

由此可以发现是没有编译文件。

idea引入spring-boot项目不识别 yml文件

ctral+shift+alt+s 进入发现 没有;

解决方法:1:选中,2 点击 resources 3 apply 

idea引入spring-boot项目不识别 yml文件

即可,