2
0

feat: add mybatis plus

This commit is contained in:
caiyuchao
2024-12-09 17:07:57 +08:00
parent 735c181fc8
commit af65a433ef
10 changed files with 210 additions and 8 deletions

View File

@@ -75,6 +75,13 @@
<groupId>org.wfc</groupId>
<artifactId>wfc-api-omada</artifactId>
</dependency>
<!-- MybatisPlus -->
<dependency>
<groupId>org.wfc</groupId>
<artifactId>wfc-common-mybatis</artifactId>
</dependency>
</dependencies>
<build>

View File

@@ -42,12 +42,12 @@ spring:
# url:
# driver-class-name:
# mybatis配置
mybatis:
# mybatis-plus配置
mybatis-plus:
# 搜索指定包别名
typeAliasesPackage: org.wfc.user
type-aliases-package: org.wfc.user
# 配置mapper的扫描找到所有的mapper.xml映射文件
mapperLocations: classpath:mapper/**/*.xml
mapper-locations: classpath:mapper/**/*.xml
# swagger配置
swagger:
@@ -61,3 +61,4 @@ omada:
omadac-id: 'f3aa6e479b94222581523710cc2c2a9d'
client-id: '5036e77c81a74008821c694a715fe2b8'
client-secret: '29faa06fb7f244b094377b48eb3083a7'

View File

@@ -75,6 +75,15 @@
<groupId>org.wfc</groupId>
<artifactId>wfc-common-mail</artifactId>
</dependency>
<dependency>
<groupId>org.wfc</groupId>
<artifactId>wfc-api-omada</artifactId>
</dependency>
<!-- MybatisPlus -->
<dependency>
<groupId>org.wfc</groupId>
<artifactId>wfc-common-mybatis</artifactId>
</dependency>
</dependencies>

View File

@@ -42,12 +42,12 @@ spring:
# url:
# driver-class-name:
# mybatis配置
mybatis:
# mybatis-plus配置
mybatis-plus:
# 搜索指定包别名
typeAliasesPackage: org.wfc.system
type-aliases-package: org.wfc.system
# 配置mapper的扫描找到所有的mapper.xml映射文件
mapperLocations: classpath:mapper/**/*.xml
mapper-locations: classpath:mapper/**/*.xml
# swagger配置
swagger: