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

前端 未结 13 865
醉话见心
醉话见心 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:30

    I had the same issue, but (maybe) I had a version missmatch in the pom.xml

    My project version is:

    
        org.springframework.boot
        spring-boot-starter-parent
        2.2.0.M5
         
    
    

    Then, It started to work when I added the following dependency:

      
            org.springframework.plugin
            spring-plugin-core
            1.2.0.RELEASE
        
    

    Found at: https://github.com/springfox/springfox/issues/2932

提交回复
热议问题