springboot返回json中文乱码问题

解决方式是在application.properties中加入:

spring.http.encoding.force-response=true

不知道为什么会产生这个问题,也不知道为什么这么改可以。但是我知道可以这么改了。