一篇文章带你解决 Unable to infer base url. This is common when using dynamic servlet registra
2020-10-24 09:30
1521 查看
我这里使用的是2.10.2 版本的 swagger,这个版本将由于支持了WebFlux,所以之前的
@EnableSwagger2就移除掉了,变为
@EnableSwagger2WebMvc以及
@EnableSwagger2WebFlux
<dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.10.2</version> </dependency> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId> <version>2.10.2</version> </dependency>
学习 SpringBoot 整合 Swagger2 ,配置好之后突然遇到了这个问题
网上搜各种答案,尝试了:
(1&
20000
#xff09;启动类加扫描 config 路径
(2)启动类加注解
@EnableSwagger2WebFlux
都不好使 。。。。。
最后换了版本,换成了 2.9.2 版本的 swagger2
<dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependency> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId> <version>2.9.2</version> </dependency>
然后就好使了,真奇怪。。。。。
有知道什么原因的,欢迎大佬留言讨论
南淮北安 CSDN认证博客专家 神经网络 深度学习 Python 日出又日落,深处再深处;一张小方桌,有一荤一素;相关文章推荐
- Unable to infer base url. This is common when using dynamic servlet registration
- SpringMVC整合Swagger出现Unable to infer base url. This is common when using dynamic servlet 错误
- Springboot使用Swagger2报错: Unable to infer base url.This is common when using dynamic servlet
- Unable to infer base url. This is common when using dynamic servlet registration or when the API is
- swagger 报错 页面打不开Unable to infer base url. This is common when using
- Debug:This kind of launch is configured to openthe debug perspective when it解决办法
- Debug:This kind of launch is configured to openthe debug perspective when it解决办法
- 关于Servlet报错:405 HTTP method GET is not supported by this URL问题解决方法
- conda解决 An HTTP error occurred when trying to retrieve this URL.问题
- Swagger-UI 提示Unable to infer base url.
- Domain is currently unable to handle this request (open_basedir)
- swagger配置spring boot出现 Unable to infer base url
- An HTTP error occurred when trying to retrieve this URL.anaconda问题解决办法
- Debug:This kind of launch is configured to openthe debug perspective when it解决办法
- Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in
- 解决方法 PHP Warning: PHP Startup: Unable to load dynamic library 'curl'
- 解决xampp中的数据库不能使用的问题:host localhost is not allowed to connect to this MySQL server
- 运行geth attach报错:Unable to attach to remote geth: no known transport for URL scheme "c"解决方
- Captureing ‘self’ strongly in this block is likely to lead to a retain cycle Block的Retain Cycle的解决方法
- There was an internal error, and Internet Explorer is unable to print this document