diff --git a/application/src/main/java/run/halo/app/plugin/SharedApplicationContextFactory.java b/application/src/main/java/run/halo/app/plugin/SharedApplicationContextFactory.java index 8bf5a1efa6e..e574057188f 100644 --- a/application/src/main/java/run/halo/app/plugin/SharedApplicationContextFactory.java +++ b/application/src/main/java/run/halo/app/plugin/SharedApplicationContextFactory.java @@ -81,10 +81,6 @@ public static ApplicationContext create(ApplicationContext rootContext) { .ifUnique(rateLimiterRegistry -> beanFactory.registerSingleton("rateLimiterRegistry", rateLimiterRegistry) ); - rootContext.getBeanProvider(ReactiveUserDetailsService.class) - .ifUnique(userDetailsService -> - beanFactory.registerSingleton("userDetailsService", userDetailsService) - ); // TODO add more shared instance here sharedContext.refresh();