摘要: 加载完BeanDifinition后,可以对BeanDifinition做某些操作,比如修改BeanDifinition以及新增BeanDifinition。Spring提供了BeanFactoryPostProcessor接口对BeanDifinition进行扩展。 AbstractApplica 阅读全文
posted @ 2022-09-11 23:01 shigp1 阅读(32) 评论(0) 推荐(0)
摘要: AbstractApplicationContext类refresh方法调用obtainFreshBeanFactory加载BeanDifinition到BeanFactory中,接下来执行beanFactory的准备工作为下面的执行作铺垫。 prepareBeanFactory方法为beanFac 阅读全文
posted @ 2022-09-11 21:16 shigp1 阅读(53) 评论(0) 推荐(0)
摘要: bash shell提供了两项可在if-then语句中使用的高级特性: 用于数学表达式的双括号 用于高级字符串处理功能的双方括号 一、使用双括号 双括号命令允许你在比较过程中使用高级数学表达式。双括号命令的格式如下: (( expression )) 例子: #!/bin/bash var=10 i 阅读全文
posted @ 2022-09-11 15:56 shigp1 阅读(83) 评论(0) 推荐(0)
摘要: 一、检查目录 -d检查是否存在且是目录。 #!/bin/bash jump_directory=/home/arthur if [ -d $jump_directory ]; then echo "The $jump_directory directory exists." cd $jump_dir 阅读全文
posted @ 2022-09-11 14:57 shigp1 阅读(457) 评论(0) 推荐(0)