核心命令如下:

java -jar xxx.jar --spring.profiles.active=prod

通过–spring.profiles.active指定不同的环境(如开发、测试、生产等)。

这非常重要因为涉及到部署脚本的编写。

相关文章:

  • 2021-07-20
  • 2022-12-23
  • 2022-01-04
  • 2021-05-10
  • 2021-06-03
  • 2022-01-31
猜你喜欢
  • 2022-12-23
  • 2021-11-14
  • 2021-11-25
  • 2021-11-11
  • 2021-12-24
  • 2022-01-04
  • 2021-11-08
相关资源
相似解决方案