Java Code Examples for org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler

The following are top voted examples for showing how to use org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: onetwo   File: ErrorHandleConfiguration.java   View source code 5 votes vote down vote up
/***
	 * 异常解释
	 * @return
	 */
//	@Bean(BootWebCommonAutoConfig.BEAN_NAME_EXCEPTION_RESOLVER)
	@Bean
	public ResponseEntityExceptionHandler responseEntityExceptionHandler(){
		BootWebExceptionHandler handler = new BootWebExceptionHandler();
		return handler;
	}
 
Example 2
Project: onetwo   File: BootSecurityCommonContextConfig.java   View source code 4 votes vote down vote up
@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();
}