- 博客(21)
- 收藏
- 关注
原创 SpringIOC源码解析(二)-Resource和ResourceLoader
SpringIOC源码解析(二)-Resource和ResourceLoader Resource 什么是Resource? 用于抽象出资源访问接口 * Interface for a resource descriptor that abstracts from the actual * type of underlying resource, such as a file or class path resource. Resource接口的实现类 ClassPathResource * {@l
2022-04-22 08:59:36
327
原创 SpringIOC源码解析(一)-BeanDefinition和BeanDefinitionRegistry
SpringIOC源码解析(一)-BeanDefinition和BeanDefinitionRegistry
2022-04-22 08:58:30
203
原创 SpringAOP源码解析(二)
SpringAOP源码解析(二)postProcessBeforeInstantiationshouldSkipfindCandidateAdvisorsbuildAspectJAdvisorsgetAdvisorsgetAdvisorgetPointcutfindAspectJAnnotationOnMethodfindAnnotationnew InstantiationModelAwarePointcutAdvisorImpl()instantiateAdvicegetAdvice小结postProc
2021-10-27 16:22:14
237
原创 SpringAOP源码解析(一)
# SpringAOP源码解析(一)@EnableAspectJAutoProxy注解AspectJAutoProxyRegistrar 简单阐述aop的相关概念: AOP:【动态代理】 指在程序运行期间动态的将某段代码切入到指定方法指定位置进行运行的编程方式; 1、导入aop模块;Spring AOP:(spring-aspects) 2、定义一个业务逻辑类(MathCalculator);在业务逻辑运行的时候将日志进行打印(方法之前、方法运行结束、方法出现异常,xxx)
2021-10-27 16:19:09
138
原创 MybatisLearing03映射配置文件SqlMapConfig.xml之CURD
MybatisLearing03映射配置文件SqlMapConfig.xml之CURD Github: https://github.com/staySunshine/Mybatis-Learning Gitee: https://gitee.com/RoyalH/Mybatis-Learning 目录 理论内容:标签解释(mapper sql insert update delete select) 创建工程修改pom.xml 创建数据库表User 创建User实体类 编写映射文件UserMappe
2021-05-25 17:28:35
144
原创 MybatisLearing02核心配置文件SqlConfig
MybatisLearing02核心配置文件SqlConfig Github: https://github.com/staySunshine/Mybatis-Learning Gitee: https://gitee.com/RoyalH/Mybatis-Learning 目录 标签解释 创建工程修改pom.xml 创建数据库表User 创建User实体类 编写映射文件UserMapper.xml 编写核心文件SqlMapConfig.xml 编写测试类 理论部分 标签解释 propertie
2021-05-25 14:47:04
269
原创 MybatisLearing01快速入门
MybatisLearing01快速入门 Github: https://github.com/staySunshine/Mybatis-Learning Gitee: https://gitee.com/RoyalH/Mybatis-Learning 目录 1.创建工程修改pom.xml 2. 创建数据库表User 3. 创建User实体类 4. 编写映射文件UserMapper.xml 5. 编写核心文件SqlMapConfig.xml 6. 编写测试类 创建工程修改pom.xml &l
2021-05-25 12:15:24
120
原创 Mybatis-Learning
Mybatis-Learning 本仓库仅用于记录本人学习笔记 Github: https://github.com/staySunshine/Mybatis-Learning Gitee: https://gitee.com/RoyalH/Mybatis-Learning 什么是 MyBatis? MyBatis 是一款优秀的持久层框架,它支持自定义 SQL、存储过程以及高级映射。MyBatis 免除了几乎所有的 JDBC 代码以及设置参数和获取结果集的工作。MyBatis 可以通过简单的 XML 或
2021-05-25 12:08:29
159
1
原创 npm换源成淘宝镜像
npm换源成淘宝镜像 国内用户,建议将npm的注册表源设置为国内的镜像,可以大幅提升安装速度,先查看本机地址 npm config get registry 国内优秀npm镜像推荐及使用 淘宝npm镜像 ·搜索地址:http://npm.taobao.org/ ·registry地址:http://registry.npm.taobao.org/ cnpmjs镜像 ·搜索地址:http://cnpmjs.org/ ·registry地址:http://r.cnpmjs.org/ 单次使用 //
2021-03-30 10:45:55
882
原创 mybatis中#{}与${}的区别
mybatis中#{}与${}的区别 使用 #{} 参数语法时,MyBatis 会创建 PreparedStatement 参数占位符,并通过占位符安全地设置参数(就像使用 ? 一样)。 这样做更安全,更迅速,通常也是首选做法,不过有时你就是想直接在 SQL 语句中直接插入一个不转义的字符串,则使用${}。 ...
2021-03-29 10:04:19
87
原创 JDBC 查询操作
JDBC 查询操作 import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.List; public class DaoH
2021-03-29 09:51:41
236
原创 mybatis 详解之动态SQL
mybatis 详解之动态SQL 1、if 语句 <select id="selectUserByUsernameAndSex" resultType="user" parameterType="com.ys.po.User"> select * from user where <if test="username != null"> username=#{username} </if>
2021-03-29 09:28:13
230
1
原创 算法竞赛入门经典第二版习题2-6 排列
第一次发博文,谢谢大家支持! 用 1,2,3…,9组成3个三位数abc,def和ghi,每个数字恰好使用一次,要求abc:def:ghi=1:2:3。按照“abc def ghi”的格式输出所有解,每行一个解。提示:不必太动脑筋。 分析:我们可以先直接用暴搜找出符合条件的数。当然,通过题目要求我们可以缩小一下搜索范围。当我们得知abc值,即可通过比列来算出def(abc*2)和g
2018-02-05 12:46:40
945
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人