We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
用的com.github.xiaoymin:knife4j-openapi3-jakarta-spring-boot-starter 4.5.0版本。 看了issue 我在WebConfig类添加了
private final Jackson2ObjectMapperBuilder jacksonBuilder; @OverRide public void configureMessageConverters(List<HttpMessageConverter<?>> converters) { converters.add(new ByteArrayHttpMessageConverter()); converters.add(new MappingJackson2HttpMessageConverter(jacksonBuilder.build())); }
但是访问 knife4j页面还是出现 SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON 。一开始我以为是转换器的顺序问题,但是调整了顺序还是出无效的JSON
The text was updated successfully, but these errors were encountered:
估计是这个问题
https://doc.xiaominfo.com/docs/faq/v4/knife4j-base64-response
Sorry, something went wrong.
我加了没用 大佬能麻烦看一下吗? 另外 /v3/api-docs 返回的数据 Apifox 也是能导入的
@yibird 题主你好,我也是这个问题,现在你的问题的解决了吗,spring boot用的3.3.5,knife4j-openapi3-jakarta-spring-boot-starter用的4.5.0
No branches or pull requests
用的com.github.xiaoymin:knife4j-openapi3-jakarta-spring-boot-starter 4.5.0版本。 看了issue 我在WebConfig类添加了
private final Jackson2ObjectMapperBuilder jacksonBuilder;
@OverRide
public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
converters.add(new ByteArrayHttpMessageConverter());
converters.add(new MappingJackson2HttpMessageConverter(jacksonBuilder.build()));
}
但是访问 knife4j页面还是出现 SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON 。一开始我以为是转换器的顺序问题,但是调整了顺序还是出无效的JSON
The text was updated successfully, but these errors were encountered: