Skip to content

Commit

Permalink
perf($ORM): migrate ORM library to spring-boot-starter
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnny Miller (锺俊) committed Jan 14, 2021
1 parent d0315b0 commit 0e66476
Show file tree
Hide file tree
Showing 41 changed files with 104 additions and 298 deletions.
17 changes: 0 additions & 17 deletions auth-center/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,23 +93,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>

<!-- https://github.com/jwtk/jjwt -->
<!-- Cannot Remove jjwt dependencies, cuz the login process is in here `auth-center`,
and the auth process is in `api-gateway` -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ spring:
zipkin:
base-url: http://maf.open-zipkin.dev:9411
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://maf.mysql.dev:3306/muscle_and_fitness?useSSL=true&useUnicode=true
username: root
password: jm@mysql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ spring:
zipkin:
base-url: http://localhost:9411
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://localhost:3306/muscle_and_fitness?useSSL=true&useUnicode=true
username: root
password: jm@mysql
Expand Down
3 changes: 0 additions & 3 deletions auth-center/src/main/resources/application-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ spring:
zipkin:
base-url: http://maf.open-zipkin.production:9411
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://maf.mysql.production:3306/muscle_and_fitness?useSSL=true&useUnicode=true
username: root
password: jm@mysql
Expand Down
3 changes: 0 additions & 3 deletions auth-center/src/main/resources/application-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ spring:
zipkin:
base-url: http://maf.open-zipkin.stage:9411
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://maf.mysql.stage:3306/muscle_and_fitness?useSSL=true&useUnicode=true
username: root
password: jm@mysql
Expand Down
3 changes: 0 additions & 3 deletions auth-center/src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ spring:
zipkin:
base-url: http://maf.open-zipkin.test:9411
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://maf.mysql.test:3306/muscle_and_fitness?useSSL=true&useUnicode=true
username: root
password: jm@mysql
Expand Down
4 changes: 4 additions & 0 deletions auth-center/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ spring:
# `file-size-threshold` specifies the size threshold after which files will be written to disk.
# The default is 0. We set it as 0 too.
file-size-threshold: 0
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource

eureka:
instance:
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ spring:
zipkin:
base-url: http://maf.open-zipkin.dev:9411
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://maf.mysql.dev:3306/muscle_and_fitness?useSSL=true&useUnicode=true
username: root
password: jm@mysql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ spring:
zipkin:
base-url: http://localhost:9411
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://localhost:3306/muscle_and_fitness?useSSL=true&useUnicode=true
username: root
password: jm@mysql
Expand Down
3 changes: 0 additions & 3 deletions exercise-mis/src/main/resources/application-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ spring:
zipkin:
base-url: http://maf.open-zipkin.production:9411
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://maf.mysql.production:3306/muscle_and_fitness?useSSL=true&useUnicode=true
username: root
password: jm@mysql
Expand Down
3 changes: 0 additions & 3 deletions exercise-mis/src/main/resources/application-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ spring:
zipkin:
base-url: http://maf.open-zipkin.stage:9411
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://maf.mysql.stage:3306/muscle_and_fitness?useSSL=true&useUnicode=true
username: root
password: jm@mysql
Expand Down
3 changes: 0 additions & 3 deletions exercise-mis/src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ spring:
zipkin:
base-url: http://maf.open-zipkin.test:9411
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://maf.mysql.test:3306/muscle_and_fitness?useSSL=true&useUnicode=true
username: root
password: jm@mysql
Expand Down
4 changes: 4 additions & 0 deletions exercise-mis/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ spring:
# `file-size-threshold` specifies the size threshold after which files will be written to disk.
# The default is 0. We set it as 0 too.
file-size-threshold: 0
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource

eureka:
instance:
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ spring:
zipkin:
base-url: http://maf.open-zipkin.dev:9411
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://maf.mysql.dev:3306/muscle_and_fitness?useSSL=true&useUnicode=true
username: root
password: jm@mysql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ spring:
zipkin:
base-url: http://localhost:9411
datasource:
name: muscle_and_fitness
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://localhost:3306/muscle_and_fitness?useSSL=true&useUnicode=true
username: root
password: jm@mysql
Expand Down
Loading

0 comments on commit 0e66476

Please sign in to comment.