-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Bug /#110 discussion
- Loading branch information
Showing
3 changed files
with
33 additions
and
62 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
src/main/java/tavebalak/OTTify/common/component/MultipartJackson2HttpMessageConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
32 changes: 0 additions & 32 deletions
32
src/main/java/tavebalak/OTTify/community/dto/request/CommunitySubjectImageCreateDTO.java
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
src/main/java/tavebalak/OTTify/community/dto/request/CommunitySubjectImageEditDTO.java
This file was deleted.
Oops, something went wrong.