如果不同环境有不同application-${}.properties,则在eclipse中需要设置环境变量

spring boot出现no profiles are currently active

工程右键maven-》select maven profiles,勾选环境

spring boot出现no profiles are currently active

 

如果上述步骤不行,再试一下

 

在启动类上右键run as-》run configuration

spring boot出现no profiles are currently active

相关文章:

  • 2021-07-25
  • 2022-12-23
  • 2021-06-09
  • 2021-07-08
  • 2022-12-23
  • 2021-10-16
猜你喜欢
  • 2021-08-09
  • 2021-08-15
  • 2021-06-04
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2021-12-09
相关资源
相似解决方案