Following the instructions here:
http://www.baeldung.com/swagger-2-documentation-for-spring-rest-api
I added these dependencies to my project:
Note: springfox Version 3.0.0 throw Whitelabel Error Page with below solution
Spring boot 2.3.3.RELEASE
Even with this it doen't matter if request mapping having path variable.
After going through many solution page nothing worked. but
io.springfox
springfox-swagger-ui
2.9.2
io.springfox
springfox-swagger2
2.9.2
io.springfox
springfox-schema
2.9.2
Run (Definitely needed) : Mvn clean
@Configuration
@EnableSwagger2
No need to add new Docket Bean for simple swagger configuration(i.e. path and basepackage)