一直写习惯了使用@RestController注解controller类,动了旧代码使用的是@Controller注解,因为接口没加上@ResponseBody注解而报错,只需要在方法上加该@ResponseBody注解即可