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

每个字段都要写一个验证类,代码量还是蛮大的。 #12

Open
Skqing opened this issue Mar 20, 2017 · 1 comment
Open

Comments

@Skqing
Copy link

Skqing commented Mar 20, 2017

每个字段都要写一个验证类,代码量还是蛮大的,有没有更好的方案,或者用内部类可以吗,POJO对应一个验证类,此类里面包含每个字段验证的子类,并且需要包含对POJO本身为不为空的判断吧?

@neoremind
Copy link
Owner

你好,你用的是注解的方式吗?可以考虑使用纯API的方式。

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