自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 资源 (1)
  • 收藏
  • 关注

原创 阿里云服务器搭建redis-6.2.6集群

由于资源有限,文章以搭建伪集群为例,即以单个服务不同的端口搭建redis集群,实现在公网可以直接访问 1.新建redis集群安装目录,并且在每个目录下新建data目录,用于保存redis数据 mkdir /usr/local/redis-cluster/redis-500{1,2,3} 2.从官网https://redis.io/download下载Redisredis-6.2.6 wget https://download.redis.io/releases/redis-6.2.6.tar.

2021-11-20 22:30:47 1063 1

原创 为什么我的代码没有陷入死循环

首先说一下volatile这个关键字的t特性: 1.保证可见性,volatile保证了不同线程对这个变量进行操作时的可见性,即一个线程修改了某个变量的值,这新值对其他线程来说是立即可见的。 2.保证有序性,禁止进行指令重排序, 3.不保证原子性,volatile也无法保证对变量的任何操作都是原子性的 执行一下代码,测试一下volatile关键字 import java.util.concurrent.TimeUnit; public class VolatileTest { private sta

2020-08-03 09:06:55 270 5

原创 org.junit.platform.commons.util.ReflectionUtils.getDefaultClassLoader()

springBoot单元测试报错,按照网上各种方式尝试,问题没有解决,springBoot版本:2.2.4.RELEASE 最后升级idea版本,问题解决,版本由2017.1.3升级到2019.3.5问题解决

2020-05-28 23:55:32 204

jsr133_content.pdf

JSR-133内存模型手册 带目录 This document is the JSR-133 specification, the JavaTM Memory Model and Thread Specification (JMM), as developed by the JSR-133 expert group. This specification is part of the JSR-176 umbrella for the Tiger (5.0) release of the JavaTM platform, and the normative contents of this specification will be incorporated into The JavaTM Language Specification (JLS), The JavaTM Virtual Machine Specification (JVMS), and the specification for classes in the java.lang package. This JSR-133 specification will not be further maintained or changed through the JCP. All future updates, corrections and clarifications to the normative text will occur in those other documents

2020-08-02

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除