Skip to content

Commit

Permalink
perf($Druid): migrate to druid-spring-boot-starter 1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymillergh committed Jan 29, 2021
1 parent 8c4cd5a commit 0a7ca5e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 42 deletions.
22 changes: 21 additions & 1 deletion auth-center/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,28 @@ spring:
file-size-threshold: 0
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
druid:
driver-class-name: com.mysql.cj.jdbc.Driver
max-active: 100
initial-size: 5
max-wait: 60000
min-idle: 1
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 30000
validation-query: SELECT 'X'
test-while-idle: true
test-on-borrow: false
test-on-return: false
max-pool-prepared-statement-per-connection-size: 20
max-open-prepared-statements: 50
stat-view-servlet:
enabled: true
login-username: root
login-password: sa
reset-enable: false
url-pattern: /druid/*

redis:
database: 0
timeout: 10000ms
Expand Down
17 changes: 0 additions & 17 deletions exercise-mis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,6 @@
<artifactId>spring-integration-sftp</artifactId>
</dependency>

<!-- ORM Library -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>${mybatis-plus-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>${druid.version}</version>
</dependency>

<!-- Test -->
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
17 changes: 0 additions & 17 deletions muscle-mis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,6 @@
<artifactId>spring-integration-sftp</artifactId>
</dependency>

<!-- ORM Library -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>${mybatis-plus-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>${druid.version}</version>
</dependency>

<!-- Test -->
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<spring-cloud.version>2020.0.0</spring-cloud.version>
<spring-content.version>1.0.0.M5</spring-content.version>
<spring-boot-admin-starter-client.version>2.3.1</spring-boot-admin-starter-client.version>
<druid.version>1.2.4</druid.version>
<druid-spring-boot-starter.version>1.2.4</druid-spring-boot-starter.version>
<mybatis-plus-boot-starter.version>3.4.2</mybatis-plus-boot-starter.version>
<hutool-all.version>5.5.7</hutool-all.version>
<guava.version>30.0-jre</guava.version>
Expand Down
8 changes: 2 additions & 6 deletions spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-sleuth-zipkin</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.springframework.cloud</groupId>-->
<!-- <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
Expand Down Expand Up @@ -94,8 +90,8 @@
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>${druid.version}</version>
<artifactId>druid-spring-boot-starter</artifactId>
<version>${druid-spring-boot-starter.version}</version>
</dependency>

<!-- Redis -->
Expand Down

0 comments on commit 0a7ca5e

Please sign in to comment.