726411951 opened a new issue, #20951:
URL: https://github.com/apache/shardingsphere/issues/20951

   ## Question
   
   **For English only**, other languages will not accept.
   
   Before asking a question, make sure you have:
   
   - Googled your question.
   - Searched open and closed [GitHub 
issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere 
Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more 
details. 
   If no response anymore and we cannot reproduce it on current information, we 
will **close it**.
   
   For our business, I implement sharding algorithm by using Java code,and the 
version is 5.1.1,the class is 
   
![image](https://user-images.githubusercontent.com/32379580/189801857-7fab8872-0be8-47b4-a5c0-ffea596a1a66.png)
   
   But when I update version to 5.2.0, This project can not run and the error 
is 
`[org/apache/shardingsphere/spring/boot/ShardingSphereAutoConfiguration.class]: 
Bean instantiation via factory method failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[javax.sql.DataSource]: Factory method 'shardingSphereDataSource' threw 
exception; nested exception is java.lang.IllegalArgumentException: Type is 
required.`
   
   I dont konw how to work it by changing my code , or may be can use this 
property [Class Based Sharding Algorithm
   
](https://shardingsphere.apache.org/document/current/en/user-manual/common-config/builtin-algorithm/sharding/#class-based-sharding-algorithm)
 instands of the code. I'm not sure, thanks for your answer


-- 
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.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to