From abf842d8de7b926e516b9ac19dbddf22e8328816 Mon Sep 17 00:00:00 2001 From: JustryDeng <13548417409@163.com> Date: Fri, 1 Nov 2024 10:48:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?version=20=3D>=20=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7=E6=9B=B4=E6=96=B0=E8=87=B31.1.6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4c69516..1d89736 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ - 1.1.5 + 1.1.6 1.6.0 -- Gitee From d586fe656ff9fdc14b6e482f176b1238f0b43032 Mon Sep 17 00:00:00 2001 From: JustryDeng <13548417409@163.com> Date: Fri, 1 Nov 2024 16:07:29 +0800 Subject: [PATCH 2/2] =?UTF-8?q?bufgix=20=3D>=20=E4=BF=AE=E5=A4=8D=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89MappingJackson2HttpMessageConverter=E5=90=8E?= =?UTF-8?q?=EF=BC=8CJackson2ObjectMapperBuilderCustomizer=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/springmvc/ZooReByBodyAdviceAutoConfiguration.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zoo-diy-feature/zoo-diy-feature-impl/zoo-diy-feature-reqresp-encdec-by-springmvc/src/main/java/com/ideaaedi/zoo/diy/feature/reqresp/encdec/impl/springmvc/ZooReByBodyAdviceAutoConfiguration.java b/zoo-diy-feature/zoo-diy-feature-impl/zoo-diy-feature-reqresp-encdec-by-springmvc/src/main/java/com/ideaaedi/zoo/diy/feature/reqresp/encdec/impl/springmvc/ZooReByBodyAdviceAutoConfiguration.java index a9b32ed..c0e8786 100644 --- a/zoo-diy-feature/zoo-diy-feature-impl/zoo-diy-feature-reqresp-encdec-by-springmvc/src/main/java/com/ideaaedi/zoo/diy/feature/reqresp/encdec/impl/springmvc/ZooReByBodyAdviceAutoConfiguration.java +++ b/zoo-diy-feature/zoo-diy-feature-impl/zoo-diy-feature-reqresp-encdec-by-springmvc/src/main/java/com/ideaaedi/zoo/diy/feature/reqresp/encdec/impl/springmvc/ZooReByBodyAdviceAutoConfiguration.java @@ -1,5 +1,6 @@ package com.ideaaedi.zoo.diy.feature.reqresp.encdec.impl.springmvc; +import com.fasterxml.jackson.databind.ObjectMapper; import com.ideaaedi.zoo.commonbase.constant.AutoConfigurationConstant; import com.ideaaedi.zoo.diy.feature.reqresp.encdec.api.executor.AesExecutor; import com.ideaaedi.zoo.diy.feature.reqresp.encdec.api.properties.ZooReqrespEncdecProperties; @@ -57,8 +58,8 @@ public class ZooReByBodyAdviceAutoConfiguration { @Bean @ConditionalOnProperty(value = "zoo.req-resp-enc-dec.resp-encrypt.enable", havingValue = "true") @ConditionalOnMissingBean(name = AutoConfigurationConstant.ZOO_MAPPING_JACKSON2_HTTP_MESSAGE_CONVERTER_BEAN_NAME) - public MappingJackson2HttpMessageConverter zooMappingJackson2HttpMessageConverter() { - return new MappingJackson2HttpMessageConverter(){ + public MappingJackson2HttpMessageConverter zooMappingJackson2HttpMessageConverter(ObjectMapper objectMapper) { + return new MappingJackson2HttpMessageConverter(objectMapper){ @Override protected void writeInternal(@Nonnull Object object, Type type, @Nonnull HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException { if (object instanceof String) { -- Gitee