![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
mumu2lili
java, docker, kubernetes, PaaS
展开
-
【无标题】
java 本地程序锁的参考实现。原创 2024-09-02 18:16:01 · 68 阅读 · 0 评论 -
分布式调度 redis scheduler锁的实现参考
redis分布式锁原创 2024-08-19 18:42:17 · 371 阅读 · 0 评论 -
java8 AbstractQueuedSynchronizer 源码注解
public abstract class AbstractQueuedSynchronizer extends AbstractOwnableSynchronizer implements java.io.Serializable { private static final long serialVersionUID = 7373984972572414691L; /** * Creates a new {@code AbstractQueuedSynchr原创 2021-06-30 17:43:59 · 91 阅读 · 0 评论 -
java8 ReentrantLock 源码注解
public class ReentrantLock implements Lock, java.io.Serializable { private static final long serialVersionUID = 7373984872572414699L; /** Synchronizer providing all implementation mechanics */ private final Sync sync; abstract static class原创 2021-06-30 15:04:00 · 103 阅读 · 0 评论 -
ThreadPoolExecutor 源码注解
package java.util.concurrent;import java.util.concurrent.locks.AbstractQueuedSynchronizer;import java.util.concurrent.locks.Condition;import java.util.concurrent.locks.ReentrantLock;import java.util.concurrent.atomic.AtomicInteger;import java.util.*;原创 2021-06-29 15:40:09 · 142 阅读 · 0 评论 -
ubuntu 20.04 安装 maven 3.8.1
下载mkdir -p /opt/mavencd /opt/mavenwget https://mirrors.bfsu.edu.cn/apache/maven/maven-3/3.8.1/binaries/apache-maven-3.8.1-bin.tar.gz解压tar xzvf apache-maven-3.8.1-bin.tar.gz cd apache-maven-3.8.1配置阿里镜像vim conf/settings.xml 加入阿里镜像。如下图:配置 maven原创 2021-05-31 15:48:17 · 3419 阅读 · 1 评论 -
linux安装openjdk
下载openjdkhttp://jdk.java.net/15/解压sudo mkdir /usr/lib/jvmsudo tar -xzvf openjdk-15.0.2_linux-x64_bin.tar.gz -C /usr/lib/jvm设置环境变量vim ~/.bashrc# 追究下面的内容export JAVA_HOME=/usr/lib/jvm/jdk-15.0.2export JRE_HOME=${JAVA_HOME}/jreexport CLASSPATH=.:${原创 2021-04-19 22:57:19 · 143 阅读 · 0 评论 -
maven 使用
maven下载慢,添加阿里云mirror<mirror> <id>aliyunmaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>https://maven.aliyun.com/repository/public </url></mirror>...原创 2021-04-06 09:43:26 · 161 阅读 · 0 评论