Spring开启了注解配置之后(<mvc:annotation-driven/>),使用ClassPathXmlApplicationContext来读取Spring的配置文件会报错,信息如下:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0': Invocation of init method failed; nested exception is javax.validation.ValidationException: Unable to instantiate Configuration.
然而在配置文件中把<mvc:annotation-driven/>注释掉后再读取就没问题了,我想问的是,如何在开启注解配置之后可以用什么来读取Spring的配置文件?求大神解答
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0': Invocation of init method failed; nested exception is javax.validation.ValidationException: Unable to instantiate Configuration.
然而在配置文件中把<mvc:annotation-driven/>注释掉后再读取就没问题了,我想问的是,如何在开启注解配置之后可以用什么来读取Spring的配置文件?求大神解答