/*** * 异常解释 * @return */ // @Bean(BootWebCommonAutoConfig.BEAN_NAME_EXCEPTION_RESOLVER) @Bean public ResponseEntityExceptionHandler responseEntityExceptionHandler(){ BootWebExceptionHandler handler = new BootWebExceptionHandler(); return handler; }
@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(); }