What is the difference between the format of spring boot configuration file?

Alibaba cloud Q & A 2022-02-13 09:16:24 阅读数:56

difference format spring boot configuration

spring boot What is the difference between the format of the configuration file ?




Take the answer 1:

The main difference between them is that they have different writing forms . 1).properties app.user.name = javastack 2).yml app: user: name: javastack in addition ,.yml Format not supported @PropertySource Annotation import configuration .


copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130916223127.html