-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] 解决/v2/api-docs获取不到内容导致获取不到API页面内容的问题 #317
Labels
bug
Something isn't working
Comments
@logan2013 收到,请稍后~ |
VictorZeng
added a commit
to VictorZeng/fastjson2
that referenced
this issue
May 23, 2022
3 tasks
@VictorZeng 我也临时写了一个writer,最终调用writeString,但是序列化后是一个字符串,感觉不是很合理哈 |
@logan2013 除了序列化成字符串暂时没想到其他好办法~~~ |
可以再快照版本提前使用 <dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2-extension</artifactId>
<version>2.0.5-SNAPSHOT</version>
</dependency> JSON.register(springfox.documentation.spring.web.json.Json.class, SwaggerJsonWriter.INSTANCE); |
你好,没看懂这行代码在哪里实现?需要自定义一个类吗? |
我看最新版本的SwaggerJsonWriter和OpenApiJsonWriter都不存在,是没合并分支吗? |
@CodeKjm 已经内置实现,不需要单独注册了。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Swagger的Json处理,解决/v2/api-docs获取不到内容导致获取不到API页面内容的问题
The text was updated successfully, but these errors were encountered: