Loading tutorials
@RestController and @GetMapping, and that you know HTTP headers, query parameters and status codes. It also assumes you can read @Configuration classes. The mechan6 min read@RestController and @GetMapping, and that you have used @Configuration classes in Spring Boot. You should also know what an HTTP header is. Earlier chapters covered why and when to version an API and how to choose a strategy. Here 6 min read@RestController classes, know what WebMvcConfigurer is, and can read HTTP headers and query strings. You should also have seen ApiVersionConfigurer and the version attribute on `@G5 min readApiVersionConfigurer enables versioning and how a version resolver extracts a raw string from the request. Here you will see what happens to that string next. Spring t5 min readversion attribute on request mapping annotations. It assumes you can write @RestController classes with @GetMapping and @PathVariable, and that you configured a version resolver in the previous chapters. Here the focus is how Spring chooses between handler methods tha5 min read@Configuration classes and `applicat5 min read@GetMapping, and that you have enabled header-based versioning with ApiVersionConfigurer. It also assumes you know that supported versions are declared in that configuration. Here you will learn how the version attribute decides wh6 min readApiVersionConfigurer. This chapter moves the same setup into application.properties or application.yml. It assumes you can write a Spring MVC controller and that you know how @GetMapping(version = ...) selects a handler. It also assumes you5 min readApiVersionConfigurer and map methods with the version attribute, as the earlier chapters showed. It covers what Spring MVC does when a request carries no version, a version it cannot parse, or a version it does not support. You will also see how to test the5 min readRestClient to send that version, so calling code names a version and never builds headers by hand. It assumes you can write a Spring MVC controller, yo6 min readRestClient. It assumes you have read the earlier chapters on ApiVersionConfigurer, the version attribute, default versions and the error behavior for bad 5 min readApiVersionConfigurer, use the version attribute on mappings, and read a base7 min read