how to work this dependency
baggrek opened this issue · 5 comments
baggrek commented
im try set properties like
Version API
api.version.type=uri
api.version.uri-prefix=/api
api.version.uri-location=begin
Controller
@RestController
@RequestMapping("/config")
@apiversion("1")
after call api not found with base_url/v1/api/config
lkqm commented
Please confirm whether to restart the class to add annotation: @EnableApiVersioning ? like above:
@SpringBootApplication
@EnableApiVersioning
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
baggrek commented
lkqm commented
Current supports spring boot 2.3.9.RELEASE, 2.5.3 maybe not work, I will test it and fix
baggrek commented
thanks for support
lkqm commented
In your case, the right url is: /api/v1/config