From ad278e30972c034386efd5dbc5789c08fe848726 Mon Sep 17 00:00:00 2001 From: One-armed-boy Date: Sun, 10 Mar 2024 18:46:55 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=94=EB=93=9C=EC=97=90=20=EB=8C=80?= =?UTF-8?q?=ED=95=9C=20=EC=84=A4=EB=AA=85=EC=9D=84=20=EC=88=98=ED=96=89?= =?UTF-8?q?=ED=95=98=EB=8A=94=20=EC=A3=BC=EC=84=9D=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/stream/msgconverter/OctetStreamReadMsgConverter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/stream/msgconverter/OctetStreamReadMsgConverter.java b/src/main/java/com/stream/msgconverter/OctetStreamReadMsgConverter.java index 2cba7b1..02a6935 100644 --- a/src/main/java/com/stream/msgconverter/OctetStreamReadMsgConverter.java +++ b/src/main/java/com/stream/msgconverter/OctetStreamReadMsgConverter.java @@ -16,6 +16,8 @@ public OctetStreamReadMsgConverter(ObjectMapper objectMapper) { super(objectMapper, MediaType.APPLICATION_OCTET_STREAM); } + // 기존 application/octet-stream 타입을 쓰기로 다루는 메시지 컨버터가 이미 존재 (ByteArrayHttpMessageConverter) + // 따라서 해당 컨버터는 쓰기 작업에는 이용하면 안됨 @Override public boolean canWrite(Class clazz, MediaType mediaType) { return false;