miz의 devlog
  • 홈
  • 태그
  • 방명록
    • 분류 전체보기 (14)
      • Spring (10)
      • Java (3)
  • 글작성
  • 방명록
  • 환경설정
  • 메뉴 닫기
@Valid 검색 결과
1 개의 검색 결과가 있습니다.
Spring

Spring Collection @Valid

@Valid를 통한 Collection Dto 객체 validation public class OrderItemRequest { @NotNull(message = "name is not null") @Length(max=50) private String name; @Min(value = 0, message = "price is over zero") private int unitPrice; @Min(value = 1, message = "price is over zero") private int unitCount; } @PostMapping("/test") public ApiResult test( @RequestBody @NotEmpty @Valid List items ) { // 생략 } 먼저 Colle..

2021. 6. 22. 15:15
  • «
  • 1
  • »

공지사항

  • GitHub
애드센스 광고 영역

전체 카테고리

  • 분류 전체보기 (14)
    • Spring (10)
    • Java (3)
  • 최근 글
  • 최근 댓글

최근 글

최근댓글

태그

  • #jpatest
  • #Java8
  • #java11
  • #Xms
  • #@Valid
  • #git
  • #G1GC
  • #bean
  • #생명주기
  • #java
  • #IOC
  • #dto
  • #jvm
  • #SpringBatch
  • #jpa
  • #controller
  • #g1
  • #library
  • #gc
  • #pararellgc
  • #layer
  • #commit
  • #service
  • #Di
  • #Lifecycle
  • #@Validated
  • #spring
  • #Collection
  • #framwork
  • #batch
더보기+

전체 방문자

오늘
어제
전체

블로그 인기글

Powered by Privatenote Copyright © miz의 devlog All rights reserved. TistoryWhaleSkin3.4

티스토리툴바