
java
java
L-岁月染过的梦
这个作者很懒,什么都没留下…
展开
-
JDK1.8 HashMap ----resize源码解读
/** * Initializes or doubles table size. If null, allocates in * accord with initial capacity target held in field threshold. * Otherwise, because we are using power-of-two expansion, the * elements from each bin must either stay at sa原创 2020-10-05 09:00:57 · 248 阅读 · 3 评论 -
远程过程调用-RPC(简单理解)
RPC:在服务中由第三方完成自己的任务需求的过程,叫做远程过程调用通俗易懂的理解一个阳光明媚的早晨,老婆又在翻看我订阅的技术杂志。“老公,什么是RPC呀,为什么你们程序员那么多黑话!”,老婆还是一如既往的好奇。“RPC,就是Remote Procedure Call的简称呀,翻译成中文就是远程过程调用嘛”,我一边看着书,一边漫不经心的回答着。“啥?你在说啥?谁不知道翻译成中文是什么意思?你个废柴,快给我滚去洗碗!”“我去。。。”,我如梦初醒,我对面坐着的可不是一个程序员,为了不去洗碗,我瞬间调原创 2020-09-24 09:49:45 · 2971 阅读 · 0 评论 -
自定义注解---元注解
定义注解package com.jt.anno;import lombok.Builder;import java.lang.annotation.ElementType;import java.lang.annotation.Retention;import java.lang.annotation.RetentionPolicy;import java.lang.annotation.Target;//元注解@Retention(RetentionPolicy.RUNTIME) @原创 2020-09-17 10:51:00 · 219 阅读 · 0 评论 -
简单文件上传服务的实现
file.jsp<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-e.原创 2020-09-14 17:46:41 · 165 阅读 · 0 评论