You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/09/20 02:49:22 UTC

[GitHub] [shardingsphere] longfangwei opened a new issue, #21081: shardingsphere5.1.1 因为rules启动导致Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required

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

   ### Which version of ShardingSphere did you use?
   <dependency>
               <groupId>org.apache.shardingsphere</groupId>
               <artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId>
               <version>5.1.1</version>
   </dependency>
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-JDBC
   ### Expected behavior
   Database sub database and table sub database and table sub database and table sub table succeeded through user-defined algorithm strategy
   ### Actual behavior
   ![image](https://user-images.githubusercontent.com/52698019/191152245-aa1fcd4a-8c37-4085-b93e-744babafa642.png)
   If the shardingsphere rules are used, the property 'sqlSessionFactory' or 'sqlSessionTemplate' are required exception will result. If the shardingsphere rules are not used, that is, if the rules are removed, the project can be started normally, but the user-defined table splitting policy will not be followed.
   ### Reason analyze (If you can)
   It may be a jar package problem, because our separate spring boot demo is OK, but it can't be integrated into the project. The project references multiple data sources, but it doesn't seem to have much impact.
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   I will give you the demo project code to help you look at it. Thank you
   ### Example codes for reproduce this issue (such as a github link).
   
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] terrymanu commented on issue #21081: shardingsphere5.1.1 因为rules启动导致Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required

Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #21081:
URL: https://github.com/apache/shardingsphere/issues/21081#issuecomment-1257183195

   **For English only**, other languages will not accept.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] zhaojinchao95 commented on issue #21081: shardingsphere5.1.1 因为rules启动导致Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required

Posted by GitBox <gi...@apache.org>.
zhaojinchao95 commented on issue #21081:
URL: https://github.com/apache/shardingsphere/issues/21081#issuecomment-1253130442

   @longfangwei Hi, can you translate title to english and describe your problem in the provided template?
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] terrymanu closed issue #21081: shardingsphere5.1.1 因为rules启动导致Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #21081: shardingsphere5.1.1 因为rules启动导致Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
URL: https://github.com/apache/shardingsphere/issues/21081


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org