使用阿里代码规范。规范代码写法

This commit is contained in:
648540858
2022-05-05 17:07:16 +08:00
parent 7f0ca85850
commit c286ecb455
51 changed files with 560 additions and 316 deletions

View File

@@ -34,7 +34,9 @@ public class SpringBeanFactory implements ApplicationContextAware {
* 获取对象 这里重写了bean方法起主要作用
*/
public static Object getBean(String beanId) throws BeansException {
if (applicationContext == null) return null;
if (applicationContext == null) {
return null;
}
return applicationContext.getBean(beanId);
}