From 689118b3a3c6a0c760428b7d50ebc48d6862402b Mon Sep 17 00:00:00 2001 From: aoshiguchen <1052045476@qq.com> Date: Wed, 6 Jul 2022 17:23:37 +0800 Subject: [PATCH] =?UTF-8?q?aop=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/fun/asgc/neutrino/core/util/BeanManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neutrino-core/src/main/java/fun/asgc/neutrino/core/util/BeanManager.java b/neutrino-core/src/main/java/fun/asgc/neutrino/core/util/BeanManager.java index 75036eb7..c8e85165 100644 --- a/neutrino-core/src/main/java/fun/asgc/neutrino/core/util/BeanManager.java +++ b/neutrino-core/src/main/java/fun/asgc/neutrino/core/util/BeanManager.java @@ -48,14 +48,14 @@ public class BeanManager implements BeanFactoryAware { public static Object getBean(String name) { if (null == beanFactory) { - throw new RuntimeException("Beanfactory尚未初始化"); + throw new RuntimeException("BeanFactory尚未初始化"); } return beanFactory.getBean(name); } public static T getBean(Class clazz) { if (null == beanFactory) { - throw new RuntimeException("Beanfactory尚未初始化"); + throw new RuntimeException("BeanFactory尚未初始化"); } return beanFactory.getBean(clazz); } @@ -68,7 +68,7 @@ public class BeanManager implements BeanFactoryAware { */ public static List getBeanListBySuperClass(Class superClass) { if (null == beanFactory) { - throw new RuntimeException("Beanfactory尚未初始化"); + throw new RuntimeException("BeanFactory尚未初始化"); } return beanFactory.getBeanList(superClass); }