Skip to content

Commit 21aed04

Browse files
committed
Minor polish in WebMvcConfigurationSupport
1 parent f1ecd1c commit 21aed04

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
* @author Rossen Stoyanchev
135135
* @since 3.1
136136
*/
137-
public abstract class WebMvcConfigurationSupport implements ApplicationContextAware, ServletContextAware {
137+
public class WebMvcConfigurationSupport implements ApplicationContextAware, ServletContextAware {
138138

139139
private ServletContext servletContext;
140140

@@ -419,9 +419,9 @@ public Validator mvcValidator() {
419419
String className = "org.springframework.validation.beanvalidation.LocalValidatorFactoryBean";
420420
clazz = ClassUtils.forName(className, WebMvcConfigurationSupport.class.getClassLoader());
421421
} catch (ClassNotFoundException e) {
422-
throw new BeanInitializationException("Could not find default validator");
422+
throw new BeanInitializationException("Could not find default validator", e);
423423
} catch (LinkageError e) {
424-
throw new BeanInitializationException("Could not find default validator");
424+
throw new BeanInitializationException("Could not find default validator", e);
425425
}
426426
validator = (Validator) BeanUtils.instantiate(clazz);
427427
}
@@ -474,7 +474,7 @@ public SimpleControllerHandlerAdapter simpleControllerHandlerAdapter() {
474474
* providing a list of resolvers.
475475
*/
476476
@Bean
477-
public HandlerExceptionResolver handlerExceptionResolver() throws Exception {
477+
public HandlerExceptionResolver handlerExceptionResolver() {
478478
List<HandlerExceptionResolver> exceptionResolvers = new ArrayList<HandlerExceptionResolver>();
479479
configureHandlerExceptionResolvers(exceptionResolvers);
480480

0 commit comments

Comments
 (0)