Skip to content

Commit 46f70d0

Browse files
committed
使用druid-spring-boot-starter代替druid。
1 parent f96d553 commit 46f70d0

File tree

3 files changed

+48
-3
lines changed

3 files changed

+48
-3
lines changed

pom.xml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
</properties>
2727

2828
<dependencies>
29+
<dependency>
30+
<groupId>org.springframework.boot</groupId>
31+
<artifactId>spring-boot-starter</artifactId>
32+
</dependency>
2933
<!--<dependency>
3034
<groupId>org.springframework.cloud</groupId>
3135
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
@@ -70,9 +74,16 @@
7074
<dependency>
7175
<groupId>org.springframework.boot</groupId>
7276
<artifactId>spring-boot-devtools</artifactId>
77+
<scope>provided</scope>
7378
<optional>true</optional>
7479
</dependency>
7580

81+
<dependency>
82+
<groupId>com.alibaba</groupId>
83+
<artifactId>druid-spring-boot-starter</artifactId>
84+
<version>1.1.10</version>
85+
</dependency>
86+
7687
<dependency>
7788
<groupId>mysql</groupId>
7889
<artifactId>mysql-connector-java</artifactId>
@@ -83,11 +94,11 @@
8394
<artifactId>postgresql</artifactId>
8495
<scope>runtime</scope>
8596
</dependency>
86-
<dependency>
97+
<!--<dependency>
8798
<groupId>com.alibaba</groupId>
8899
<artifactId>druid</artifactId>
89-
<version>1.1.9</version>
90-
</dependency>
100+
<version>1.1.10</version>
101+
</dependency>-->
91102
<dependency>
92103
<groupId>com.alibaba</groupId>
93104
<artifactId>fastjson</artifactId>

src/main/resources/application.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# ----------------------------------------
2+
# CORE PROPERTIES
3+
# ----------------------------------------
4+
debug: false # Enable debug logs.
5+
trace: false # Enable trace logs.
6+
17
server:
28
port: 8182
39

@@ -14,6 +20,11 @@ spring:
1420
# username: ENC(YiYjVwTulDGN//YaB3KbuA==) #明文root
1521
# password: ENC(9oaIJkFgGSDFaHH3OXY63RHWQ+amDmiJ) #明文19941017
1622
type: com.alibaba.druid.pool.DruidDataSource
23+
24+
banner:
25+
charset: UTF-8
26+
location: classpath:banner.txt
27+
1728
logging:
1829
level:
1930
org:

src/main/resources/banner.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
${AnsiColor.BRIGHT_YELLOW}
2+
////////////////////////////////////////////////////////////////////
3+
// _ooOoo_ //
4+
// o8888888o //
5+
// 88" . "88 //
6+
// (| ^_^ |) //
7+
// O\ = /O //
8+
// ____/`---'\____ //
9+
// .' \\| |// `. //
10+
// / \\||| : |||// \ //
11+
// / _||||| -:- |||||- \ //
12+
// | | \\\ - /// | | //
13+
// | \_| ''\---/'' | | //
14+
// \ .-\__ `-` ___/-. / //
15+
// ___`. .' /--.--\ `. . ___ //
16+
// ."" '< `.___\_<|>_/___.' >'"". //
17+
// | | : `- \`.;`\ _ /`;.`/ - ` : | | //
18+
// \ \ `-. \_ __\ /__ _/ .-` / / //
19+
// ========`-.____`-.___\_____/___.-`____.-'======== //
20+
// `=---=' //
21+
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //
22+
// 佛祖保佑 永不宕机 永无BUG //
23+
////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)