Files
db2java/db2java-core/src/main/resources/appliction.yml
2025-09-28 22:59:16 +08:00

76 lines
2.5 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 数据库配置
datasource:
url: jdbc:mysql://192.168.0.107:3306/globalVoice?characterEncoding=utf8&useUnicode=true&useSSL=false&allowPublicKeyRetrieval=true
username: intasect
password: 2$hGv1Dz[3)J7]BS]
driver-class-name: com.mysql.cj.jdbc.Driver
# 生成配置信息
generate:
# 生成模式hibernate,jpa,mybatis,mybatis-plus
mode: mybatis-plus
# 生成代码模式 file(直接在指定目录下生成代码),coding(在目录下生成/src/main/java和对应的package路径)
type: coding
# 输出目录
out: C:/0110_Workspace/yexuejc/db2java/export
# 包名
package: com.yexuejc.db2java.export
# 作者
author: yexuejc
# lombok模式 - 启用后不生成getter/setter方法使用@Data注解
lombok: false
# merge模式 - 是否合并已存在的文件
merge: true
# 覆盖已存在文件
override: true
# 模板引擎freemarker,velocity,beetl,enjoy
engine: freemarker
# 忽略表
ignore-table:
- sys_user
- sys_role
- sys_role_user
# 忽略字段
ignore-column:
- create_time
- update_time
# 包含表
include-table:
- sys_user
- sys_role
- sys_role_user
# 实体类配置
entity:
# 是否生成序列化版本ID
serialVersionUID: true
# 是否使用Serial注解(Java 14+)
serialAnnotation: false
# 是否生成字段常量
columnConstant: false
# 是否启用链式模型(返回this)
chainModel: false
# 是否生成toString方法(lombok=false时有效)
toString: true
# 是否使用JavaDoc注释字段
fieldUseJavaDoc: true
# 是否启用ActiveRecord模式
activeRecord: false
# 是否实现Serializable接口
serializable: true
# 是否生成equals和hashCode方法
equalsAndHashCode: false
# 字段命名策略: camelCase(驼峰), underline(下划线)
fieldNaming: camelCase
# 表名注解策略: none(无注解), table(使用@Table), entity(使用@Entity)
tableAnnotation: none
controller:
# 驼峰转连字符(默认 false
## <code>@RequestMapping("/managerUserActionHistory")</code> -> <code>@RequestMapping("/manager-user-action-history")</code>
mappingHyphen: true
# 生成 <code>@RestController</code> 控制器(默认 false
## <code>@Controller</code> -> <code>@RestController</code>
restStyle: true
# 自定义继承的Controller类全称带包名,默认为空
## superClass: com.yexuejc.db2java.export.controller.BaseController
superClass: