两个文件可以同时共存,但是有优先级,优先加载properties,SpringBoot官方推荐yaml/yml(两种结尾效果一样)

推荐一个在线转换工具:https://toyaml.com/index.html

转换的结果里如果有(自己写的配置,自定义的配置,那种没有提示的配置),还是稍做修改

SpringBoot+properties+转+yaml/yml

注入须知:2步走

SpringBoot+properties+转+yaml/yml

相关文章: