Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@FluentValid注解未生效是什么原因? #32

Closed
widy21 opened this issue Mar 28, 2018 · 2 comments
Closed

@FluentValid注解未生效是什么原因? #32

widy21 opened this issue Mar 28, 2018 · 2 comments

Comments

@widy21
Copy link

widy21 commented Mar 28, 2018

neo
2016/11/22·
一般来说对于前端提交的表单,通常后端会使用SpringMVC或者Struts来处理,一般都会封装成一个XXXForm,这样可以check against这个XXXForm整体即可。在这上面加上@FluentValid注解,然后在各个属性字段上写HibernateValidaion的验证或者自己实现Validator验证都可以,这些都是可以通过注解方式配置的。----大神你好,我现在就是这种方式,只不过我是在springboot项目中,用了@FluentValid注解的方式,但是并没有校验实体类上标注了@notblank的字段,这是为什么啊?(测试访问路径:http://localhost:8080/tf)
SpringBoot-master.zip

@widy21 widy21 closed this as completed Mar 29, 2018
@neoremind
Copy link
Owner

请问问题还存在吗?

@widy21
Copy link
Author

widy21 commented May 1, 2018

已经解决了,多谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants