问题描述
修改服务的配置文件中mysql链接信息后启动时报错提示:
Failed to bind properties under 'spring.datasource.dynamic.datasource.master' to com.baomidou.dynamic.datasource.creator.DataSourceProperty:
Reason: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [com.baomidou.dynamic.datasource.creator.DataSourceProperty]
Action:
Update your application's configuration
原因分析:
配置文件格式不对,添加注释之后没有注意缩进
解决方案:
修改格式如下