如题。
SpringBoot2.0后
我在做多数据源注册时获取配置文件信息时发现RelaxedPropertyResolver无法使用了。
经过查询是springboot2.0后删除了RelaxedPropertyResolver。
按官方文档来说我现在需要怎么做才能达到跟以前的效果
或者哪位大神有2.0以后的方法,求指导一下。
用 注解注入
@Value("${spring.datasource.name}")
private String name;
然后处理字符串就好啦
你的话就是
@Value("${custom.datasource.names}")
private String name;
@Value("${custom.datasource.names}")
private String name;
https://blog.csdn.net/terry7/article/details/51996739
2.0不用@ConfigurationProperties了吗
2.0没自动配置了?