Spring exception handling mechanism

The first one is based on xml configuration

<!-- 配置基于 XML 的异常映射 -->
	<bean id="simpleMappingExceptionResolver" class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
		<!-- 指定异常类型和逻辑视图名称的对应关系 -->
		<property 

Guess you like

Origin blog.csdn.net/huangbaokang/article/details/113655629