如图eclipse 使用两个配置文件启动一个服务的方式
我一个springBoot有两个配置文件,此时,使用启动类启动项目时使用
Run Configurations
eclipse 使用两个配置文件启动一个服务的方式
到Arguments中输入–spring.profiles.active=two,即可启动后缀为two的配置文件

相关文章:

  • 2022-12-23
  • 2021-09-27
  • 2021-10-16
  • 2022-02-27
  • 2021-06-01
  • 2021-06-05
  • 2021-09-28
  • 2022-01-19
猜你喜欢
  • 2022-12-23
  • 2021-12-03
  • 2021-08-17
  • 2022-12-23
  • 2021-10-20
  • 2021-05-03
  • 2022-12-23
相关资源
相似解决方案