thymeleaf报错记录 在Controller上添加的注解为@RestController时,会在解析阶段报这个:"cant resolve"的错.解决方法:讲@RestController改为@Controller即可.