1.idea导入一个maven项目后,并没有正确识别springboot相应的配置,如图

idea导入工程后,不识别spring boot项目下的 application.yml

 

图1:正常情况下 resources颜色是黄色的, resources下的文件应该是绿色的;
这里是由于导入maven项目的原因,idea插件没能正确识别resources这个目录;

 

不过我们有解决办法:
再idea中,单击 resources 右键

idea导入工程后,不识别spring boot项目下的 application.ymlidea导入工程后,不识别spring boot项目下的 application.yml

 

相关文章:

  • 2021-07-18
  • 2021-12-15
  • 2021-06-20
  • 2022-12-23
  • 2021-10-09
  • 2021-09-13
  • 2021-07-20
猜你喜欢
  • 2021-08-13
  • 2021-05-15
  • 2021-11-12
  • 2021-04-19
  • 2021-10-25
  • 2021-05-20
  • 2022-02-21
相关资源
相似解决方案