version관리
-
[Restuful 학습] - 버전관리SPRING/WEBSERVICE 2020. 8. 8. 20:48
Restful 웹서비스 개발방식에서 버전관리를 하는 법은 여러가지이다. 1. mapping url / 메서드 별 관리 @GetMapping("/v1/users/{id}") public MappingJacksonValue retrieveUservV1(@PathVariable int id) @GetMapping("/v2/users/{id}") public MappingJacksonValue retrieveUserV2(@PathVariable int id) 2. paramter를 사용하는 방법 @GetMapping(value = "/users/{id}", params = "version=1") @GetMapping(value = "/users/{id}", params="version=2") 위와 같이 Para..