일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- jmeter
- mybatis
- cassandra
- argo cd
- RabbitMQ
- WebLogic
- vue.js
- weblogic 10
- docker-compose
- Selenium
- QueryDSL
- redis
- Spring Open Feign
- netflix oss
- coalesce
- KAFKA
- docker
- grafana
- MySQL
- Netty
- spring boot redis
- Airflow
- docker compose mysql
- Redis Sentinel
- Hibernate
- Docker Compose
- ChannelPipeline
- spring boot
- spring cloud
- JPA
- Today
- Total
IT.FARMER
JSR303 HV000030 Error 본문
No validator could be found for constraint 'javax.validation.constraints.Size' validating type 'java.lang.Integer'
wrapper Type 의 경우 @NotNull 을 사용 하여야 한다. Null이 올수 있기 때문이다.
이데 @Size와 혼용이 안되고 HV.... Error
@Size를 민 맥스로 봤는데, 케릭터셋이나 Connection, Array 객체의 사이즈였다.
@Mix, Max 를 이용하여 처리한다.
javax.validation.constraints.Size
The annotated element size must be between the specified boundaries (included).
Supported types are:
- CharSequence (length of character sequence is evaluated)
- Collection (collection size is evaluated)
- Map (map size is evaluated)
- Array (array length is evaluated)
null elements are considered valid.
Author:Emmanuel Bernard
javax.validation.constraints.Max
@Constraint(validatedBy={})
@Target(value={ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
@Retention(value=RUNTIME)
@Documented
The annotated element must be a number whose value must be lower or equal to the specified maximum.
Supported types are:
- BigDecimal
- BigInteger
- byte, short, int, long, and their respective wrappers
Note that double and float are not supported due to rounding errors (some providers might provide some approximative support).
null elements are considered valid.
Author:Emmanuel Bernard
'JAVA' 카테고리의 다른 글
JAVA Exception 정리 (0) | 2019.02.26 |
---|---|
ExecutorService / ThreadPoolExecutor (0) | 2018.11.12 |
ExecutorService 를 이용한 javaMail 대량 메일 발송 bulk mail send (0) | 2016.10.04 |
JAVA try catch with resource (0) | 2016.03.15 |
FileInputStream vs FileReader 그리고 차이점 (0) | 2016.03.15 |