Loading tutorials
@Configuration class. It also assumes you know what an HTTP header, a query parameter and a path segment are. The earlier chapters introduced ApiVersionConfigurer. Here you choose where Spring looks for the version.2 min readApiVersionConfigurer and have already chosen a version resolver, such as the X-API-Version header used in earlier chapters. It covers two settings on that configurer: the set of supported versions, and the parser that turns version text into comparable obje2 min read@RestController, @GetMapping and @PathVariable. It also assumes you know basic HTTP headers and have an application.properties file or a @Configuration class in your project. Versioning must already be switched on, as shown in 3 min read@Configuration classes. It also assumes you know basic HTTP, and you have already set up a version resolver and a list of supported versions. Here you decide what happens when a request carries no version at all.2 min readApiVersionConfigurer, with supported versions 1.0, 1.1 and 2.0. It covers how the version attribute on a mapping decides which requests a method receives.2 min read@RestController classes with @GetMapping, that you know application.properties, and that you have seen ApiVersionConfigurer in a @Configuration class. Here you move the same setup into properties, and you learn where properties stop being enough.3 min readApiVersionConfigurer with a header resolver and a supported-version list, and that you can map controller methods with the version attribute. It covers what Spring MVC does when a request has no version, a version it does not support, or a version that no h2 min read/accounts/{id} example from earlier chapters, with the header X-API-Version as the version source. You should know the basics of RestClient (building one and calling retrieve()). Here you will learn how the client side puts the vers2 min read@SpringBootTest tests, and that you have the AccountController and header-based configuration from the earlier chapters. The goal is to prove that each version reaches the right handler and that bad versions are rejected.2 min readApiVersionConfigurer, declared supported versions, and mapped controller methods with the version attribute. Here you will tell clients that a version is on its way out, before you remove it.2 min readApiVersionConfigurer, map methods with the version attribute, and read the version errors covered in earlier chapters. It covers how to avoid creating new versions, and how to remove old ones safely.3 min read