1. 统一包名修改
This commit is contained in:
@@ -25,13 +25,13 @@ import java.util.Date;
|
||||
@Accessors(chain = true)
|
||||
public class BusinessFileWithUrlRespVO extends BusinessFileRespVO {
|
||||
|
||||
@Schema(description = "文件路径", example = "cloud.jpg")
|
||||
@Schema(description = "文件路径", example = "zt.jpg")
|
||||
private String filePath;
|
||||
|
||||
@Schema(description = "文件 URL", example = "https://www.iocoder.cn/cloud.jpg")
|
||||
@Schema(description = "文件 URL", example = "https://www.iocoder.cn/zt.jpg")
|
||||
private String fileUrl;
|
||||
|
||||
@Schema(description = "附件预览地址", example = "https://www.iocoder.cn/cloud.jpg")
|
||||
@Schema(description = "附件预览地址", example = "https://www.iocoder.cn/zt.jpg")
|
||||
private String previewUrl;
|
||||
|
||||
@Schema(description = "是否加密", example = "false")
|
||||
@@ -79,7 +79,7 @@ public class BusinessFileWithUrlRespVO extends BusinessFileRespVO {
|
||||
return null;
|
||||
}
|
||||
// 这里的 onlinePreview 通过 SpringUtils 获取
|
||||
String onlinePreview = SpringUtils.getProperty("cloud.kkfile");
|
||||
String onlinePreview = SpringUtils.getProperty("zt.kkfile");
|
||||
if (onlinePreview == null || onlinePreview.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -50,8 +50,8 @@ public class CodegenController {
|
||||
@Operation(summary = "获得数据库自带的表定义列表", description = "会过滤掉已经导入 Codegen 的表")
|
||||
@Parameters({
|
||||
@Parameter(name = "dataSourceConfigId", description = "数据源配置的编号", required = true, example = "1"),
|
||||
@Parameter(name = "name", description = "表名,模糊匹配", example = "cloud"),
|
||||
@Parameter(name = "comment", description = "描述,模糊匹配", example = "ZT")
|
||||
@Parameter(name = "name", description = "表名,模糊匹配", example = "zt"),
|
||||
@Parameter(name = "comment", description = "描述,模糊匹配", example = "芋道")
|
||||
})
|
||||
@PreAuthorize("@ss.hasPermission('infra:codegen:query')")
|
||||
public CommonResult<List<DatabaseTableRespVO>> getDatabaseTableList(
|
||||
|
||||
@@ -13,13 +13,13 @@ import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH
|
||||
@Data
|
||||
public class CodegenTablePageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "表名称,模糊匹配", example = "cloud")
|
||||
@Schema(description = "表名称,模糊匹配", example = "zt")
|
||||
private String tableName;
|
||||
|
||||
@Schema(description = "表描述,模糊匹配", example = "ZT")
|
||||
@Schema(description = "表描述,模糊匹配", example = "芋道")
|
||||
private String tableComment;
|
||||
|
||||
@Schema(description = "实体,模糊匹配", example = "Cloud")
|
||||
@Schema(description = "实体,模糊匹配", example = "Zt")
|
||||
private String className;
|
||||
|
||||
@Schema(description = "创建时间", example = "[2022-07-01 00:00:00,2022-07-01 23:59:59]")
|
||||
|
||||
@@ -15,10 +15,10 @@ public class CodegenTableRespVO {
|
||||
@Schema(description = "生成场景,参见 CodegenSceneEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
private Integer scene;
|
||||
|
||||
@Schema(description = "表名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "cloud")
|
||||
@Schema(description = "表名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "zt")
|
||||
private String tableName;
|
||||
|
||||
@Schema(description = "表描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "ZT")
|
||||
@Schema(description = "表描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道")
|
||||
private String tableComment;
|
||||
|
||||
@Schema(description = "备注", example = "我是备注")
|
||||
@@ -36,7 +36,7 @@ public class CodegenTableRespVO {
|
||||
@Schema(description = "类描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "代码生成器的表定义")
|
||||
private String classComment;
|
||||
|
||||
@Schema(description = "作者", requiredMode = Schema.RequiredMode.REQUIRED, example = "ZT源码")
|
||||
@Schema(description = "作者", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道源码")
|
||||
private String author;
|
||||
|
||||
@Schema(description = "模板类型,参见 CodegenTemplateTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
|
||||
@@ -21,11 +21,11 @@ public class CodegenTableSaveReqVO {
|
||||
@NotNull(message = "导入类型不能为空")
|
||||
private Integer scene;
|
||||
|
||||
@Schema(description = "表名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "cloud")
|
||||
@Schema(description = "表名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "zt")
|
||||
@NotNull(message = "表名称不能为空")
|
||||
private String tableName;
|
||||
|
||||
@Schema(description = "表描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "ZT")
|
||||
@Schema(description = "表描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道")
|
||||
@NotNull(message = "表描述不能为空")
|
||||
private String tableComment;
|
||||
|
||||
@@ -48,7 +48,7 @@ public class CodegenTableSaveReqVO {
|
||||
@NotNull(message = "类描述不能为空")
|
||||
private String classComment;
|
||||
|
||||
@Schema(description = "作者", requiredMode = Schema.RequiredMode.REQUIRED, example = "ZT源码")
|
||||
@Schema(description = "作者", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道源码")
|
||||
@NotNull(message = "作者不能为空")
|
||||
private String author;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ public class DatabaseTableRespVO {
|
||||
@Schema(description = "表名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "yuanma")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "表描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "ZT源码")
|
||||
@Schema(description = "表描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道源码")
|
||||
private String comment;
|
||||
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ Authorization: Bearer {{token}}
|
||||
"accessSecret": "kXM1l5ia1RvSX3QaOEcwI3RLz3Y2rmNszWonKZtP",
|
||||
"bucket": "ruoyi-vue-pro",
|
||||
"endpoint": "s3-cn-south-1.qiniucs.com",
|
||||
"domain": "http://test.cloud.iocoder.cn",
|
||||
"domain": "http://test.zt.iocoder.cn",
|
||||
"region": "oss-cn-beijing"
|
||||
}
|
||||
}
|
||||
@@ -33,7 +33,7 @@ Authorization: Bearer {{token}}
|
||||
"accessSecret": "kXM1l5ia1RvSX3QaOEcwI3RLz3Y2rmNszWonKZtP",
|
||||
"bucket": "ruoyi-vue-pro",
|
||||
"endpoint": "s3-cn-south-1.qiniucs.com",
|
||||
"domain": "http://test.cloud.iocoder.cn",
|
||||
"domain": "http://test.zt.iocoder.cn",
|
||||
"region": "oss-cn-beijing"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,15 +13,15 @@ public class FileCreateReqVO {
|
||||
private Long configId;
|
||||
|
||||
@NotNull(message = "文件路径不能为空")
|
||||
@Schema(description = "文件路径", requiredMode = Schema.RequiredMode.REQUIRED, example = "cloud.jpg")
|
||||
@Schema(description = "文件路径", requiredMode = Schema.RequiredMode.REQUIRED, example = "zt.jpg")
|
||||
private String path;
|
||||
|
||||
@NotNull(message = "原文件名不能为空")
|
||||
@Schema(description = "原文件名", requiredMode = Schema.RequiredMode.REQUIRED, example = "cloud.jpg")
|
||||
@Schema(description = "原文件名", requiredMode = Schema.RequiredMode.REQUIRED, example = "zt.jpg")
|
||||
private String name;
|
||||
|
||||
@NotNull(message = "文件 URL不能为空")
|
||||
@Schema(description = "文件 URL", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/cloud.jpg")
|
||||
@Schema(description = "文件 URL", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/zt.jpg")
|
||||
private String url;
|
||||
|
||||
@Schema(description = "文件 MIME 类型", example = "application/octet-stream")
|
||||
|
||||
@@ -13,7 +13,7 @@ import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH
|
||||
@Data
|
||||
public class FilePageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "文件路径,模糊匹配", example = "cloud")
|
||||
@Schema(description = "文件路径,模糊匹配", example = "zt")
|
||||
private String path;
|
||||
|
||||
@Schema(description = "文件类型,模糊匹配", example = "jpg")
|
||||
|
||||
@@ -24,7 +24,7 @@ public class FilePresignedUrlRespVO {
|
||||
* 前端上传完文件后,需要使用该 URL 进行访问
|
||||
*/
|
||||
@Schema(description = "文件访问 URL", requiredMode = Schema.RequiredMode.REQUIRED,
|
||||
example = "https://test.cloud.iocoder.cn/758d3a5387507358c7236de4c8f96de1c7f5097ff6a7722b34772fb7b76b140f.png")
|
||||
example = "https://test.zt.iocoder.cn/758d3a5387507358c7236de4c8f96de1c7f5097ff6a7722b34772fb7b76b140f.png")
|
||||
private String url;
|
||||
|
||||
/**
|
||||
|
||||
@@ -48,17 +48,17 @@ public class FileRespVO {
|
||||
@Schema(description = "配置编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "11")
|
||||
private Long configId;
|
||||
|
||||
@Schema(description = "文件路径", requiredMode = Schema.RequiredMode.REQUIRED, example = "cloud.jpg")
|
||||
@Schema(description = "文件路径", requiredMode = Schema.RequiredMode.REQUIRED, example = "zt.jpg")
|
||||
private String path;
|
||||
|
||||
@Schema(description = "原文件名", requiredMode = Schema.RequiredMode.REQUIRED, example = "cloud.jpg")
|
||||
@Schema(description = "原文件名", requiredMode = Schema.RequiredMode.REQUIRED, example = "zt.jpg")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "文件 URL", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/cloud.jpg")
|
||||
@Schema(description = "文件 URL", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/zt.jpg")
|
||||
private String url;
|
||||
|
||||
// 附件预览地址
|
||||
@Schema(description = "附件预览地址", example = "https://www.iocoder.cn/cloud.jpg")
|
||||
@Schema(description = "附件预览地址", example = "https://www.iocoder.cn/zt.jpg")
|
||||
private String previewUrl;
|
||||
|
||||
public String getPreviewUrl() {
|
||||
@@ -71,7 +71,7 @@ public class FileRespVO {
|
||||
return null;
|
||||
}
|
||||
// 这里的 onlinePreview 通过 SpringUtils 获取
|
||||
String onlinePreview = SpringUtils.getProperty("cloud.kkfile");
|
||||
String onlinePreview = SpringUtils.getProperty("zt.kkfile");
|
||||
if (onlinePreview == null || onlinePreview.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ public class ApiAccessLogRespVO {
|
||||
@ExcelProperty("结果码")
|
||||
private Integer resultCode;
|
||||
|
||||
@Schema(description = "结果提示", example = "ZT源码,牛逼!")
|
||||
@Schema(description = "结果提示", example = "芋道源码,牛逼!")
|
||||
@ExcelProperty("结果提示")
|
||||
private String resultMsg;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* 提供 RESTful API 给前端:
|
||||
* 1. admin 包:提供给管理后台 cloud-ui-admin 前端项目
|
||||
* 2. app 包:提供给用户 APP cloud-ui-app 前端项目,它的 Controller 和 VO 都要添加 App 前缀,用于和管理后台进行区分
|
||||
* 1. admin 包:提供给管理后台 zt-ui-admin 前端项目
|
||||
* 2. app 包:提供给用户 APP zt-ui-app 前端项目,它的 Controller 和 VO 都要添加 App 前缀,用于和管理后台进行区分
|
||||
*/
|
||||
package com.zt.plat.module.infra.controller;
|
||||
|
||||
@@ -1 +1 @@
|
||||
<http://www.iocoder.cn/Spring-Boot/MapStruct/?cloud>
|
||||
<http://www.iocoder.cn/Spring-Boot/MapStruct/?zt>
|
||||
|
||||
@@ -14,8 +14,8 @@ import java.time.LocalDateTime;
|
||||
*
|
||||
* @author ZT
|
||||
*/
|
||||
@TableName("cloud_demo01_contact")
|
||||
@KeySequence("cloud_demo01_contact_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@TableName("zt_demo01_contact")
|
||||
@KeySequence("zt_demo01_contact_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
|
||||
@@ -12,8 +12,8 @@ import lombok.*;
|
||||
*
|
||||
* @author ZT
|
||||
*/
|
||||
@TableName("cloud_demo02_category")
|
||||
@KeySequence("cloud_demo02_category_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@TableName("zt_demo02_category")
|
||||
@KeySequence("zt_demo02_category_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
|
||||
@@ -12,8 +12,8 @@ import lombok.*;
|
||||
*
|
||||
* @author ZT
|
||||
*/
|
||||
@TableName("cloud_demo03_course")
|
||||
@KeySequence("cloud_demo03_course_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@TableName("zt_demo03_course")
|
||||
@KeySequence("zt_demo03_course_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
|
||||
@@ -12,8 +12,8 @@ import lombok.*;
|
||||
*
|
||||
* @author ZT
|
||||
*/
|
||||
@TableName("cloud_demo03_grade")
|
||||
@KeySequence("cloud_demo03_grade_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@TableName("zt_demo03_grade")
|
||||
@KeySequence("zt_demo03_grade_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
|
||||
@@ -14,8 +14,8 @@ import java.time.LocalDateTime;
|
||||
*
|
||||
* @author ZT
|
||||
*/
|
||||
@TableName("cloud_demo03_student")
|
||||
@KeySequence("cloud_demo03_student_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@TableName("zt_demo03_student")
|
||||
@KeySequence("zt_demo03_student_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
|
||||
@@ -10,7 +10,7 @@ import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import java.util.Collection;
|
||||
|
||||
@ConfigurationProperties(prefix = "cloud.codegen")
|
||||
@ConfigurationProperties(prefix = "zt.codegen")
|
||||
@Validated
|
||||
@Data
|
||||
public class CodegenProperties {
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
* @author ZT
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public class CloudFileAutoConfiguration {
|
||||
public class ZtFileAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
public FileClientFactory fileClientFactory() {
|
||||
@@ -41,7 +41,7 @@ public class S3FileClient extends AbstractFileClient<S3FileClientConfig> {
|
||||
if (realExpiration == null) {
|
||||
long expireSeconds = 30; // 默认 30 秒
|
||||
try {
|
||||
String val = SpringUtils.getProperty("cloud.file.download-expire-seconds");
|
||||
String val = SpringUtils.getProperty("zt.file.download-expire-seconds");
|
||||
if (val != null && !val.isEmpty()) {
|
||||
expireSeconds = Long.parseLong(val);
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.zt.plat.module.infra.framework.file.core.client.s3;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.zt.plat.module.infra.framework.file.core.client.FileClientConfig;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import jakarta.validation.constraints.AssertTrue;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -1 +1 @@
|
||||
<http://www.iocoder.cn/Spring-Boot/Admin/?cloud>
|
||||
<http://www.iocoder.cn/Spring-Boot/Admin/?zt>
|
||||
|
||||
@@ -198,8 +198,8 @@ public class CodegenEngine {
|
||||
private Boolean jakartaEnable;
|
||||
|
||||
/**
|
||||
* 是否为 cloud-cloud 项目,用于解决 Boot 和 Cloud 的 api 模块兼容性问题
|
||||
* true - 需要有 cloud-module-xxx-api 模块
|
||||
* 是否为 zt-cloud 项目,用于解决 Boot 和 Cloud 的 api 模块兼容性问题
|
||||
* true - 需要有 zt-module-xxx-api 模块
|
||||
* false - 不需要有,使用 api、enum 包即可
|
||||
*/
|
||||
@Setter
|
||||
@@ -506,8 +506,8 @@ public class CodegenEngine {
|
||||
// 如果是 Boot 项目,则不使用 api/server 模块
|
||||
if (Boolean.FALSE.equals(cloudEnable)) {
|
||||
SERVER_TEMPLATES.forEach((templatePath, filePath) -> {
|
||||
filePath = StrUtil.replace(filePath, "/cloud-module-${table.moduleName}-api", "");
|
||||
filePath = StrUtil.replace(filePath, "/cloud-module-${table.moduleName}-server", "");
|
||||
filePath = StrUtil.replace(filePath, "/zt-module-${table.moduleName}-api", "");
|
||||
filePath = StrUtil.replace(filePath, "/zt-module-${table.moduleName}-server", "");
|
||||
templates.put(templatePath, filePath);
|
||||
});
|
||||
}
|
||||
@@ -583,14 +583,14 @@ public class CodegenEngine {
|
||||
}
|
||||
|
||||
private static String javaModuleFilePath(String path, String module, String src) {
|
||||
return "cloud-module-${table.moduleName}/" + // 顶级模块
|
||||
"cloud-module-${table.moduleName}-" + module + "/" + // 子模块
|
||||
return "zt-module-${table.moduleName}/" + // 顶级模块
|
||||
"zt-module-${table.moduleName}-" + module + "/" + // 子模块
|
||||
"src/" + src + "/java/${basePackage}/module/${table.moduleName}/" + path + ".java";
|
||||
}
|
||||
|
||||
private static String mapperXmlFilePath() {
|
||||
return "cloud-module-${table.moduleName}/" + // 顶级模块
|
||||
"cloud-module-${table.moduleName}-server/" + // 子模块
|
||||
return "zt-module-${table.moduleName}/" + // 顶级模块
|
||||
"zt-module-${table.moduleName}-server/" + // 子模块
|
||||
"src/main/resources/mapper/${table.businessName}/${table.className}Mapper.xml";
|
||||
}
|
||||
|
||||
@@ -599,7 +599,7 @@ public class CodegenEngine {
|
||||
}
|
||||
|
||||
private static String vueFilePath(String path) {
|
||||
return "cloud-ui-${sceneEnum.basePackage}-vue2/" + // 顶级目录
|
||||
return "zt-ui-${sceneEnum.basePackage}-vue2/" + // 顶级目录
|
||||
"src/" + path;
|
||||
}
|
||||
|
||||
@@ -608,7 +608,7 @@ public class CodegenEngine {
|
||||
}
|
||||
|
||||
private static String vue3FilePath(String path) {
|
||||
return "cloud-ui-${sceneEnum.basePackage}-vue3/" + // 顶级目录
|
||||
return "zt-ui-${sceneEnum.basePackage}-vue3/" + // 顶级目录
|
||||
"src/" + path;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,9 +45,9 @@ import static com.zt.plat.module.infra.enums.ErrorCodeConstants.*;
|
||||
public class FileServiceImpl implements FileService {
|
||||
|
||||
|
||||
@Value("${cloud.AES.key}")
|
||||
@Value("${zt.AES.key}")
|
||||
private String aesKey;
|
||||
@Value("${cloud.verify-code:}")
|
||||
@Value("${zt.verify-code:}")
|
||||
private String fixedVerifyCode;
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -96,6 +96,6 @@ spring:
|
||||
# Spring Boot Admin Server 服务端的相关配置
|
||||
context-path: /admin # 配置 Spring
|
||||
|
||||
--- #################### ZT相关配置 ####################
|
||||
--- #################### 芋道相关配置 ####################
|
||||
|
||||
|
||||
|
||||
@@ -111,10 +111,10 @@ logging:
|
||||
com.zt.plat.module.infra.dal.mysql.file.FileConfigMapper: INFO # 配置 FileConfigMapper 的日志级别为 info
|
||||
org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR # TODO 芋艿:先禁用,Spring Boot 3.X 存在部分错误的 WARN 提示
|
||||
|
||||
--- #################### ZT相关配置 ####################
|
||||
--- #################### 芋道相关配置 ####################
|
||||
|
||||
# ZT配置项,设置当前项目所有自定义的配置
|
||||
cloud:
|
||||
# 芋道配置项,设置当前项目所有自定义的配置
|
||||
zt:
|
||||
env: # 多环境的配置项
|
||||
tag: ${HOSTNAME}
|
||||
security:
|
||||
|
||||
@@ -85,7 +85,7 @@ mybatis-plus:
|
||||
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
|
||||
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
|
||||
banner: false # 关闭控制台的 Banner 打印
|
||||
type-aliases-package: ${cloud.info.base-package}.dal.dataobject
|
||||
type-aliases-package: ${zt.info.base-package}.dal.dataobject
|
||||
encryptor:
|
||||
password: XDV71a+xqStEA3WH # 加解密的秘钥,可使用 https://www.imaegoo.com/2020/aes-key-generator/ 网站生成
|
||||
|
||||
@@ -140,9 +140,9 @@ xxl:
|
||||
logpath: ${user.home}/logs/xxl-job/${spring.application.name} # 执行器运行日志文件存储磁盘路径
|
||||
accessToken: default_token # 执行器通讯TOKEN
|
||||
|
||||
--- #################### ZT相关配置 ####################
|
||||
--- #################### 芋道相关配置 ####################
|
||||
|
||||
cloud:
|
||||
zt:
|
||||
# 附件加密相关配置
|
||||
AES:
|
||||
key: "0123456789abcdef0123456789abcdef"
|
||||
@@ -153,7 +153,7 @@ cloud:
|
||||
base-package: com.zt.plat.module.infra
|
||||
web:
|
||||
admin-ui:
|
||||
url: http://dashboard.cloud.iocoder.cn # Admin 管理后台 UI 的地址
|
||||
url: http://dashboard.zt.iocoder.cn # Admin 管理后台 UI 的地址
|
||||
xss:
|
||||
enable: false
|
||||
exclude-urls: # 如下两个 url,仅仅是为了演示,去掉配置也没关系
|
||||
@@ -175,7 +175,7 @@ cloud:
|
||||
swagger:
|
||||
title: 管理后台
|
||||
description: 提供管理员管理的所有功能
|
||||
version: ${cloud.info.version}
|
||||
version: ${zt.info.version}
|
||||
codegen:
|
||||
base-package: com.zt.plat
|
||||
db-schemas: ${spring.datasource.dynamic.datasource.master.name}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// TODO 待办:请将下面的错误码复制到 cloud-module-${table.moduleName} 模块的 ErrorCodeConstants 类中。注意,请给“TODO 补充编号”设置一个错误码编号!!!
|
||||
// TODO 待办:请将下面的错误码复制到 zt-module-${table.moduleName} 模块的 ErrorCodeConstants 类中。注意,请给“TODO 补充编号”设置一个错误码编号!!!
|
||||
// ========== ${table.classComment} TODO 补充编号 ==========
|
||||
ErrorCode ${simpleClassName_underlineCase.toUpperCase()}_NOT_EXISTS = new ErrorCode(TODO 补充编号, "${table.classComment}不存在");
|
||||
## 特殊:树表专属逻辑
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
-- 将该建表 SQL 语句,添加到 cloud-module-${table.moduleName}-biz 模块的 test/resources/sql/create_tables.sql 文件里
|
||||
-- 将该建表 SQL 语句,添加到 zt-module-${table.moduleName}-biz 模块的 test/resources/sql/create_tables.sql 文件里
|
||||
CREATE TABLE IF NOT EXISTS "${table.tableName.toLowerCase()}" (
|
||||
#foreach ($column in $columns)
|
||||
#if (${column.javaType} == 'Long')
|
||||
@@ -33,5 +33,5 @@ CREATE TABLE IF NOT EXISTS "${table.tableName.toLowerCase()}" (
|
||||
PRIMARY KEY ("${primaryColumn.columnName.toLowerCase()}")
|
||||
) COMMENT '${table.tableComment}';
|
||||
|
||||
-- 将该删表 SQL 语句,添加到 cloud-module-${table.moduleName}-biz 模块的 test/resources/sql/clean.sql 文件里
|
||||
-- 将该删表 SQL 语句,添加到 zt-module-${table.moduleName}-biz 模块的 test/resources/sql/clean.sql 文件里
|
||||
DELETE FROM "${table.tableName}";
|
||||
@@ -1,8 +1,8 @@
|
||||
<configuration>
|
||||
<!-- 引用 Spring Boot 的 logback 基础配置 -->
|
||||
<include resource="org/springframework/boot/logging/logback/defaults.xml" />
|
||||
<!-- 变量 cloud.info.base-package,基础业务包 -->
|
||||
<springProperty scope="context" name="cloud.info.base-package" source="cloud.info.base-package"/>
|
||||
<!-- 变量 zt.info.base-package,基础业务包 -->
|
||||
<springProperty scope="context" name="zt.info.base-package" source="zt.info.base-package"/>
|
||||
<!-- 格式化输出:%d 表示日期,%X{tid} SkWalking 链路追踪编号,%thread 表示线程名,%-5level:级别从左显示 5 个字符宽度,%msg:日志消息,%n是换行符 -->
|
||||
<property name="PATTERN_DEFAULT" value="%d{${LOG_DATEFORMAT_PATTERN:-yyyy-MM-dd HH:mm:ss.SSS}} | %highlight(${LOG_LEVEL_PATTERN:-%5p} ${PID:- }) | %boldYellow(%thread [%tid]) %boldGreen(%-40.40logger{39}) | %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user