Added Springfox Swagger-UI and it's not working, what am I missing?

后端 未结 11 1495
甜味超标
甜味超标 2020-12-02 00:00

Following the instructions here:

http://www.baeldung.com/swagger-2-documentation-for-spring-rest-api

I added these dependencies to my project:



        
11条回答
  •  一整个雨季
    2020-12-02 00:25

    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)

提交回复
热议问题