简体   繁体   English

在Spring项目中实现JSR-303批注

[英]Implementing JSR-303 annotations into a Spring project

I'm working with Spring (and really Java on this level) for the first time. 我是第一次使用Spring(以及该级别上的Java)。 I have a basic Spring project that I've implemented JDBC authentication into and now I'm trying to use JSR-303 annotations to validate the input boxes on a page. 我有一个基本的Spring项目,已经在其中实现了JDBC身份验证,现在我正尝试使用JSR-303批注来验证页面上的输入框。

如果field为空,则只需删除min标志( 默认值为0 )。

删除以免影响锻炼。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM