Spring Boot默认使用UTF-8,但是在返回时默认不启动,所以我们需要在全局配置文件中配置。
appilication.propretise:
spring.http.encoding.force=true
即可解决乱码问题。