spring:Springboot + 持久层框架JOOQ( 二 )
</generate>
</generator>
</configuration>
</plugin>
</plugins></build>
application.properties#Copy#datasource
spring.datasource.url=jdbc:mysql://localhost:3306/demo
spring.datasource.username=root
spring.datasource.password=123456
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
逆向工程#配置文件#在项目的resources目录下新建library.xml , 由于网上JOOQ的教程比较少 , 且比较老 , 所以建议去官网拷贝对应版本的配置文件 , 并酌情修改 , 否则会无法生成 。
Copy<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><configuration xmlns=\"http://www.jooq.org/xsd/jooq-codegen-3.12.0.xsd\">
<!-- Configure the database connection here -->
<jdbc>
<driver>com.mysql.cj.jdbc.Driver</driver>
<url>jdbc:mysql://localhost:3306/demo</url>
<user>root</user>
<password>123456</password>
</jdbc>
<generator>
<!-- The default code generator. You can override this one to generate your own code style.Supported generators:- org.jooq.codegen.JavaGenerator-org.jooq.codegen.ScalaGenerator Defaults to org.jooq.codegen.JavaGenerator -->
<name>org.jooq.codegen.JavaGenerator</name>
<database>
<!-- The database type. The format here is:
org.jooq.meta.[database
.[database
Database -->
<name>org.jooq.meta.mysql.MySQLDatabase</name>
<!-- The database schema (or in the absence of schema support in your RDBMS this
can be the owner user database name) to be generated -->
<inputSchema>demo</inputSchema>
<!-- All elements that are generated from your schema
(A Java regular expression. Use the pipe to separate several expressions)
Watch out for case-sensitivity. Depending on your database this might be important! -->
<includes>.*</includes>
<!-- All elements that are excluded from your schema
(A Java regular expression. Use the pipe to separate several expressions).
Excludes match before includes i.e. excludes have a higher priority -->
- 【电子商务】Spring cloud微服务架构前后端分离博客系统,Vue+boot源码分享
- IT说说|Neo3,持久续航,外出旅游更踏实,端午节购机首选iQOO
- #携程#基于SpringBoot Cloud构建的一个商城项目源码分享
- 云体验师|4.0 SSD,英特尔发布第二代傲腾持久内存和PCIe
- 【spring】某程序员网站下载超过50万的《java面试神技》带你搞定80%的面试
- Geek研究僧|HiTune 体验速描:入门 TWS 耳机也要小巧便携、续航持久,绿联
- spring@Github上可以涨薪30k的Java教程和实战项目终于可以免费下载了
- 真可爱科技|Pro是怎么做到续航如此持久的?,电量一点都不浪费,Reno4
- 明日情报|美两家公司联手利用MN-MIMO技术实现系留无人机持久空中移动组网
- 「spring」终于有人整理出:Spring全家桶+Netty+Nginx+Tomcat+K8S的PDF了