自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

原创 通过Arthas不停机更新class文件

下载Atrhas:https://arthas.aliyun.com/arthas-boot.jar。启动Arthas:java -jar arthas-boot.jar。获取要热更新class文件的classLoaderHash。实现不停机更新jvm中的class文件。修改源码并编译后得到class文件。

2023-08-18 15:30:20 244

原创 Java使用dom4j修改xml文件

Java使用dom4j对xml文件进行解析并修改节点属性内容

2023-02-03 22:53:13 884

原创 IDEA运行mvn命令时中文乱码

解决IDEA运行maven命令时中文乱码的问题

2023-01-07 10:57:09 602

原创 使用docker快速部署单机rocketmq和console

在centos7上使用docker-compose快速部署rocketmq的nameserver、broker及console

2022-12-21 22:10:25 339

原创 部署rocketmq集群(2主2从异步)

在centos7上部署rocketmq集群

2022-12-21 21:35:42 379 1

原创 自动化部署vue项目到服务器

通过js脚本实现自动化部署vue项目到nginx服务器

2022-12-09 23:45:59 2089

原创 VMware桥接模式配置静态IP

固定虚拟机IP(桥接模式)

2022-12-04 15:37:15 955

原创 github常用工作流

git常用工作流

2022-11-13 20:57:17 79

原创 踩坑记录:Arrays.asList返回的List不支持add/remove操作

关于Arrays.asList的坑

2022-08-03 15:29:26 211

原创 操作BOM对象

操作BOM对象window:代表浏览器窗口navigator:封装了screen:代表屏幕location:代表当前页面的URL信息host: "www.bilibili.com"href: "https://www.bilibili.com/"port: ""protocol: "https:"//刷新网页reload: ƒ reload();//设置新地址location.assign("https://www.bilibili.com");document

2020-08-26 20:40:53 136

原创 JavaScript中常用内部对象

JavaScript中常用内部对象1. Date基本使用let now = new Date();//年let fullYear = now.getFullYear();//月(下标)let month = now.getMonth();//日let date = now.getDate();//星期几let day = now.getDay();//时let hours = now.getHours();//分let minutes = now.getMinutes()

2020-08-26 19:36:22 225

原创 JavaScript中类的基本用法

JavaScript面向对象编码1. 定义一个类、属性、方法????//定义学生类(ES6新特性)class Student{ constructor(name) { this.name = name; } sayHello() { console.log('hello world'); }}let student = new Student('zyl');浏览器控制台打印输出2. 继承????class Collage

2020-08-26 19:32:12 213

原创 Java中序列化流的基本使用

序列化流高级流需要依托低级流ObjectOutputStreamObjectInputStreamObjectOutputStream将java对象写入文件基本用法@Testpublic void objectOutputStreamTest(){ try { FileOutputStream outputStream = new FileOutputStream("E:/ObjectOutputStreamTest.txt"); //使

2020-08-06 12:47:58 137

原创 Java中转换流的基本用法

转换流InputStreamReader是Reader的子类,是字节流到字符流的桥梁,读取字节时,使用其指定的字符集将其解码为字符。基本用法@Testpublic void InputStreamReadTest(){ try { File file = new File("E:/test.txt"); //第二个参数指定以什么编码格式读 InputStreamReader reader = new InputStreamRead

2020-08-06 11:42:31 206

原创 BufferReader和BufferWriter的基本使用

BufferedReader高级流需要依托低级流(FileReader)字符流最简单的使用方法@Testpublic void bufferedReaderWriterTest(){ try{ BufferedReader bufferedReader = new BufferedReader(new FileReader("E:/BufferReaderTest.txt")); String line = null; //

2020-08-05 13:28:35 1275

原创 BufferedInputStream&BufferedOutputStream的基本用法

BufferedInput&OutputStream高级流需要依托低级流(FileInputStream&FileOutputStream)字节流使用原因:基本流(FileInputOutputStreamTest)读写文件的速度相对较慢@Testpublic void FileInputOutputStreamTest() { long startTime = System.currentTimeMillis(); try{ fis =

2020-08-05 13:25:58 351

原创 FileWriter和FileReader的基本使用

FileWriter(字符流)最简单的方式写入字符串标准流程(写入->刷新->关闭)@Testpublic void fileWriteTest1() throws IOException { FileWriter fileWriter = new FileWriter("E:/fileWriteTest.txt"); //向缓冲区写入数据(此时数据还没有写入硬盘) fileWriter.write("赵玉龙"); //刷新缓冲区(此时数据才会被写

2020-08-05 13:21:04 203

原创 Java中的缓冲流简介

缓冲流高效流分类字节缓冲流BufferedInputStreamBufferedOutputStream字符缓冲流BufferedReaderBuffered Writer原理在创建对象时,会自动创建一个内置的默认大小的缓冲区数组,通过缓冲区的读写,减少IO的次数,从而提高效率。...

2020-08-05 13:20:06 109

原创 FileInputStream和FileOutputStream的基本用法

FileOutputStream(字节流)void write( byte b[] )直接写入指定字符的字节流@Testpublic void writeTest() throws Exception { File file = new File("E:/test.txt"); FileOutputStream fos = new FileOutputStream(file,true); byte[] b = {65,66,67,68,69,70}; byte

2020-08-05 13:17:07 477

空空如也

空空如也

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

TA关注的人

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