SpringBoot Sharding JDBC 配置报错:属性名命名规范错误
根据报错信息,说明配置属性名中不能使用下划线(_)作为分隔符,而应该使用连字符(-)。同时,属性名中只能使用小写字母、数字和连字符,并且必须以字母开头。
因此,需要将配置属性名修改为符合要求的格式。比如将原来的属性名spring.shardingsphere.rules.sharding.sharding-algorithms.dev_transfer-auto.props修改为spring.shardingsphere.rules.sharding.sharding-algorithms.dev-transfer-auto.props。修改后重新运行项目即可。
原文地址: https://www.cveoy.top/t/topic/nTJg 著作权归作者所有。请勿转载和采集!