1、spring-shrio.xml里面配置加上
/favicon.ico = anon
2、web.xml中配置中加上:
<mime-mapping> <extension>ico</extension> <mime-type>image/x-icon</mime-type> </mime-mapping>