- 博客(21)
- 收藏
- 关注
原创 SpringIOC源码解析(二)-Resource和ResourceLoader
SpringIOC源码解析(二)-Resource和ResourceLoaderResource什么是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
315
原创 SpringIOC源码解析(一)-BeanDefinition和BeanDefinitionRegistry
SpringIOC源码解析(一)-BeanDefinition和BeanDefinitionRegistry
2022-04-22 08:58:30
190
原创 SpringAOP源码解析(二)
SpringAOP源码解析(二)postProcessBeforeInstantiationshouldSkipfindCandidateAdvisorsbuildAspectJAdvisorsgetAdvisorsgetAdvisorgetPointcutfindAspectJAnnotationOnMethodfindAnnotationnew InstantiationModelAwarePointcutAdvisorImpl()instantiateAdvicegetAdvice小结postProc
2021-10-27 16:22:14
207
原创 SpringAOP源码解析(一)
# SpringAOP源码解析(一)@EnableAspectJAutoProxy注解AspectJAutoProxyRegistrar简单阐述aop的相关概念:AOP:【动态代理】 指在程序运行期间动态的将某段代码切入到指定方法指定位置进行运行的编程方式; 1、导入aop模块;Spring AOP:(spring-aspects) 2、定义一个业务逻辑类(MathCalculator);在业务逻辑运行的时候将日志进行打印(方法之前、方法运行结束、方法出现异常,xxx)
2021-10-27 16:19:09
128
原创 MybatisLearing03映射配置文件SqlMapConfig.xml之CURD
MybatisLearing03映射配置文件SqlMapConfig.xml之CURDGithub: https://github.com/staySunshine/Mybatis-LearningGitee: https://gitee.com/RoyalH/Mybatis-Learning目录理论内容:标签解释(mapper sql insert update delete select)创建工程修改pom.xml创建数据库表User创建User实体类编写映射文件UserMappe
2021-05-25 17:28:35
136
原创 MybatisLearing02核心配置文件SqlConfig
MybatisLearing02核心配置文件SqlConfigGithub: https://github.com/staySunshine/Mybatis-LearningGitee: https://gitee.com/RoyalH/Mybatis-Learning目录标签解释创建工程修改pom.xml创建数据库表User创建User实体类编写映射文件UserMapper.xml编写核心文件SqlMapConfig.xml编写测试类理论部分标签解释propertie
2021-05-25 14:47:04
255
原创 MybatisLearing01快速入门
MybatisLearing01快速入门Github: https://github.com/staySunshine/Mybatis-LearningGitee: https://gitee.com/RoyalH/Mybatis-Learning目录1.创建工程修改pom.xml2. 创建数据库表User3. 创建User实体类4. 编写映射文件UserMapper.xml5. 编写核心文件SqlMapConfig.xml6. 编写测试类创建工程修改pom.xml &l
2021-05-25 12:15:24
115
原创 Mybatis-Learning
Mybatis-Learning本仓库仅用于记录本人学习笔记Github: https://github.com/staySunshine/Mybatis-LearningGitee: https://gitee.com/RoyalH/Mybatis-Learning什么是 MyBatis?MyBatis 是一款优秀的持久层框架,它支持自定义 SQL、存储过程以及高级映射。MyBatis 免除了几乎所有的 JDBC 代码以及设置参数和获取结果集的工作。MyBatis 可以通过简单的 XML 或
2021-05-25 12:08:29
149
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
875
原创 mybatis中#{}与${}的区别
mybatis中#{}与${}的区别使用 #{} 参数语法时,MyBatis 会创建 PreparedStatement 参数占位符,并通过占位符安全地设置参数(就像使用 ? 一样)。 这样做更安全,更迅速,通常也是首选做法,不过有时你就是想直接在 SQL 语句中直接插入一个不转义的字符串,则使用${}。...
2021-03-29 10:04:19
81
原创 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
227
原创 mybatis 详解之动态SQL
mybatis 详解之动态SQL1、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
218
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
929
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人