Comments (5)
phone那里用的@max注解,导致无法正常注册
`@Data @NoArgsConstructor @EqualField(srcField = "password", dstField = "confirmPassword", message = "{password.equal-field}") public class RegisterDTO {
@NotBlank(message = "{username.not-blank}") @Length(min = 2, max = 10, message = "{username.length}") private String username; private List<Integer> groupIds; @Email(message = "{email}") private String email; @NotBlank(message = "{password.new.not-blank}") @Pattern(regexp = "^[A-Za-z0-9_*&$#@]{6,22}$", message = "{password.new.pattern}") private String password; @NotBlank(message = "{password.confirm.not-blank}") private String confirmPassword; @Max(value = 30) private String phone;
}`
麻烦请再学习下这部分的内容(Hibernate Validator)
from lin-cms-spring-boot.
from lin-cms-spring-boot.
对啊,这个max注解不是你们框架加的吗,只能用在数字上,你们用在字符串上了 发自我的iPhone
…
------------------ 原始邮件 ------------------ 发件人: WeLong @.> 发送时间: 2021年11月14日 11:14 收件人: TaleLin/lin-cms-spring-boot @.> 抄送: yours520 @.>, Author @.> 主题: 回复:[TaleLin/lin-cms-spring-boot] 用户注册的bug (#252) @.注解,导致无法正常注册 @. @NoArgsConstructor @EqualField(srcField = "password", dstField = "confirmPassword", message = "{password.equal-field}") public class RegisterDTO { @notblank(message = "{username.not-blank}") @Length(min = 2, max = 10, message = "{username.length}") private String username; private List<Integer> groupIds; @Email(message = "{email}") private String email; @notblank(message = "{password.new.not-blank}") @pattern(regexp = "^[A-Za-z0-9_*&$#@]{6,22}$", message = "{password.new.pattern}") private String password; @notblank(message = "{password.confirm.not-blank}") private String confirmPassword; @max(value = 30) private String phone; }` 麻烦请再学习下这部分的内容(Hibernate Validator) — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
from lin-cms-spring-boot.
数据库里面我们也没有这个字段的,你看看git记录,应该是你自己加的吧
from lin-cms-spring-boot.
from lin-cms-spring-boot.
Related Issues (20)
- 权限管理部分,无法拓展,很僵~ HOT 1
- 删除权限分组bug HOT 3
- 找不到符号 HOT 1
- 是否能将慕课网的部分的完整sql提供一下? HOT 1
- 验证码接口异常 HOT 4
- 验证码请求接口报错,空指针异常 HOT 1
- 关于MetaInfo的identity签名无法覆盖重载方法的问题
- 关于文件上传的后缀包含与排除问题 HOT 2
- 项目中引入io.github.talelin 后 run 报错:Field authorizeVerifyResolver in io.github.talelin.autoconfigure.interceptor.AuthorizeInterceptor required a bean of type 的错误,请问是哪里有问题?
- 超级管理员(root)登陆未能看到权限管理 HOT 1
- 验证码接口返回服务器错误 HOT 2
- core --> BeanUtil --> getProperty方法里 invoke传入的是class对象,应该传的是实例对象吧?还有为啥这个方法返回的是String类型
- CWE-613: Insufficient Session Expiration 已经被删除的用户仍然可以继续在网站内操作。
- 用户列表错误
- io.github.talelin.core.token.DoubleJWT#generateToken 有线程安全问题,登录A账号进入B账号
- 无法加载io.github.talelin jar包 HOT 1
- 如何在@Logger注解中使用自定义字段
- 项目还在维护和升级么
- 添加图书和修改图书可以未授权访问
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lin-cms-spring-boot.