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
18f3ed41
Commit
18f3ed41
authored
Mar 31, 2019
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉默认多数据源配置
parent
21ada2dd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
src/main/java/cn/stylefeng/guns/GunsApplication.java
+1
-2
src/main/resources/application-local.yml
+1
-1
No files found.
src/main/java/cn/stylefeng/guns/GunsApplication.java
View file @
18f3ed41
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
*/
*/
package
cn
.
stylefeng
.
guns
;
package
cn
.
stylefeng
.
guns
;
import
cn.stylefeng.roses.core.config.MybatisDataSourceAutoConfiguration
;
import
cn.stylefeng.roses.core.config.WebAutoConfiguration
;
import
cn.stylefeng.roses.core.config.WebAutoConfiguration
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -29,7 +28,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
...
@@ -29,7 +28,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
* @author stylefeng
* @author stylefeng
* @Date 2017/5/21 12:06
* @Date 2017/5/21 12:06
*/
*/
@SpringBootApplication
(
exclude
=
{
WebAutoConfiguration
.
class
,
MybatisDataSourceAutoConfiguration
.
class
})
@SpringBootApplication
(
exclude
=
{
WebAutoConfiguration
.
class
})
@EnableScheduling
@EnableScheduling
public
class
GunsApplication
{
public
class
GunsApplication
{
...
...
src/main/resources/application-local.yml
View file @
18f3ed41
...
@@ -41,7 +41,7 @@ spring:
...
@@ -41,7 +41,7 @@ spring:
# 多数据源情况的配置
# 多数据源情况的配置
guns
:
guns
:
muti-datasource
:
muti-datasource
:
open
:
tru
e
open
:
fals
e
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://127.0.0.1:3306/guns_test_db?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT
url
:
jdbc:mysql://127.0.0.1:3306/guns_test_db?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT
username
:
root
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