主要有.properties 和 .yml格式,它们的区别主要是书写格式不同。另外,.yml 格式不支持 @PropertySource 注解导入配置。
Spring Boot 的配置文件有哪几种格式?它们有什么区别?
最新推荐文章于 2024-08-12 04:51:41 发布
主要有.properties 和 .yml格式,它们的区别主要是书写格式不同。另外,.yml 格式不支持 @PropertySource 注解导入配置。