在springmvc.xml中的beans标签里找到xmlns:mvc这一行 最后的 context 改成 mvc 就可以了 xmlns:mvc="http://www.springframework.org/schema/mvc"