🎉 add base jooq auto generator entity method
This commit is contained in:
parent
a9dde8f9da
commit
992f416578
27
README.md
27
README.md
@ -4,27 +4,27 @@
|
|||||||
|
|
||||||
### 可视化大屏组件
|
### 可视化大屏组件
|
||||||
visualization
|
visualization
|
||||||
|
|
||||||
<img src=https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/aaf0bc4ca40f44f4a2054f4e8d5260b7~tplv-k3u1fbpfcp-watermark.image width=400 height=300 />
|
<img src=https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/aaf0bc4ca40f44f4a2054f4e8d5260b7~tplv-k3u1fbpfcp-watermark.image width=400 height=300 />
|
||||||
|
|
||||||
### 时间工具类
|
### 时间工具类
|
||||||
utils.DateTimeUtils
|
utils.DateTimeUtils
|
||||||
daysBetween 计算两个日期之间相差的天数
|
daysBetween 计算两个日期之间相差的天数
|
||||||
overdueAdvent 计算临期/超期天数
|
overdueAdvent 计算临期/超期天数
|
||||||
|
|
||||||
### wx消息推送Mod
|
### wx消息推送Mod
|
||||||
wxMod
|
wxMod
|
||||||
wxMod.wxRequestController
|
wxMod.wxRequestController 微信请求本服务接口 用于验证
|
||||||
wxMod.wxSendMsgController
|
wxMod.wxSendMsgController 微信公众号发送消息(用于消息模板类的消息推送通知)
|
||||||
前提:需要提前准备一个微信公众号,个人订阅号无效,可申请注册微信测试号
|
前提:需要提前准备一个微信公众号,个人订阅号无效,可申请注册微信测试号
|
||||||
|
|
||||||
### 邮件发送工具
|
### 邮件发送工具
|
||||||
mail,由于依赖停止维护,请谨慎使用
|
mail,由于依赖停止维护,请谨慎使用
|
||||||
|
|
||||||
### 加密工具
|
### 加密工具
|
||||||
utils.CryptoUtils
|
utils.CryptoUtils
|
||||||
字符串加密/解密 encryptAESPkcs7/decryptAESPkcs7
|
字符串加密/解密 encryptAESPkcs7/decryptAESPkcs7
|
||||||
|
|
||||||
### 文件工具
|
### 文件工具
|
||||||
utils.FileUtils
|
utils.FileUtils
|
||||||
suffix 获取base64头
|
suffix 获取base64头
|
||||||
@ -32,20 +32,25 @@
|
|||||||
saveFile MultipartFile保存本地
|
saveFile MultipartFile保存本地
|
||||||
getFile 网络文件转File
|
getFile 网络文件转File
|
||||||
Base64ToMultipartFile base64转MultipartFile
|
Base64ToMultipartFile base64转MultipartFile
|
||||||
|
|
||||||
### 分页工具
|
### 分页工具
|
||||||
utils.page.*,详情查看Test.PageTest();
|
utils.page.*,详情查看Test.PageTest();
|
||||||
utils.HandlePage 手动分页,可能有bug,待测试
|
utils.HandlePage 手动分页,可能有bug,待测试
|
||||||
|
|
||||||
### 回显方法
|
### 回显方法
|
||||||
utils.response.VoResult
|
utils.response.VoResult
|
||||||
|
|
||||||
### 根据实体类属性获取getAndSet方法
|
### 根据实体类属性获取getAndSet方法
|
||||||
utils.MethodGetAndSet 可能有bug,待测试
|
utils.MethodGetAndSet 可能有bug,待测试
|
||||||
|
|
||||||
### redis工具
|
### redis工具
|
||||||
utils.redis.RedisCacheUtils
|
utils.redis.RedisCacheUtils
|
||||||
|
|
||||||
|
### 自动生成数据库所有实体类
|
||||||
|
autoentity.pom.xml
|
||||||
|
基于jOOQ的自动生成实体类功能,添加pom文件或者修改至自己的pom文件中,maven打包即可在对应处生成实体类
|
||||||
|
需要在<build>内配置数据库信息 以及生成文件所在的位置信息
|
||||||
|
|
||||||
## 鸣谢
|
## 鸣谢
|
||||||
|
|
||||||
感谢 [JetBrains](https://www.jetbrains.com/?from=real-url) 提供的 free JetBrains Open Source license
|
感谢 [JetBrains](https://www.jetbrains.com/?from=real-url) 提供的 free JetBrains Open Source license
|
||||||
|
99
src/main/java/autoentity/pom.xml
Normal file
99
src/main/java/autoentity/pom.xml
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
|
<version>3.1.3</version>
|
||||||
|
<relativePath/>
|
||||||
|
</parent>
|
||||||
|
<groupId>com.example</groupId>
|
||||||
|
<artifactId>AutoGenerEntity</artifactId>
|
||||||
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
|
<name>AutoGenerEntity</name>
|
||||||
|
<description>AutoGenerEntity</description>
|
||||||
|
<properties>
|
||||||
|
<java.version>17</java.version>
|
||||||
|
</properties>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>mysql</groupId>
|
||||||
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
|
<version>8.0.33</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jooq</groupId>
|
||||||
|
<artifactId>jooq</artifactId>
|
||||||
|
<version>3.14.8</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jooq</groupId>
|
||||||
|
<artifactId>jooq-meta-extensions</artifactId>
|
||||||
|
<version>3.14.8</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jooq</groupId>
|
||||||
|
<artifactId>jooq-codegen-maven</artifactId>
|
||||||
|
<version>3.14.8</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax.validation</groupId>
|
||||||
|
<artifactId>validation-api</artifactId>
|
||||||
|
<version>2.0.1.Final</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.jooq</groupId>
|
||||||
|
<artifactId>jooq-codegen-maven</artifactId>
|
||||||
|
<version>3.14.8</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>generate</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<jdbc>
|
||||||
|
<driver>com.mysql.cj.jdbc.Driver</driver>
|
||||||
|
<url>jdbc:mysql://localhost:3306/databseName</url>
|
||||||
|
<user>username</user>
|
||||||
|
<password>password</password>
|
||||||
|
</jdbc>
|
||||||
|
<generator>
|
||||||
|
<database>
|
||||||
|
<includes>.*</includes>
|
||||||
|
<inputSchema>population</inputSchema>
|
||||||
|
</database>
|
||||||
|
<target>
|
||||||
|
<packageName>com.example.autogenerentity</packageName>
|
||||||
|
<directory>src/main/java</directory>
|
||||||
|
</target>
|
||||||
|
<generate>
|
||||||
|
<!-- Generation flags: See advanced configuration properties -->
|
||||||
|
<daos>true</daos>
|
||||||
|
<pojos>true</pojos>
|
||||||
|
<pojosToString>true</pojosToString>
|
||||||
|
<tables>true</tables>
|
||||||
|
<springAnnotations>true</springAnnotations>
|
||||||
|
<validationAnnotations>true</validationAnnotations>
|
||||||
|
</generate>
|
||||||
|
</generator>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
Loading…
x
Reference in New Issue
Block a user