根据报错信息,说明配置属性名中不能使用下划线(_)作为分隔符,而应该使用连字符(-)。同时,属性名中只能使用小写字母、数字和连字符,并且必须以字母开头。

因此,需要将配置属性名修改为符合要求的格式。比如将原来的属性名spring.shardingsphere.rules.sharding.sharding-algorithms.dev_transfer-auto.props修改为spring.shardingsphere.rules.sharding.sharding-algorithms.dev-transfer-auto.props。修改后重新运行项目即可。

springboot 项目配置sharding jdbc时候报错:DescriptionConfiguration property name springshardingsphererulesshardingsharding-algorithmsdev_transfer-autoprops is not valid Invalid characters _ Reason Canoni

原文地址: https://www.cveoy.top/t/topic/eCjZ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录