DishJi opened a new issue #8300:
URL: https://github.com/apache/shardingsphere/issues/8300
**Question**
Caused by:
org.springframework.boot.context.properties.source.InvalidConfigurationPropertyNameException:
Configuration property name
'spring.shardingsphere.rules.sharding.sharding-algorithms.user_record_standard.props'
is not valid
**Version**
Springboot2.2.9 | mybatis-plus| shardingsphere-jdbc-core-spring-boot-starter
5.0.0-alpha
**Config**
```
spring:
shardingsphere:
rules:
sharding:
default-data-source-name: ds0
tables:
user_record:
actual-data-nodes:
ds0.user_record,ds0.user_record_$->{2019..2022}
table-strategy:
standard:
sharding-column: user_id
sharding-algorithm-name: user_record_standard
sharding-algorithms:
user_record_standard:
type: UserRecordShardingAlgorithm
props:
allow-range-query-with-record-sharding: false
```
**Exception**
```
Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
at
org.springframework.util.ReflectionUtils.rethrowRuntimeException(ReflectionUtils.java:147)
at
org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:810)
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:325)
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
at
cn.wx.provider.SmartlearningApplication.main(SmartlearningApplication.java:19)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.apache.shardingsphere.spring.boot.util.PropertyUtil.v2(PropertyUtil.java:109)
at
org.apache.shardingsphere.spring.boot.util.PropertyUtil.handle(PropertyUtil.java:75)
at
org.apache.shardingsphere.spring.boot.registry.AbstractAlgorithmProvidedBeanRegistry.lambda$registerBean$1(AbstractAlgorithmProvidedBeanRegistry.java:57)
at java.lang.Iterable.forEach(Iterable.java:75)
at
org.apache.shardingsphere.spring.boot.registry.AbstractAlgorithmProvidedBeanRegistry.registerBean(AbstractAlgorithmProvidedBeanRegistry.java:55)
at
org.apache.shardingsphere.sharding.spring.boot.algorithm.ShardingAlgorithmProvidedBeanRegistry.postProcessBeanDefinitionRegistry(ShardingAlgorithmProvidedBeanRegistry.java:38)
at
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:280)
at
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:126)
at
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:707)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:533)
at
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
... 3 more
Caused by:
org.springframework.boot.context.properties.source.InvalidConfigurationPropertyNameException:
Configuration property name
'spring.shardingsphere.rules.sharding.sharding-algorithms.user_record_standard.props'
is not valid
at
org.springframework.boot.context.properties.source.ConfigurationPropertyName.elementsOf(ConfigurationPropertyName.java:522)
at
org.springframework.boot.context.properties.source.ConfigurationPropertyName.elementsOf(ConfigurationPropertyName.java:499)
at
org.springframework.boot.context.properties.source.ConfigurationPropertyName.of(ConfigurationPropertyName.java:490)
at
org.springframework.boot.context.properties.source.ConfigurationPropertyName.of(ConfigurationPropertyName.java:478)
at
org.springframework.boot.context.properties.bind.Binder.bind(Binder.java:199)
at
org.springframework.boot.context.properties.bind.Binder.bind(Binder.java:186)
... 21 more
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]