requestParam1 Spring Annotation 5. @RequestParam Spring Annotation 5. @RequestParam 스프링에서 @RequestParam 사용법 및 예제 @RequestParam은 스프링(Spring) 프레임워크에서 사용되는 어노테이션으로, 클라이언트가 전달하는 쿼리 파라미터를 컨트롤러 메서드의 인자로 가져올 수 있게 해줍니다. 이를 통해 요청의 쿼리 파라미터를 편리하게 처리할 수 있습니다. 예제 1. Controller 클래스 생성 import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @RestController public clas.. 2023. 4. 19. 이전 1 다음