spring-boot-starter-swagger icon indicating copy to clipboard operation
spring-boot-starter-swagger copied to clipboard

出现这种请求:/null/swagger-resources/configuration/ui

Open helloworldtang opened this issue 6 years ago • 10 comments

image

image

版本号:

    <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'

helloworldtang avatar Jan 24 '19 06:01 helloworldtang

配置项贴出来看一下,或者方便的话可以把你的工程发送到[email protected]

huotaihe avatar Jan 30 '19 06:01 huotaihe

本来配置完后没一点毛病,过了一天再去测试的时候就出现上面的问题,想问一下问题解决了吗,在线等急

lzy-liuziyi avatar Aug 09 '19 06:08 lzy-liuziyi

配置项贴出来看一下,或者方便的话可以把你的工程发送到[email protected]

你好,问题解决了吗?找到问题了吗

lzy-liuziyi avatar Aug 12 '19 02:08 lzy-liuziyi

关掉浏览器的那个页面就好了qaq

HiAscend avatar Sep 24 '19 09:09 HiAscend

我也遇到这个问题了,而且日志会一直刷

evanyangg avatar Dec 24 '19 02:12 evanyangg

LOL, 遇到一样的问题了

NoelCarlton avatar Apr 28 '20 07:04 NoelCarlton

image

参考地址

NoelCarlton avatar Apr 28 '20 07:04 NoelCarlton

nginx一代理就会出现这个问题,直接给应用程序80端口没问题

nobody2014100 avatar Jun 28 '20 08:06 nobody2014100

出现一样的问题了,有大佬解决了吗?使用的是默认配置,没有任何显示配置的参数

wwcoding avatar Jul 13 '20 10:07 wwcoding

看到网上给的一个解决办法是用nginx直接过滤掉/null/*开头的网址

Jack-gj avatar Sep 20 '22 06:09 Jack-gj