web.xml中配置<errorpage>标签不起作用的问题

例如:

    <!-- 配置404与500错误处理 -->    
	<error-page>
		<error-code>404</error-code>
		<location>/404.htm</location>
	</error-page>
	<error-page>
		<error-code>500</error-code>
		<location>/500.htm</location>
	</error-page>


解决方法:internet选择--高级--显示友好的http错误信息的勾去掉!

原文地址:https://www.cnblogs.com/zollty/p/2879247.html