这在Spring程序启动时没有找到默认的配置文件所引发的错误,默认文件application.yml如下图: 
SpringCloud 启动时报No active profile set, falling back to default profiles default

一般在项目中都会有多个,如有正式环境、测试环境等。如下图:

SpringCloud 启动时报No active profile set, falling back to default profiles default

根据上面这种多个配置的只需要IDEA配置下,如下面三张图:

第一步

SpringCloud 启动时报No active profile set, falling back to default profiles default

第二步

SpringCloud 启动时报No active profile set, falling back to default profiles default

第三步

SpringCloud 启动时报No active profile set, falling back to default profiles default

相关文章:

  • 2021-05-20
  • 2021-12-09
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
  • 2021-12-05
  • 2021-10-01
  • 2021-09-19
猜你喜欢
  • 2021-06-09
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案