Comments (4)
启动时候的打印
2020-10-13 10:06:52.408 WARN 16008 --- [ main] c.atomikos.jdbc.AtomikosConnectionProxy : atomikos connection proxy for oracle.jdbc.driver.T4CConnection@148fca83: WARNING: transaction manager not running?
2020-10-13 10:06:52.408 WARN 16008 --- [ main] c.atomikos.jdbc.AtomikosConnectionProxy : atomikos connection proxy for oracle.jdbc.driver.T4CConnection@148fca83: WARNING: transaction manager not running?
2020-10-13 10:06:52.410 WARN 16008 --- [ main] c.atomikos.jdbc.AtomikosConnectionProxy : atomikos connection proxy for oracle.jdbc.driver.T4CConnection@148fca83: WARNING: transaction manager not running?
2020-10-13 10:06:52.412 WARN 16008 --- [ main] c.atomikos.jdbc.AtomikosConnectionProxy : atomikos connection proxy for oracle.jdbc.driver.T4CConnection@148fca83: WARNING: transaction manager not running?
2020-10-13 10:06:52.412 WARN 16008 --- [ main] c.atomikos.jdbc.AtomikosConnectionProxy : atomikos connection proxy for oracle.jdbc.driver.T4CConnection@148fca83: WARNING: transaction manager not running?
2020-10-13 10:06:52.412 WARN 16008 --- [ main] c.atomikos.jdbc.AtomikosConnectionProxy : atomikos connection proxy for oracle.jdbc.driver.T4CConnection@148fca83: WARNING: transaction manager not running?
2020-10-13 10:06:52.414 WARN 16008 --- [ main] c.atomikos.jdbc.AtomikosConnectionProxy : atomikos connection proxy for oracle.jdbc.driver.T4CConnection@148fca83: WARNING: transaction manager not running?
2020-10-13 10:06:52.417 WARN 16008 --- [ main] c.atomikos.jdbc.AtomikosConnectionProxy : atomikos connection proxy for oracle.jdbc.driver.T4CConnection@148fca83: WARNING: transaction manager not running?
2020-10-13 10:06:52.418 WARN 16008 --- [ main] c.atomikos.jdbc.AtomikosConnectionProxy : atomikos connection proxy for oracle.jdbc.driver.T4CConnection@148fca83: WARNING: transaction manager not running?
from fastdep.
测试方法
@transactional
public void transactionTest(String num) {
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
Map<String, Object> insertParam1 = new HashMap<>();
insertParam1.put("INMSG", "10000");
insertParam1.put("OUTMSG", "10000");
insertParam1.put("SUCMSG", "10000");
insertParam1.put("ERRMSG", "10000");
insertParam1.put("DATETIME", LocalDate.parse("2020-10-12", formatter).format(formatter));
haiLogMapper.insertMsgCount(insertParam1);
int haha = 1 / Integer.parseInt(num);
Map<String, Object> insertParam2 = new HashMap<>();
insertParam2.put("INMSG", "20000");
insertParam2.put("OUTMSG", "20000");
insertParam2.put("SUCMSG", "20000");
insertParam2.put("ERRMSG", "20000");
insertParam2.put("DATETIME", LocalDate.parse("2020-10-12", formatter).format(formatter));
haiLogMapper.insertMsgCount(insertParam2);
}
from fastdep.
`# fastdep 支持多数据源
fastdep:
datasource:
base:
mapper: hai.mcentre.mapper.base
driver-class-name: oracle.jdbc.driver.OracleDriver
url: jdbc:oracle:thin:@127.0.0:1521/orcl
username: xxx
password: xxx
initialSize: 10
minIdle: 5
maxActive: 100
maxWait: 10000
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
removeAbandoned: true
removeAbandonedTimeout: 180
keepAlive: true
log:
mapper: hai.mcentre.mapper.log
driver-class-name: oracle.jdbc.driver.OracleDriver
url: jdbc:oracle:thin:@127.0.0.1:1521/orcl
username: xxx
password: xxx
initialSize: 10
minIdle: 5
maxActive: 100
maxWait: 10000
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
removeAbandoned: true
removeAbandonedTimeout: 180
keepAlive: true
mybatis
mybatis:
mapper-locations: classpath:mybatis/mapper/*.xml
config-location: classpath:mybatis/mybatis-config.xml`
from fastdep.
你可以将fastdep-test基础的改为你的数据源信息进行测试,先排查是否是你设置了事物bean或者注入了一些额外的事物数据源相关bean,导致全局事物失效。
from fastdep.
Related Issues (20)
- redis6.0.8 默认配置连接报错 HOT 2
- 只能配置两个redis数据源,我配置了五个,启动报错 HOT 9
- fastdep-shiro-jwt 如何集成redis缓存 HOT 1
- 多数据源启动报错 HOT 3
- redis 多数据源指定的configuration 配置就不生效了, 能够有解决方法吗? HOT 2
- 连接泄露,请教一下分布式事务的配置是否有问题 HOT 8
- 是不是得先配置redis环境呢? 我跑起来报错 HOT 2
- 文件上传和下载模块 遇到问题 HOT 1
- 全局事务失效 HOT 2
- fastdep-shiro-jwt 怎么在controller 拿到 用户id信息 HOT 2
- 是否支持 jdk1.7 springboot 1.x
- WARN 20240 --- [nio-8081-exec-2] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.mapper.OrderMapper.selectPage]
- fastdep-shiro-jwt 缓存不了用户信息
- 官网文档中关于fastdep-shiro-jwt的示例代码有点小问题 HOT 3
- 请问引入包后的后续操作在哪儿呀? HOT 2
- WARNING: transaction manager not running? HOT 1
- fastdep-datasource连接sqlserver数据库数据库事务不生效 HOT 1
- fastdep-redis集群情况下如何链接
- 这样配置可以自动注入正确的数据源吗?is that right?
- fastdep-datasource 不支持 mybatis 的 interceptor?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastdep.