在springboot自动生成的配置文件是application.properties,这时只要把.properties改为.yaml就可以用了。

但是如果自己新加一个yaml文件,加了之后会出现这样记一下用idea第一次如何在springboot新建yaml图标的文件,这样的文件看起来不正常,能不能用我不知道,最起码不带自动提示,带提示的应该是这样的记一下用idea第一次如何在springboot新建yaml,下面讲一下如何转换:

上图:

记一下用idea第一次如何在springboot新建yaml

记一下用idea第一次如何在springboot新建yaml


记一下用idea第一次如何在springboot新建yaml


记一下用idea第一次如何在springboot新建yaml

剩下的一路ok就行了

记一下用idea第一次如何在springboot新建yaml


相关文章:

  • 2021-12-12
  • 2021-04-13
  • 2021-12-07
  • 2021-10-16
  • 2021-05-02
  • 2021-12-10
  • 2021-11-20
  • 2022-12-23
猜你喜欢
  • 2021-06-19
  • 2021-12-27
  • 2021-10-18
  • 2021-08-25
  • 2021-12-02
  • 2021-12-19
  • 2021-08-30
相关资源
相似解决方案