548 Unstar Star 3.1K Fork 717

GVP萧明 / knife4j

swagger-bootstrap-ui 1.9.6在显示时会在响应里加上双引号,导致json格式错误

Closed
易水风萧  Opened this issue

输入图片说明

118100 xiaoym 1578918321 400404 zhiyubujian 1578922729 total 2 participants

Comments (3)

118100 xiaoym 1578918321
萧明 2019-09-16 13:17 owner

后台的代码是怎样的?能贴一下么

400404 zhiyubujian 1578922729
易水风萧 2019-09-17 12:59

@萧明 后台是很普通的springmvc代码,控制层通过 @ResponseBody注解返回统一响应对象> Response,经过测试发现该问题似乎是因为requtest-id中间的连接符引起的。此外,1.9.4版本是正常的,无此问题。

118100 xiaoym 1578918321
萧明 2019-12-16 09:25 owner

双引号问题在2.0版本解决了

https://www.oschina.net/news/112095/knife4j-2-0-released

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
Java
1
https://gitee.com/xiaoym/knife4j.git
git@gitee.com:xiaoym/knife4j.git
xiaoym
knife4j
knife4j

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542