腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
我
拿
到了
https
://
localhost
:
8080
/
swagger-ui.html
的
404
、
、
、
我
得
到了
http://
localhost
:
8080
/v2/api-docs/
的
有效响应,但当我尝试访问时,
我
得
到了
http://
localhost
:
8080
/
swagger-ui.html
。这里
我
附加了pom.xml <dependencies>
浏览 282
提问于2020-11-11
得票数 2
回答已采纳
2
回答
如何为springdoc swagger-ui HTML页面配置自定义URL?
、
、
将springdoc依赖项添加到我
的
Spring项目(而不是springdoc)之后,将生成OpenAPI V3文档,并可以使用默认
的
swagger页面:
localhost
:
8080
/
swagger-ui.html
因为springdoc文档取代了以前
的
Swagger文档,所以我希望在相同
的
URL
localhost
:
8080
/docs/index.html中提供它。/index.html 但是,
浏览 3
提问于2021-07-21
得票数 2
2
回答
Swagger和Spring MVC集成
、
、
、
、
/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");}<mvc:resources
浏览 0
提问于2017-05-31
得票数 0
2
回答
当我尝试打开
swagger-ui.html
时,
我
得到
404
、
、
、
我
没有Spring Boot,只有Spring MVC和Security。
我
的
配置: @Configuration@EnableWebMvc@PropertySource("classpath:
8080
/api/v2/api-docs上
我
得
到了
大量JSON,但是当我试图在http://
localhost
:
808
浏览 45
提问于2020-06-30
得票数 4
5
回答
Swagger ui返回白色标签错误
、
、
我
在
我
的
spring boot应用中使用了swagger 2.9.2。
localhost
:
8080
/api-docs工作得很好。但是,
localhost
:
8080
/
swagger-ui.html
返回writelabel error。
localhost
:
8080
/v2/
swagger-ui.html
和
localhost
:
8080</e
浏览 23
提问于2018-08-22
得票数 0
2
回答
swagger2在
swagger-ui.html
上显示白标页面错误
、
我
尝试在spring boot上实现
我
的
项目中
的
swagger2。"/swagger-resources/**", "
swagger-ui.html
authenticated() .and().ses
浏览 2
提问于2020-08-18
得票数 1
1
回答
如何让Swagger在html中生成文档?
、
、
我
已经使用swagger编写了一个restful API。当我运行
我
的
服务器时,它在X/上正确地提供API,但它也应该在X/ API -docs上提供api
的
文档。它确实是这样做
的
,但是它用JSON而不是HTML来表示文档!
我
翻阅了大量
的
文档,试图弄清楚如何获得HTML格式
的
文档,但我搞不懂。(
我
使用Generate Server->Spring选项生成代码。)
浏览 11
提问于2017-03-03
得票数 1
回答已采纳
2
回答
SpringDoc/Swagger背后
的
nginx代理
、
、
、
我们在nginx代理后面运行一个服务,以便: http://service-post:
8080
/
swagger-ui.html
被路由到公共地址
https
://host.com/services/post在设置任何东西之前(使用默认
的
SpringDoc配置),
我
可以正确地看到http://service-post:
8080
/
swagger-ui.html
上
的</em
浏览 7
提问于2020-12-01
得票数 1
回答已采纳
5
回答
如何更改
swagger-ui.html
默认路径
、
、
我
想改变
我
的
傲慢
的
ui路径从
localhost
:
8080
/
swagger-ui.html
到
localhost
:
8080
/myapi/
swagger-ui.html
在springboot重定向对
我
来说是无助
的
浏览 2
提问于2019-07-25
得票数 18
1
回答
Swagger OpenAPI:如何为每个包实现单独
的
UI?
、
、
、
我
有3个API,例如/api、/internal (用于内部服务)和/admin (用于管理),每个API都在单独
的
包中: controller --api --internal| --admin 然后,
我
需要为每个包实现单独
的
Swagger UI和单独
的
路径,例如: http://
localhost
:
8080
/api/
swagger-ui.html
浏览 43
提问于2021-10-28
得票数 1
回答已采纳
2
回答
没有找到网页地址: http://
localhost
:
8080
/ in Spring由codegen with swagger生成
、
、
我
正在使用swagger编辑器中
的
示例宠物商店学习swagger:This
localhost
page can’t be foundHTTP ERROR
404
但我相信我应该在下
浏览 79
提问于2021-06-09
得票数 0
回答已采纳
2
回答
Petstore url ( swagger默认应用程序)在Springdoc中未禁用
、
、
、
我
还有“禁用”-problem..。
我
的
swagger界面url配置为/
swagger-ui.html
(它重定向到/swagger-ui/index.html?
我
必须解决这个问题,因为它被视为一个安全问题…… 有4种方法可以配置它,但我使用了swagger-ui yaml文件:
https
://swagger.io/docs/open-source-tools/
我
不知道为什么:-( <em
浏览 814
提问于2021-04-19
得票数 1
10
回答
(/
swagger-ui.html
应该返回
404
)
、
、
、
、
我
读过以下主题:@Bean return new Docket(DocumentationType.SWAGGER_2)("/api/**")) .apiInfo(apiInfo())} 但是如果
我
尝试访问swagger:
localhost
:
8080
/
swagge
浏览 19
提问于2017-09-27
得票数 25
回答已采纳
1
回答
Jhipster 7- swaggerUI不可用
、
在使用7.1.0版
的
JHipster时,
我
无法使swaggerUI正常工作。 使用mvnw或从Intellij运行应用程序
的
结果为
404
页。
我
尝试
的
路由是http://
localhost
:
8080
/
swagger-ui.html
。Api文档可用-版本3和版本2,但swagger页面不可用。更有趣
的
是,使用mvn clean spring-boot:run命令运行应用程序时,swagger
浏览 28
提问于2021-09-01
得票数 2
1
回答
在Spring Boot上下文路径之外访问Swagger
、
、
、
、
我
的
spring boot应用程序有一个如下所示
的
contextPath
我
已经添加了springfox swagger配置,并且能够从给定
的
url获得swaggerhttp://
localhost
:
8080
/api/
swagger-ui.html
实际上,
我
想要
的
是在contextPath之外获得swagger ui,
浏览 0
提问于2018-09-17
得票数 1
1
回答
在spring引导中更改swagger用户界面基本路径
、
、
、
在
我
的
spring引导应用程序中,
我
使用swagger作为文档。
我
需要将默认
的
http://
localhost
:
8080
/
swagger-ui.html
路径更改为http://
localhost
:
8080
/docs/
swagger-ui.html
,因为
我
有以下控制器,它与默认
的
swagger路径
浏览 0
提问于2018-04-11
得票数 5
2
回答
SpringBoot控制器重定向不起作用
、
点击Rest应用程序
的
/目录并不会重定向到我想要
的
内容,而只是在屏幕上打印重定向指令:"redirect:
swagger-ui.html
“import org.springframework.web.bind.annotation.RequestMappinginfo: InfoProperties) { fun home(): String { return &q
浏览 0
提问于2019-03-15
得票数 2
回答已采纳
1
回答
spring应用程序中
的
多个swagger-ui html页面
、
、
、
我
正在构建一个应用程序,其中
我
希望有两个swagger urls: http://
localhost
:
8080
/order-swagger.ui.html http://
localhost
:
8080
/inventory-swagger.ui.html
我
读了很多文章,但没有找到任何解决方案。
我
发现要定义两个docket bean,但它不能有效地构建两个html页面。它会在右上角
的</e
浏览 38
提问于2021-10-09
得票数 4
2
回答
在spring应用程序上获得空
的
swagger用户界面
、
、
、
我
能够得到
localhost
:
8080
/v2/api-docs
的
json响应,但是当我试图在
localhost
:
8080
/
swagger-ui.html
上加载swagger时,它会显示没有api列出
的
swagger
浏览 0
提问于2019-03-24
得票数 2
回答已采纳
1
回答
如何将
swagger-ui.html
作为默认上下文路径
、
、
、
我
有一个应用程序,其默认上下文路径为"/“,但我想将默认上下文路径设置为swaggerui.html。假设
我
的
应用程序在
8080
上运行,当我放置
localhost
:
8080
时,应用程序应该重定向到
localhost
:
8080
/
swagger-ui.html
。
我
在application.properties里放了下面的 server.servlet.context-path=/<
浏览 0
提问于2019-06-14
得票数 0
点击加载更多
相关
资讯
SpringBoot项目实战:整合Swagger2构建强大的Restful Api接口文档(二)
SpringBoot简明教程之视图层(一):静态资源映射规则及WebJars的使用
“女孩子问我404是什么梗?我又学到了奇怪的知识了!”哈哈哈……
spring security初探
基于SpringBoot2使用Rest访问MongoDB数据
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
云直播
对象存储
活动推荐
运营活动
广告
关闭
领券