Olá,
sou iniciante em Spring e estou tentando usar validação de um bean
mais está me dando erro na linha @Size
public class Tarefa {
private Long id;
@NotNull
@Size(min=5, max=100)
erro
[/code]
Multiple markers at this line
- The attribute min is undefined for the annotation
type Size
- The attribute max is undefined for the annotation
type Size
- Size cannot be resolved to a type
[/code]
O que fiz criei um projeto Web versão module 2.5
e os jars que estou usando é :
commons-logging-1.0.4.jar
log4j-1.2.6.jar
mysql-connector-java-5.0.1.jar
slf4j-api-1.6.2.jar
slf4j-log4j12-1.6.2.jar
spring-aspects-3.2.2.RELEASE.jar
spring-aop-3.2.2.RELEASE.jar
spring-beans-3.2.2.RELEASE.jar
spring-context-3.2.2.RELEASE.jar
spring-core-3.2.2.RELEASE.jar
spring-expression-3.2.2.RELEASE.jar
spring-jdbc-3.2.2.RELEASE
spring-web-3.2.2.jar
spring-webmvc-3.2.2.RELEASE.jar
se alguém puder me ajudar agradeceria.
abs