https://www.bilibili.com/video/BV1XT411M7rZ/?vd_source=5540375a2c7c12747e7298f4e6f5ddad
template.yml will override application.yml for the same properties
src/main/resources/application.yml
src/main/resources/template/template.yml
tableComment # Comments on the table
tableFileds # A list of fields of the table
className # The name of the class generated by this table
objectName # The name of the instant generated by this class
domainName # your package domain
tableName # database table
packagePath # Your package's base directory
author # author
version # version
[# th:each="field : ${tableFileds}"]
/** [(${field.extra})] */
@Field("[(${field.key})]")
private [(${field.type})] [(${field.field})];
[/]
CREATE DATABASE rapid_dev;
CREATE TABLE rapid_dev.`order` (
id int auto_increment primary key,
name varchar(40) not null
)
ENGINE=InnoDB
COMMENT='order comment ';