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

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

    I am using spring boot.

    In my case I made mistake in package name. in my project the base package name is

    org.liferayasif.documents
    

    so my configuration file should be inside

    org.liferayasif.documents.config
    

    config -> u can give any name.

    but by mistake I put in different package name give below

    org.liferayasif.config
    

    once I put the configuration file inside proper package name in my case

    org.liferayasif.documents.config
    

    then it worked properly.

提交回复
热议问题