분류 전체보기
-
RestAPI PathVariable 부분에 여러개의 파라미터를 매핑하기프로그래밍/Spring Boot 2022. 12. 18. 17:54
지금 진행하는 프로젝트 특성상, 다음과 같은 시나리오가 필요하였다. 데이터베이스상에 기록된 다음과 같은 파라미터들이 현재 요청으로 들어오는 파라미터 들과 일치하는가 ? 를 보는것이 문제였는데, 일반적으로 사용하는 RequestMapping PathVariable 의 경우에는, @RestController @RequestMapping("/route/{member}/{route}") public class CustomRouiteController { @GetMapping public Object GetCustomRoute( @PathVariable(value = "member") String memberId, @PathVariable(value = "route") String route ) { Map map..