Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-java
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
dc-java
Commits
f2070e69
Commit
f2070e69
authored
Jan 13, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 周转
parent
258e155c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
SessionUtil.java
...common/src/main/java/com/bailuntec/utils/SessionUtil.java
+2
-1
pom.xml
data-show/pom.xml
+1
-0
pom.xml
data-show/show-auto-turnover/pom.xml
+1
-0
No files found.
data-common/src/main/java/com/bailuntec/utils/SessionUtil.java
View file @
f2070e69
package
com
.
bailuntec
.
utils
;
package
com
.
bailuntec
.
utils
;
import
com.bailuntec.domain.constant.CommonConstant
;
import
com.bailuntec.domain.constant.CommonConstant
;
import
com.baomidou.mybatisplus.core.MybatisSqlSessionFactoryBuilder
;
import
org.apache.ibatis.io.Resources
;
import
org.apache.ibatis.io.Resources
;
import
org.apache.ibatis.session.SqlSession
;
import
org.apache.ibatis.session.SqlSession
;
import
org.apache.ibatis.session.SqlSessionFactory
;
import
org.apache.ibatis.session.SqlSessionFactory
;
...
@@ -25,7 +26,7 @@ public class SessionUtil {
...
@@ -25,7 +26,7 @@ public class SessionUtil {
//1.加载配置文件
//1.加载配置文件
reader
=
Resources
.
getResourceAsReader
(
CommonConstant
.
MYBATIS_CONFIG
);
reader
=
Resources
.
getResourceAsReader
(
CommonConstant
.
MYBATIS_CONFIG
);
//2.得到工厂的创建对象
//2.得到工厂的创建对象
builder
=
new
SqlSessionFactoryBuilder
();
builder
=
new
Mybatis
SqlSessionFactoryBuilder
();
//3.得到工厂对象
//3.得到工厂对象
factory
=
builder
.
build
(
reader
);
factory
=
builder
.
build
(
reader
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
data-show/pom.xml
View file @
f2070e69
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
<artifactId>
dc-java
</artifactId>
<artifactId>
dc-java
</artifactId>
<groupId>
com.bailuntec
</groupId>
<groupId>
com.bailuntec
</groupId>
<version>
1.0-SNAPSHOT
</version>
<version>
1.0-SNAPSHOT
</version>
<relativePath>
./pom.xml
</relativePath>
</parent>
</parent>
<artifactId>
data-show
</artifactId>
<artifactId>
data-show
</artifactId>
...
...
data-show/show-auto-turnover/pom.xml
View file @
f2070e69
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
<groupId>
com.bailuntec
</groupId>
<groupId>
com.bailuntec
</groupId>
<version>
1.0-SNAPSHOT
</version>
<version>
1.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
show-auto-turnover
</artifactId>
<artifactId>
show-auto-turnover
</artifactId>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment