如下图所示,在Idean的Edit configurations中编辑应用,第一种,配置VM options的参数时要以:-DparamName的格式设置参数。

第二种,配置程序参数,program arguments,使用 --paramName 的格式,也能设置程序参数。

[总结] Idean两种方式设置spring boot应用配置参数

[总结] Idean两种方式设置spring boot应用配置参数

相关文章:

  • 2021-11-23
  • 2023-03-09
  • 2021-07-09
  • 2021-11-04
  • 2021-06-27
猜你喜欢
  • 2022-02-20
  • 2022-12-23
  • 2021-07-15
  • 2021-06-26
  • 2021-06-29
相关资源
相似解决方案