摘要: 自定义配置文件(跟SpringBoot的application.yml同一目录下): 映射为对象,代码如下: 调试发现竟然不识别, @PropertySource 不支持yml文件的对象转换,原因如下,看源码:他的默认构造工厂是PropertySourceFactory 而PropertySourc 阅读全文
posted @ 2019-07-30 20:19 花花牛 阅读(9732) 评论(0) 推荐(0) 编辑