Spring Boot框架学习 - 自定义 MessageConverter实例

一、自定义 MessageConverter

本篇主要通过实例进行演示,不涉及更底层的细节。

首先,自定义一个 MessageConverter 去处理想要自定义处理的媒体类型,application/x-tyu,代码如下:

import com.tyu.boot.example.pojo.User;
import org.springframework.http.HttpInputMessage;
import 

你可能感兴趣的:(Spring,Boot,java,spring,boot,spring,intellij-idea,maven)