Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
6a230e72
Commit
6a230e72
authored
Jul 13, 2018
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
简化多数据源配置
parent
225b0f43
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
guns-admin/src/main/java/com/stylefeng/guns/config/datasource/MultiDataSourceConfig.java
+1
-1
guns-admin/src/test/java/com/stylefeng/guns/multi/test/BizTest.java
+1
-1
No files found.
guns-admin/src/main/java/com/stylefeng/guns/config/datasource/MultiDataSourceConfig.java
View file @
6a230e72
...
...
@@ -30,7 +30,7 @@ import java.util.HashMap;
@Configuration
@ConditionalOnProperty
(
prefix
=
"guns.muti-datasource"
,
name
=
"open"
,
havingValue
=
"true"
)
@EnableTransactionManagement
(
order
=
2
)
@MapperScan
(
basePackages
=
{
"com.stylefeng.guns.modular.*.dao"
})
@MapperScan
(
basePackages
=
{
"com.stylefeng.guns.modular.*.dao"
,
"com.stylefeng.guns.multi.mapper"
})
public
class
MultiDataSourceConfig
{
@Bean
...
...
guns-admin/src/test/java/com/stylefeng/guns/multi/test/BizTest.java
View file @
6a230e72
...
...
@@ -18,7 +18,7 @@ public class BizTest extends BaseJunit {
@Test
public
void
test
()
{
//
testService.testGuns();
testService
.
testGuns
();
testService
.
testBiz
();
...
...
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