We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6da867 commit 2740ebeCopy full SHA for 2740ebe
common/src/main/java/com/example/janche/common/exception/ControllerExceptionHandler.java
@@ -37,7 +37,7 @@ public class ControllerExceptionHandler {
37
@ExceptionHandler(Exception.class)
38
public void handleCustomException(Exception e, HttpServletResponse response) {
39
response.setCharacterEncoding("UTF-8");
40
- response.setContentType("text/html;charset=UTF-8");
+ response.setContentType("application/json;charset=UTF-8");
41
PrintWriter writer = null;
42
RestResult result = null;
43
if (e instanceof CustomException){
0 commit comments