类 ExceptionConfiguration
- java.lang.Object
-
- net.qimooc.commons.exceptions.config.ExceptionConfiguration
-
public class ExceptionConfiguration extends java.lang.Object
-
-
字段概要
字段 修饰符和类型 字段 说明 protected org.slf4j.Loggerlogger
-
构造器概要
构造器 构造器 说明 ExceptionConfiguration()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.springframework.web.servlet.handler.SimpleMappingExceptionResolvercreateSimpleMappingExceptionResolver()Setup the classic SimpleMappingExceptionResolver.
-
-
-
方法详细资料
-
createSimpleMappingExceptionResolver
@Bean(name="simpleMappingExceptionResolver") public org.springframework.web.servlet.handler.SimpleMappingExceptionResolver createSimpleMappingExceptionResolver()
Setup the classic SimpleMappingExceptionResolver. This provides useful defaults for logging and handling exceptions. It has been part of Spring MVC since Spring V2 and you will probably find most existing Spring MVC applications are using it.Only invoked if the "global" profile is active.
- 返回:
- The new resolver
-
-