From 567d17aa5dff4c972876b07de6900f073f7a2dd0 Mon Sep 17 00:00:00 2001 From: zhouyl <583641232@qq.com> Date: Tue, 8 Oct 2024 17:08:26 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E7=A7=BB=E9=99=A4=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=98=B5=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tp-admin/src/main/resources/application-dev.yml | 6 +++--- .../com/inscloudtech/common/core/domain/entity/SysUser.java | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tp-admin/src/main/resources/application-dev.yml b/tp-admin/src/main/resources/application-dev.yml index 5386742..63f71f5 100644 --- a/tp-admin/src/main/resources/application-dev.yml +++ b/tp-admin/src/main/resources/application-dev.yml @@ -17,7 +17,7 @@ spring: driverClassName: com.mysql.cj.jdbc.Driver # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562 # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题) - url: jdbc:mysql://ly:3306/test_platform?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true + url: jdbc:mysql://localhost:3306/test_platform?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true username: root password: 123456 # 从库数据源 @@ -48,13 +48,13 @@ spring: spring: redis: # 地址 - host: ly + host: localhost # 端口,默认为6379 port: 6379 # 数据库索引 database: 4 # 密码(如没有密码请注释掉) - password: 123456 +# password: 123456 # 连接超时时间 timeout: 10s # 是否开启ssl diff --git a/tp-common/src/main/java/com/inscloudtech/common/core/domain/entity/SysUser.java b/tp-common/src/main/java/com/inscloudtech/common/core/domain/entity/SysUser.java index 9f86d86..6ff6fdd 100644 --- a/tp-common/src/main/java/com/inscloudtech/common/core/domain/entity/SysUser.java +++ b/tp-common/src/main/java/com/inscloudtech/common/core/domain/entity/SysUser.java @@ -53,7 +53,6 @@ public class SysUser extends BaseEntity { * 用户昵称 */ @Xss(message = "用户昵称不能包含脚本字符") - @NotBlank(message = "用户昵称不能为空") @Size(min = 0, max = 30, message = "用户昵称长度不能超过{max}个字符") private String nickName;