配置web.xml文件
<taglib> <taglib-uri>/spring</taglib-uri> <taglib-location>/WEB-INF/spring.tld</taglib-location> </taglib>
如果报 Invalid content was found starting with element 'taglib'时
你需要加了jsp-config,改后的配置文件为
<jsp-config> <taglib> <taglib-uri>/spring</taglib-uri> <taglib-location>/WEB-INF/spring.tld</taglib-location> </taglib> </jsp-config>