From 49c4fce8fd9a9ed81b3a40520a03e61bfbc130e8 Mon Sep 17 00:00:00 2001 From: JohnNiang Date: Sun, 29 Sep 2024 11:48:54 +0800 Subject: [PATCH] Remove useless bean registration for plugin Signed-off-by: JohnNiang --- .../run/halo/app/plugin/SharedApplicationContextFactory.java | 4 ---- 1 file changed, 4 deletions(-) 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();