심바의 개발일지

  • 홈
  • 태그
  • 방명록

@Min 1

@RequestParam validation @Min 활용하기

@RequestParam validation 활용하기 @RequestParam 데이터 validation방법으로는 Controller class에 @Validate 를 추가하고 유효성체크하려는 파라미터 앞에 @Min 을 정의한다 최소값 정의 @Slf4j @Validated @RestController public class TestController { @GetMapping(value="/test") public ResultInfo test(@RequestParam @Min(1) int id){ log.info("requested param = {}", id); } }

SpringBoot 2021.04.15
1
더보기
프로필사진

  • 분류 전체보기 (60)
    • JPA (0)
    • JS (1)
    • SpringBoot (11)
    • Vue (3)
    • DB (1)
      • Mysql (7)
    • Java (4)
    • ngnix (1)
    • Redis (0)
    • 알고리즘 (17)
    • 개발 (10)
    • Kotlin (1)
    • 내 자신에게 해주고 싶은 말 (0)

Tag

sourcetree github access token, 백준, MySQL, java, sourcetree access token github, rename folder, 폴더 이름바꾸기, Queue PriorityQueue, while connecting to upstream, 프로그래머스, sourcetree github not working, Please use a personal access token instead, Cannot Connect to Database Server, how to change repository folder name, Vue, change folder name, HTTP 응답코드, 500 502 차이, Queue PrioirtyQueue 시간복잡도, Intellij,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/12   »
일 월 화 수 목 금 토
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

Copyright © Kakao Corp. All rights reserved.

티스토리툴바