Closed 1610200527 closed 5 years ago
Hello, we never released version 3.3.0 for sharding-jdbc
sorry,I use version 3.0.0 for sharding-jdbc
Sorry,I have solved this problem!I create datasource by springboot- jdbc useings type is druid and set this datasource into sharding-jdbc datasource。like this: spring: datasource: name: dev url: jdbc:mysql://192.168.101.5:3306/xx?characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=true username: root password: root
driver-class-name: com.mysql.jdbc.Driver type: com.alibaba.druid.pool.DruidDataSource
druid: initial-size: 5 min-idle: 5 max-active: 30 max-wait: 60000 time-between-eviction-runs-millis: 60000 min-evictable-idle-time-millis: 300000 max-pool-prepared-statement-per-connection-size: 20 validation-query: SELECT 'x' test-while-idle: true test-on-borrow: false test-on-return: false pool-prepared-statements: false filters: stat, slf4j filter: stat: log-slow-sql: true slow-sql-millis: 10000 slf4j: result-set-log-enabled: false statement-executable-sql-log-enable: false stat-view-servlet: enabled: true reset-enable: true url-pattern: /druid/* login-username: xx login-password: xxxxx
Hello, I use sharding-jdbc-3.3.0, Druid, mybatis in my project The Spring annotation @transactional used in the Service layer, when I debug, I found that there was no Creating new transaction at all. This is JAVA configuration: