|
134 | 134 | * @author Rossen Stoyanchev
|
135 | 135 | * @since 3.1
|
136 | 136 | */
|
137 |
| -public abstract class WebMvcConfigurationSupport implements ApplicationContextAware, ServletContextAware { |
| 137 | +public class WebMvcConfigurationSupport implements ApplicationContextAware, ServletContextAware { |
138 | 138 |
|
139 | 139 | private ServletContext servletContext;
|
140 | 140 |
|
@@ -419,9 +419,9 @@ public Validator mvcValidator() {
|
419 | 419 | String className = "org.springframework.validation.beanvalidation.LocalValidatorFactoryBean";
|
420 | 420 | clazz = ClassUtils.forName(className, WebMvcConfigurationSupport.class.getClassLoader());
|
421 | 421 | } catch (ClassNotFoundException e) {
|
422 |
| - throw new BeanInitializationException("Could not find default validator"); |
| 422 | + throw new BeanInitializationException("Could not find default validator", e); |
423 | 423 | } catch (LinkageError e) {
|
424 |
| - throw new BeanInitializationException("Could not find default validator"); |
| 424 | + throw new BeanInitializationException("Could not find default validator", e); |
425 | 425 | }
|
426 | 426 | validator = (Validator) BeanUtils.instantiate(clazz);
|
427 | 427 | }
|
@@ -474,7 +474,7 @@ public SimpleControllerHandlerAdapter simpleControllerHandlerAdapter() {
|
474 | 474 | * providing a list of resolvers.
|
475 | 475 | */
|
476 | 476 | @Bean
|
477 |
| - public HandlerExceptionResolver handlerExceptionResolver() throws Exception { |
| 477 | + public HandlerExceptionResolver handlerExceptionResolver() { |
478 | 478 | List<HandlerExceptionResolver> exceptionResolvers = new ArrayList<HandlerExceptionResolver>();
|
479 | 479 | configureHandlerExceptionResolvers(exceptionResolvers);
|
480 | 480 |
|
|
0 commit comments