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 2021/02/03 05:54:27 UTC

[GitHub] [shardingsphere] AI1186780944 edited a comment on issue #8934: sharding-jdbc with mybatis just replica , but sharding not work

AI1186780944 edited a comment on issue #8934:
URL: https://github.com/apache/shardingsphere/issues/8934#issuecomment-772251882


   @xuup @terrymanu  Hi,man.How do you solve the problem as shown in the figure?
   ![image](https://user-images.githubusercontent.com/40418583/106703810-f4187a00-6625-11eb-9e20-f0c3237526b3.png)
   the problem:
   Creating a new SqlSession
   SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6049f52d] was not registered for synchronization because synchronization is not active
   JDBC Connection [org.apache.shardingsphere.driver.jdbc.core.connection.ShardingSphereConnection@41f00c4b] will not be managed by Spring
   Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6049f52d]
   When this problem occurs, don't you find that your transaction is invalid?
   I'm using shardingsphere-jdbc-core-spring-boot-starter 5.0.0-alpha.And The ORM framework is MyBatis-Plus.
   
   


----------------------------------------------------------------
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:
users@infra.apache.org