类 ExceptionConfiguration


  • public class ExceptionConfiguration
    extends java.lang.Object
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      protected org.slf4j.Logger logger  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      org.springframework.web.servlet.handler.SimpleMappingExceptionResolver createSimpleMappingExceptionResolver()
      Setup the classic SimpleMappingExceptionResolver.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • logger

        protected org.slf4j.Logger logger
    • 构造器详细资料

      • ExceptionConfiguration

        public ExceptionConfiguration()
    • 方法详细资料

      • 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