spring-boot-starter-swagger
spring-boot-starter-swagger copied to clipboard
出现这种请求:/null/swagger-resources/configuration/ui
版本号:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.1.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<dependency>
<groupId>com.spring4all</groupId>
<artifactId>swagger-spring-boot-starter</artifactId>
<version>1.8.0.RELEASE</version>
</dependency>
访问http://localhost:8080/swagger-ui.html时,日志中看到的是/null/打头的url
2019-01-24 14:11:39.611 DEBUG 12116 --- [nio-8080-exec-5] o.s.s.w.u.matcher.AntPathRequestMatcher : Request '/null/swagger-resources/configuration/ui' matched by universal pattern '/**'
2019-01-24 14:11:39.611 DEBUG 12116 --- [nio-8080-exec-5] o.s.s.w.util.matcher.AndRequestMatcher : Trying to match using NegatedRequestMatcher [requestMatcher=Ant [pattern='/**/favicon.ico']]
2019-01-24 14:11:39.611 DEBUG 12116 --- [nio-8080-exec-5] o.s.s.w.u.matcher.AntPathRequestMatcher : Checking match of request : '/null/swagger-resources/configuration/ui'; against '/**/favicon.ico'
配置项贴出来看一下,或者方便的话可以把你的工程发送到[email protected]
本来配置完后没一点毛病,过了一天再去测试的时候就出现上面的问题,想问一下问题解决了吗,在线等急
关掉浏览器的那个页面就好了qaq
我也遇到这个问题了,而且日志会一直刷
LOL, 遇到一样的问题了
nginx一代理就会出现这个问题,直接给应用程序80端口没问题
出现一样的问题了,有大佬解决了吗?使用的是默认配置,没有任何显示配置的参数
看到网上给的一个解决办法是用nginx直接过滤掉/null/*开头的网址