Java 类org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler 实例源码

项目:onetwo    文件:ErrorHandleConfiguration.java   
/***
     * 异常解释
     * @return
     */
//  @Bean(BootWebCommonAutoConfig.BEAN_NAME_EXCEPTION_RESOLVER)
    @Bean
    public ResponseEntityExceptionHandler responseEntityExceptionHandler(){
        BootWebExceptionHandler handler = new BootWebExceptionHandler();
        return handler;
    }
项目:onetwo    文件:BootSecurityCommonContextConfig.java   
@Bean(BootWebCommonAutoConfig.BEAN_NAME_EXCEPTION_RESOLVER)
@ConditionalOnBean(BootSiteConfig.class)
@ConditionalOnMissingBean(name=BootWebCommonAutoConfig.BEAN_NAME_EXCEPTION_RESOLVER, value={BootWebExceptionResolver.class, ResponseEntityExceptionHandler.class})
public SecurityWebExceptionResolver bootWebExceptionResolver(){
    return new SecurityWebExceptionResolver();
}