background picture of the home page

Hi, Friend

ハロー、これはキンです

Jackson 反序列化 Map 集合

Jackson 反序列化 Map 集合 引言 仅仅使用 objectMapper.readValue(xxxxx, Map.class) 时,如果原始集合使用了泛型,idea会给出警告 未检查的赋值: 'java.util.Map' 赋值给 'java.util.Map<java.lang.Stri

thumbnail of the cover of the post

domain层、pojo层、Model层三者区别详解

共同点:其内部只存放JavaBean类 区别:各自的JavaBean类用途不同 domain层:它的JavaBean类,必须对应数据库中的数据。 pojo层:全称为(Plain Ordinary Java Object 普通Java对象) 存放普通的JavaBean类 Model层:它的JavaBe

thumbnail of the cover of the post

JDK动态代理 思路整理

JDK动态代理 思路整理 1.提供一个接口和实现类 public interface Skill { void run(); void swim(); } public class Althletes implements Skill{ @Override pub

thumbnail of the cover of the post

LinkedList 源码笔记

LinkedList 源码笔记 个人理解 LinkedList由双向链表实现,每个链表内装着指向下一链表节点的地址值,因此想要查找LinkedList中某一个节点的元素值,就需要从头开始判断元素值,不是则找下一地址,这使得增删改查中间元素所花费的代价过于大,而首尾的增删则较为简单,在原有节点上修改/

thumbnail of the cover of the post

Fail-fast机制

Fail-fast机制 什么是Fail-fast Fail-fast 机制是java集合(Collection)中的一种错误机制。当多个线程对同一个集合的内容进行操作时,就可能会产生fail-fast事件。 例如:当某一个线程A通过iterator去遍历某集合的过程中,若该集合的内容被其他线程所改变

thumbnail of the cover of the post

ArrayList 源码笔记

ArrayList源码笔记 继承与接口实现 public class ArrayList<E> extends AbstractList<E> implements List<E>, RandomAccess, Cloneable, java.io.Serializable 构造方

thumbnail of the cover of the post

Servlet 接收前端 Json 数据的中文编码问题

引入 在学习Servlet的过程中遇到的问题,使用axios向后台post数据,默认使用的是json格式,默认编码为utf-8,而后台使用输入流接收之后再进行编码转换 new String(DeserializeJsonUtils.deserializeJson(req).getBytes(), S

thumbnail of the cover of the post

使用 Servlet 设置 cookie 的 SameSite 属性

引入 最近学习了Servlet、Mybatis、Vue,想手搓一个用户登录界面+数据展示后台,但是在记住用户登录 设置cookie的时候遇到的问题。问题是:使用 HttpServletResponse 的 addCookie() 方法后,开发者工具提示 某些 Cookie 滥用推荐的"sameSit

thumbnail of the cover of the post