Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- Android
- AOP
- jpa
- 백준
- db
- 알고리즘
- spring
- kotlin
- JPQL
- Exception
- java
- 스프링 핵심 기능
- QueryDSL
- 김영한
- SpringBoot
- Proxy
- Greedy
- Thymeleaf
- pointcut
- JDBC
- Servlet
- Spring Boot
- 인프런
- 그리디
- 스프링
- http
- 자바
- transaction
- 스프링 핵심 원리
- springdatajpa
Archives
- Today
- Total
목록BeanValidator (1)
개발자되기 프로젝트
Bean Validation
검증 기능을 지금처럼 매번 코드로 작성하는 것은 귀찮음... 특히 특정 필드에 대한 검증 로직은 대부분 빈 값인지 아닌지, 특정 크기를 넘는지 아닌지와 같이 매우 일반적 로직임. ??? : 그러면 @Annotation으로 처리해보자. public class Item { private Long id; @NotBlank private String itemName; @NotNull @Range(min = 1000, max = 1000000) private Integer price; @NotNull @Max(9999) private Integer quantity; //... } 1. Bean Validation 먼저 Bean Validation은 특정한 구현체가 아니라 Bean Validation 2.0(JSR..
인프런/[인프런] 스프링 MVC 2
2021. 9. 25. 11:10