[RestApi] Versioning 버전 관리 방법
1. URI versioning http://localhost:8080 /v1/person http://localhost:8080 /v2/person @GetMapping("/v1/person") public PersonV1 getFirstVersionOfPerson() { return new PersonV1("Bob Charlie"); } @GetMapping("/v2/person") public PersonV2 getSecondVersionOfPerson() { return new PersonV2(new Name("Bob", "Charlie")); } 2. Request Parmeter versioning http://localhost:8080/person?version=1 http://localho..
2024.03.19