mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-04-17 07:43:15 +08:00
fix 修复 访问接口文档报错问题
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package org.dromara.common.json.enhance;
|
package org.dromara.common.json.enhance;
|
||||||
|
|
||||||
import org.springframework.core.annotation.AnnotationAwareOrderComparator;
|
import org.springframework.core.annotation.AnnotationAwareOrderComparator;
|
||||||
|
import org.springframework.http.converter.ByteArrayHttpMessageConverter;
|
||||||
import org.springframework.http.converter.ResourceHttpMessageConverter;
|
import org.springframework.http.converter.ResourceHttpMessageConverter;
|
||||||
import org.springframework.http.converter.StringHttpMessageConverter;
|
import org.springframework.http.converter.StringHttpMessageConverter;
|
||||||
import tools.jackson.databind.JavaType;
|
import tools.jackson.databind.JavaType;
|
||||||
@@ -46,6 +47,7 @@ public class JsonValueEnhancer {
|
|||||||
|
|
||||||
public boolean supports(Class<?> converterType) {
|
public boolean supports(Class<?> converterType) {
|
||||||
return !processors.isEmpty()
|
return !processors.isEmpty()
|
||||||
|
&& !ByteArrayHttpMessageConverter.class.isAssignableFrom(converterType)
|
||||||
&& !StringHttpMessageConverter.class.isAssignableFrom(converterType)
|
&& !StringHttpMessageConverter.class.isAssignableFrom(converterType)
|
||||||
&& !ResourceHttpMessageConverter.class.isAssignableFrom(converterType);
|
&& !ResourceHttpMessageConverter.class.isAssignableFrom(converterType);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user