SpringCloud微服务实战——搭建企业级开发框架(三十二):代码生成器使用配置说明

Java65

一、新建数据源配置

考虑到多个数据源的问题,代码生成器作为一个通用模块,可能会在以后为其他项目生成代码,所以它不直接读取系统工程配置的数据源,而是允许用户对其进行维护。

[En]

Taking into account the problem of multiple data sources, the code generator, as a general-purpose module, may generate code for other projects later, so it does not read the data sources configured by the system engineering directly, but allows users to maintain them.

SpringCloud微服务实战——搭建企业级开发框架(三十二):代码生成器使用配置说明

参数说明

  • 数据源名称:用于查找区分数据源的名称
  • 连接地址 : 连接方式:数据库类型:数据库地址等参数,例:jdbc:mysql://127.0.0.1/gitegg_cloud?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf8&all owMultiQueries=true&serverTimezone=Asia/Shanghai
  • 用户名:登录数据库的用户名
  • 密码:登录数据库的密码
  • 数据库驱动:数据库驱动类型,例:com.mysql.jdbc.Driver(MySQL5 )或 com.mysql.cj.jdbc.Driver(MySQL8 )
  • 数据库类型:选择对应的数据库类型。如果是新的,您可以添加数据字典。
    [En]

    Database type: select the corresponding database type. If new, you can add a data dictionary.*

  • 备注:备注信息

二、新建业务数据字典

界面的增、删、改、查界面会有一些数据字典或单选、多选等基础数据的下拉框。这些根据特定需求生成代码的表设计是提前计划的,数据字典是在业务字典中预先构建的。在自定义类型表中,单击记录所在的行,将出现右侧的字典值列表。

[En]

The addition, deletion, modification and query interface of the interface will have some drop-down boxes of data dictionaries or basic data such as single selection and multiple selection. These table designs that generate codes according to specific needs are planned in advance, and data dictionaries are built in advance in the business dictionary. In the custom type table, click on the row where a record is located and the list of dictionary values on the right will appear.

输入验证码查看隐藏内容

扫描二维码关注本站微信公众号 Johngo学长
或者在微信里搜索 Johngo学长
回复 svip 获取验证码
wechat Johngo学长