如果JSP网页或SERVLET在运行过程中出现了异常,可以配置一个exceptionResolver实例,
<bean id="exceptionResolver" class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
<property name="exceptionMappings">
<props>
<prop key="java.sql.SQLException">sqlexception</prop>
</props>
</property>
</bean>