This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
dbcpdemo
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
0
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
修改连接对象获取错误
master
ZhangZiSheng001
6 years ago
parent
12d488204f
commit
a9fd381951
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/main/java/cn/zzs/dbcp/JDBCUtils.java
+ 1
- 1
src/main/java/cn/zzs/dbcp/JDBCUtils.java
View File
@@ -45,7 +45,7 @@ public class JDBCUtils {
// 判断为空的话,创建连接并绑定到当前线程
if(connection == null) {
synchronized(obj) {
if(tl.get() == null) {
if(
(connection =
tl.get(
)
) == null) {
connection = createConnection();
tl.set(connection);
}
Write
Preview
Loading…
Cancel
Save