原因: 使用了@RestController 应该使用@Controller @RestController=Restbody+Controller会自动转成JSON 因此注解改为@Controller即可!