Precedence order among properties file, YAML file, and Command Line arguments in SpringBoot

后端 未结 2 770
借酒劲吻你
借酒劲吻你 2020-12-30 01:45

I have been using application.properties files since long in my Spring application. But recently I came across application.yaml files. What is the

2条回答
  •  我在风中等你
    2020-12-30 02:13

    In simple words,

    if you have yaml and properties file both and same key in both, then spring boot will look first in properties and if not found then will go to yaml.

提交回复
热议问题