Why does springfox-swagger2 UI tell me “Unable to infer base url.”

前端 未结 13 932
醉话见心
醉话见心 2020-12-10 11:01

Why does springfox-swagger2 UI tell me Unable to infer base url. As far as I know, I am using a typical Swagger spring-boot configuration.

As you can

13条回答
  •  北荒
    北荒 (楼主)
    2020-12-10 11:45

    OAHH, for me it was something new. I had 2 different versions for springfox-swagger2 and springfox-swagger-ui

    Before:

        
            io.springfox
            springfox-swagger2
            **2.6.1**
            compile
        
        
            io.springfox
            springfox-swagger-ui
            **2.9.2**
        
    

    After:

        
            io.springfox
            springfox-swagger2
            **2.9.2**
            compile
        
        
            io.springfox
            springfox-swagger-ui
            **2.9.2**
        
    

    This solved my problem.

提交回复
热议问题