Browse Source

移除用户昵称

master
zhouyl 11 months ago
parent
commit
567d17aa5d
  1. 6
      tp-admin/src/main/resources/application-dev.yml
  2. 1
      tp-common/src/main/java/com/inscloudtech/common/core/domain/entity/SysUser.java

6
tp-admin/src/main/resources/application-dev.yml

@ -17,7 +17,7 @@ spring:
driverClassName: com.mysql.cj.jdbc.Driver driverClassName: com.mysql.cj.jdbc.Driver
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562 # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题) # 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 username: root
password: 123456 password: 123456
# 从库数据源 # 从库数据源
@ -48,13 +48,13 @@ spring:
spring: spring:
redis: redis:
# 地址 # 地址
host: ly
host: localhost
# 端口,默认为6379 # 端口,默认为6379
port: 6379 port: 6379
# 数据库索引 # 数据库索引
database: 4 database: 4
# 密码(如没有密码请注释掉) # 密码(如没有密码请注释掉)
password: 123456
# password: 123456
# 连接超时时间 # 连接超时时间
timeout: 10s timeout: 10s
# 是否开启ssl # 是否开启ssl

1
tp-common/src/main/java/com/inscloudtech/common/core/domain/entity/SysUser.java

@ -53,7 +53,6 @@ public class SysUser extends BaseEntity {
* 用户昵称 * 用户昵称
*/ */
@Xss(message = "用户昵称不能包含脚本字符") @Xss(message = "用户昵称不能包含脚本字符")
@NotBlank(message = "用户昵称不能为空")
@Size(min = 0, max = 30, message = "用户昵称长度不能超过{max}个字符") @Size(min = 0, max = 30, message = "用户昵称长度不能超过{max}个字符")
private String nickName; private String nickName;

Loading…
Cancel
Save