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