Skip to content

Commit

Permalink
✅ Mybatis-Plus-Generator(3.5.1+)代码生成器组件集成.
Browse files Browse the repository at this point in the history
  • Loading branch information
cxh1231 committed Jan 13, 2022
1 parent 08f8cc7 commit 44561fe
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
4 changes: 2 additions & 2 deletions study-mybatis-plus-fast-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus</artifactId>
<version>3.4.3.2</version>
<version>3.4.3.4</version>
</dependency>

<!-- MP的代码生成器依赖 -->
Expand All @@ -39,7 +39,7 @@
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.2.6</version>
<version>1.2.8</version>
</dependency>

<!-- 数据库连接依赖 -->
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

# Spring相关配置
spring:
# 数据库链接配置
datasource:
name: druidDataSource
type: com.alibaba.druid.pool.DruidDataSource
# 链接地址,这里需要修改自己的数据库IP和数据库名
url: jdbc:mysql://localhost:3306/db_study_mp?useUnicode=true&serverTimezone=UTC&useSSL=false&characterEncoding=utf8
username: chen
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver
druid:
# 链接地址,这里需要修改自己的数据库IP和数据库名
# url: jdbc:mysql://127.0.0.1:3306/db_excite_cms?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
# username: chen # 数据库用户名
# password: 123456 # 数据库密码
initial-size: 1
min-idle: 1
max-active: 20
test-on-borrow: true
# 连接驱动类名
# MySQL 8.x: com.mysql.cj.jdbc.Driver
# MySQL 5.x: com.mysql.jdbc.Driver
# driver-class-name: com.mysql.cj.jdbc.Driver

0 comments on commit 44561fe

Please sign in to comment.