Unable to infer base url. ......Please enter the location manually:进不去swagger页面

Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served. For e.g. if the api is available at http://example.org/api/v2/api-docs then the base url is http://example.org/api/. Please enter the location manually:

Unable to infer base url. ......Please enter the location manually:进不去swagger页面_第1张图片

解决方法

查看swagger-ui的版本,推荐使用2.9.2版本,其他版本经常出现问题

       <dependency>
			<groupId>io.springfoxgroupId>
			<artifactId>springfox-swagger2artifactId>
			<version>2.9.2version>
		dependency>
		<dependency>
			<groupId>io.springfoxgroupId>
			<artifactId>springfox-swagger-uiartifactId>
			<version>2.9.2version>
		dependency>

你可能感兴趣的:(排错)