Skip to content

Commit

Permalink
Merge pull request #119 from songhee1/feature/#110-discussion
Browse files Browse the repository at this point in the history
Bug /#110 discussion
  • Loading branch information
songhee1 authored Jan 20, 2024
2 parents 56913a4 + 507900e commit eb5c15c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 62 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package tavebalak.OTTify.common.component;

import com.fasterxml.jackson.databind.ObjectMapper;
import java.lang.reflect.Type;
import org.springframework.http.MediaType;
import org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter;
import org.springframework.stereotype.Component;

@Component
public class MultipartJackson2HttpMessageConverter extends AbstractJackson2HttpMessageConverter {

/**
* "Content-Type: multipart/form-data" 헤더를 지원하는 HTTP 요청 변환기
*/
public MultipartJackson2HttpMessageConverter(ObjectMapper objectMapper) {
super(objectMapper, MediaType.APPLICATION_OCTET_STREAM);
}

@Override
public boolean canWrite(Class<?> clazz, MediaType mediaType) {
return false;
}

@Override
public boolean canWrite(Type type, Class<?> clazz, MediaType mediaType) {
return false;
}

@Override
protected boolean canWrite(MediaType mediaType) {
return false;
}
}

This file was deleted.

This file was deleted.

0 comments on commit eb5c15c

Please sign in to comment.