You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in line 5 it called method registerWithGeneratedName, this method contains method registerBeanDefinition, and this method return beanName of validatorDef, which is 'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0'.
in line 6, the method registerBeanComponent also calles method registerBeanDefinition with the same beanName, in Spring 5, beanDefinition overriding is not allowed by default value of false. When I run my application, it always throws BeanDefinitionOverrideException. I'm so confused about using spring-data-mongodb, can anybody help me explain this?
The text was updated successfully, but these errors were encountered:
mp911de
changed the title
Confused about the class MappingMongoConverterParser, it always throws BeanDefinitionOverrideExceptionMappingMongoConverterParser registers duplicate bean definitions
Jun 28, 2022
We now ensure to not override `ValidatingMongoEventListener` and `LocalValidatorFactoryBean` bean definitions by avoiding duplicate registrations and checking whether a bean with the given name is already registered.
Closes#4087
We now ensure to not override `ValidatingMongoEventListener` and `LocalValidatorFactoryBean` bean definitions by avoiding duplicate registrations and checking whether a bean with the given name is already registered.
Closes#4087
When I view the source code of MappingMongoConverterParser, I found duplicated bean injection, the source code is down here
in line 5 it called method
registerWithGeneratedName
, this method contains methodregisterBeanDefinition
, and this method return beanName ofvalidatorDef
, which is 'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0'.in line 6, the method
registerBeanComponent
also calles methodregisterBeanDefinition
with the same beanName, in Spring 5, beanDefinition overriding is not allowed by default value of false. When I run my application, it always throws BeanDefinitionOverrideException. I'm so confused about using spring-data-mongodb, can anybody help me explain this?The text was updated successfully, but these errors were encountered: