The reason for this error should be the dependency on Spring Boot 3.4.0-M3. In this version, the annotation @ConditionalOnBean(ObjectPostProcessor.class) of UserDetailsServiceAutoConfiguration references the deprecated ObjectPostProcessor type, which causes UserDetailsServiceAutoConfiguration to be skipped when scanning the configuration classes.
The reason for this error should be the dependency on Spring Boot 3.4.0-M3. In this version, the annotation
@ConditionalOnBean(ObjectPostProcessor.class)ofUserDetailsServiceAutoConfigurationreferences the deprecatedObjectPostProcessortype, which causes UserDetailsServiceAutoConfiguration to be skipped when scanning the configuration classes.