摘要:
一、自定义Bean 后处理器 Processor package com.mangoubiubiu.show.a05.component; import com.mangoubiubiu.show.a05.Config; import org.springframework.beans.BeansE 阅读全文
摘要:
一、代码 package com.mangoubiubiu.show.a05; import lombok.extern.slf4j.Slf4j; import org.mybatis.spring.mapper.MapperScannerConfigurer; import org.springf 阅读全文
摘要:
一、ConfigurationClassPostProcessor 1、示范代码 Bean2 package com.mangoubiubiu.show.a05.component; import com.mangoubiubiu.show.a05.Bean1; import org.slf4j.L 阅读全文
摘要:
上篇:https://www.cnblogs.com/mangoubiubiu/p/16591665.html 知道了 AutowiredAnnotationBeanPostProcessor 执行依赖注入的时候,实际上是先调用了postProcessProperties方法,而postProces 阅读全文
摘要:
1、AutowiredAnnotationBeanPostProcessor 运行分析 AutowiredAnnotationBeanPostProcessor 的作用:AutowiredAnnotationBeanPostProcessor 解析 @Autowired与 @Value 执行时机 在 阅读全文
摘要:
1 if 判断 1)基本语法 (1)单分支 if [ 条件判断式 ];then 程序 fi 或者 if [ 条件判断式 ] then 程序 fi 注意事项: ①[ 条件判断式 ],中括号和条件判断式之间必须有空格 ②if 后要有空格 1)案例实操 输入一个参数,如果该参数是xixi 则输出 welc 阅读全文
摘要:
1.基本语法 [ condition ](注意condition前后要有空格)注意:条件非空即为true,[ atguigu ]返回true,[] 返回false。 2. 常用判断条件 (1)两个整数之间比较 = 字符串比较-lt 小于(less than) -le 小于等于(less equal) 阅读全文
摘要:
1.基本语法 (1)“$((运算式))”或“$[运算式]” (2)expr + , - , \*, /, % 加,减,乘,除,取余 注意:expr运算符间要有空格 2.案例实操: (1)计算3+2的值 [root@centos7 sh]# expr 2 + 3 5 (2)计算3-2的值 [root@ 阅读全文
摘要:
1 $n 1)基本语法 $n (功能描述:n 为数字,$0 代表该脚本名称,$1-$9 代表第一到第九个参数,十以 上的参数,十以上的参数需要用大括号包含,如${10}) 2)案例实操 [root@centos7 sh]# touch parameter.sh [root@centos7 sh]# 阅读全文
摘要:
变量 1 系统预定义变量 1)常用系统变量 $HOME、$PWD、$SHELL、$USER 等 2)案例实操 (1)查看系统变量的值 [root@centos7 sh]# echo HOME HOME (2)显示当前 Shell 中所有变量:set [root@centos7 sh]# set BA 阅读全文