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

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

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

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

第一步

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

第二步

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

第三步

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

配置好后,就会发现程序可以正常启动了

相关文章:

  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2021-12-05
  • 2021-08-15
  • 2021-07-14
猜你喜欢
  • 2022-01-31
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
相关资源
相似解决方案