2023年10月30日

springmvc

摘要: 线程安全:https://www.cnblogs.com/lixinjie/p/a-answer-about-thread-safety-in-a-interview.html springmvc 在spring基础上加入2个jar 阅读全文

posted @ 2023-10-30 17:17 hellowworld! 阅读(20) 评论(0) 推荐(0)

2023年10月27日

23种设计模式

摘要: aa MyBatis与Hibernate的区别 阅读全文

posted @ 2023-10-27 14:28 hellowworld! 阅读(33) 评论(0) 推荐(0)

2023年10月25日

spring+mybatis

摘要: Spring+Mybatis.spring+Mybatis进行整合,主要需要解决的问题就是将sqlsession sqlsessionFactory对象交由spring来管理 阅读全文

posted @ 2023-10-25 16:35 hellowworld! 阅读(28) 评论(0) 推荐(0)

序列化与反序列化

摘要: 一、什么是序列化与反序列化? Java 序列化是指把 Java 对象转换为字节序列的过程;Java 反序列化是指把字节序列恢复为 Java 对象的过程; 二、为什么要用序列化与反序列化? 在 为什么要用序列化与反序列化 之前我们先了解一下对象序列化的两种用途: 把对象的字节序列永久地保存到硬盘上,通 阅读全文

posted @ 2023-10-25 15:07 hellowworld! 阅读(47) 评论(0) 推荐(0)

2023年10月20日

AOP面向切面编程

摘要: AspectJ 1. AspectJ对AOP的实现 1.1:添加相关的jar包 1.2:AspectJ的通知类型 (1)前置通知 (2)后置通知 (3)环绕通知 (4)异常通知 (5)最终通知 1.3:定义切面类 定义方法,在方法上定义各种注解通知 切入点表达式规则: execution(访问权限 阅读全文

posted @ 2023-10-20 16:55 hellowworld! 阅读(51) 评论(0) 推荐(0)

2023年10月18日

注解ioc

摘要: (Object Oriented Programming) Interface oriented programming aspect oriented programming aop <!-- 组件扫描器 --> <context:component-scan base-package="cn.l 阅读全文

posted @ 2023-10-18 17:39 hellowworld! 阅读(20) 评论(0) 推荐(0)

spring 构造器注入

摘要: <bean id="s" class="cn.lexed.pojo.Student"> <constructor-arg name="name" value="Tom"></constructor-arg> <constructor-arg name="age" value="20"></const 阅读全文

posted @ 2023-10-18 16:06 hellowworld! 阅读(34) 评论(0) 推荐(0)

spring setter注入

摘要: <!-- 对象类型 1--> <property name="user"> <props> <prop key="">dddd</prop> </props> </property> <!-- 对象类型 2--> <property name="user" ref="stu"> <!-- <bean 阅读全文

posted @ 2023-10-18 16:05 hellowworld! 阅读(44) 评论(0) 推荐(0)

2023年10月16日

Mybatis的四种分页方式

摘要: 数组分页 查询出全部数据,然后再list中截取需要的部分。 mybatis接口 List<Student> queryStudentsByArray(); xml配置文件 <select id="queryStudentsByArray" resultMap="studentmapper"> sel 阅读全文

posted @ 2023-10-16 12:10 hellowworld! 阅读(1577) 评论(0) 推荐(0)

2023年10月12日

红黑树的介绍

摘要: 红黑树(Red-Black Tree,简称R-B Tree),它一种特殊的二叉查找树。红黑树是特殊的二叉查找树,意味着它满足二叉查找树的特征:任意一个节点所包含的键值,大于等于左孩子的键值,小于等于右孩子的键值。除了具备该特性之外,红黑树还包括许多额外的信息。 红黑树的每个节点上都有存储位表示节点的 阅读全文

posted @ 2023-10-12 11:41 hellowworld! 阅读(67) 评论(0) 推荐(0)

导航