造成该错误的原因可能有: 1. JDK 版本不对 2. springmvc的配置文件<mvc:annotation-driven>或者<context:component-scan>引入属性不对 能改即可