09 2022 档案
摘要:一、sprinboot部分 1、springboottest 的springboot项目,写了controller测试 import org.springframework.beans.factory.annotation.Value; import org.springframework.web.
阅读全文
摘要:1、修改docker.service 因为远程传输,所以需要开启Docker的2375端口的远程访问权限。 修改docker.service配置 ]# vi /usr/lib/systemd/system/docker.service 在ExecStart=/usr/bin/dockerd-curr
阅读全文
摘要:RocketMQ 中出现 org.apache.rocketmq.store.logfile.DefaultMappedFile#warmMappedFile 作用的交出cpu控制权, 在unix中 使用是时间片算法,而在windows中是抢占式。 在时间片算法中,所有进程使用队列排队。操作系统会按
阅读全文
摘要:因为newLineAfterDeclaration 默认为true ,会在xml声明后生成一行空行 所以需要指定 format.setNewLineAfterDeclaration(false); 总的代码 try(FileOutputStream fileOutputStream=new File
阅读全文