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
986223f5
Commit
986223f5
authored
Jan 14, 2018
by
naan1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新配置
parent
1f3adafd
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
6 additions
and
84 deletions
+6
-84
.gitignore
+1
-0
guns-admin/pom.xml
+0
-30
guns-admin/src/main/java/com/stylefeng/guns/common/constant/DatasourceEnum.java
+1
-1
guns-admin/src/main/java/com/stylefeng/guns/config/MybatisPlusConfig.java
+4
-4
guns-admin/src/main/resources/application.yml
+0
-6
guns-core/pom.xml
+0
-11
guns-parent/pom.xml
+0
-16
guns-rest/pom.xml
+0
-10
guns-rest/src/main/resources/application.yml
+0
-6
No files found.
.gitignore
View file @
986223f5
...
...
@@ -4,6 +4,7 @@
*.idea
target/
logs/
# Log file
*.log
...
...
guns-admin/pom.xml
View file @
986223f5
...
...
@@ -56,16 +56,6 @@
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-undertow
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
...
...
@@ -150,26 +140,6 @@
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
</dependency>
<dependency>
<groupId>
cn.hutool
</groupId>
<artifactId>
hutool-core
</artifactId>
</dependency>
<dependency>
<groupId>
cn.hutool
</groupId>
<artifactId>
hutool-http
</artifactId>
</dependency>
<dependency>
<groupId>
com.github.binarywang
</groupId>
<artifactId>
weixin-java-miniapp
</artifactId>
</dependency>
<dependency>
<groupId>
com.github.binarywang
</groupId>
<artifactId>
weixin-java-pay
</artifactId>
</dependency>
<dependency>
<groupId>
com.github.binarywang
</groupId>
<artifactId>
weixin-java-mp
</artifactId>
</dependency>
</dependencies>
<build>
...
...
guns-admin/src/main/java/com/stylefeng/guns/common/constant/D
S
Enum.java
→
guns-admin/src/main/java/com/stylefeng/guns/common/constant/D
atasource
Enum.java
View file @
986223f5
...
...
@@ -7,7 +7,7 @@ package com.stylefeng.guns.common.constant;
* @author fengshuonan
* @date 2017年3月5日 上午10:15:02
*/
public
interface
D
S
Enum
{
public
interface
D
atasource
Enum
{
String
DATA_SOURCE_GUNS
=
"dataSourceGuns"
;
//guns数据源
...
...
guns-admin/src/main/java/com/stylefeng/guns/config/MybatisPlusConfig.java
View file @
986223f5
...
...
@@ -3,7 +3,7 @@ package com.stylefeng.guns.config;
import
com.alibaba.druid.pool.DruidDataSource
;
import
com.baomidou.mybatisplus.plugins.OptimisticLockerInterceptor
;
import
com.baomidou.mybatisplus.plugins.PaginationInterceptor
;
import
com.stylefeng.guns.common.constant.D
S
Enum
;
import
com.stylefeng.guns.common.constant.D
atasource
Enum
;
import
com.stylefeng.guns.core.datascope.DataScopeInterceptor
;
import
com.stylefeng.guns.core.datasource.DruidProperties
;
import
com.stylefeng.guns.core.mutidatasource.DynamicDataSource
;
...
...
@@ -83,8 +83,8 @@ public class MybatisPlusConfig {
DynamicDataSource
dynamicDataSource
=
new
DynamicDataSource
();
HashMap
<
Object
,
Object
>
hashMap
=
new
HashMap
();
hashMap
.
put
(
D
S
Enum
.
DATA_SOURCE_GUNS
,
dataSourceGuns
);
hashMap
.
put
(
D
S
Enum
.
DATA_SOURCE_BIZ
,
bizDataSource
);
hashMap
.
put
(
D
atasource
Enum
.
DATA_SOURCE_GUNS
,
dataSourceGuns
);
hashMap
.
put
(
D
atasource
Enum
.
DATA_SOURCE_BIZ
,
bizDataSource
);
dynamicDataSource
.
setTargetDataSources
(
hashMap
);
dynamicDataSource
.
setDefaultTargetDataSource
(
dataSourceGuns
);
return
dynamicDataSource
;
...
...
@@ -106,7 +106,7 @@ public class MybatisPlusConfig {
return
new
DataScopeInterceptor
();
}
/*
/*
*
* 乐观锁mybatis插件
*/
@Bean
...
...
guns-admin/src/main/resources/application.yml
View file @
986223f5
...
...
@@ -28,12 +28,6 @@ beetl:
################### spring配置 ###################
spring
:
undertown
:
io-threads
:
2
worker-threads
:
20
buffer-size
:
1024
buffers-per-region
:
1024
direct-buffers
:
true
redis
:
host
:
localhost
port
:
6379
...
...
guns-core/pom.xml
View file @
986223f5
...
...
@@ -59,17 +59,6 @@
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<scope>
provided
</scope>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-undertow
</artifactId>
<scope>
provided
</scope>
</dependency>
<!--aop-->
...
...
guns-parent/pom.xml
View file @
986223f5
...
...
@@ -44,7 +44,6 @@
<jwt.version>
0.7.0
</jwt.version>
<flowable.version>
6.2.0
</flowable.version>
<hutool.version>
4.0.0
</hutool.version>
<mp-sdk.version>
2.9.0
</mp-sdk.version>
</properties>
<dependencyManagement>
...
...
@@ -179,21 +178,6 @@
<artifactId>
hutool-http
</artifactId>
<version>
${hutool.version}
</version>
</dependency>
<dependency>
<groupId>
com.github.binarywang
</groupId>
<artifactId>
weixin-java-miniapp
</artifactId>
<version>
${mp-sdk.version}
</version>
</dependency>
<dependency>
<groupId>
com.github.binarywang
</groupId>
<artifactId>
weixin-java-pay
</artifactId>
<version>
${mp-sdk.version}
</version>
</dependency>
<dependency>
<groupId>
com.github.binarywang
</groupId>
<artifactId>
weixin-java-mp
</artifactId>
<version>
${mp-sdk.version}
</version>
</dependency>
</dependencies>
</dependencyManagement>
...
...
guns-rest/pom.xml
View file @
986223f5
...
...
@@ -22,16 +22,6 @@
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-undertow
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
...
...
guns-rest/src/main/resources/application.yml
View file @
986223f5
...
...
@@ -27,12 +27,6 @@ mybatis-plus:
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #打印sql语句,调试用
spring
:
undertown
:
io-threads
:
2
worker-threads
:
20
buffer-size
:
1024
buffers-per-region
:
1024
direct-buffers
:
true
datasource
:
url
:
jdbc:mysql://127.0.0.1:3306/rest?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull
username
:
root
...
...
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