09 2021 档案

摘要:用户故事 最近小明的bug有点多,忙的连王者荣耀都顾不上玩了,导致现在不得不抽点时间研究一下作为当前大多Java程序员开发工具的IDEA DEBUG功能,以提高效率。 条件断点 回到"过去" 多线程调试 远程调试(云调试) java -server -Xms512m -Xmx512m -Xdebug 阅读全文
posted @ 2021-09-26 14:26 1766Af 阅读(43) 评论(0) 推荐(0) 编辑
摘要:服务器规划 Linux 采用 Ubuntu Server X64 18.04 LTS 版本,配置及说明如下: 主机名 IP CPU / 内存 磁盘 说明 docker-database 192.168.1.130/24 2 核 512M docker-gitlab 192.168.1.131/24 阅读全文
posted @ 2021-09-26 14:23 1766Af 阅读(73) 评论(0) 推荐(0) 编辑
摘要:参考 https://geth.ethereum.org/docs/getting-started/dev-mode 在开发模式下启动 Geth 您可以使用该--datadir选项指定一个数据目录来维护两次运行之间的状态,否则,数据库是临时的并且在内存中: mkdir test-chain-dir 阅读全文
posted @ 2021-09-26 14:15 1766Af 阅读(67) 评论(0) 推荐(0) 编辑
摘要:创建合约 mkdir contracts vi HelloETH.sol pragma solidity ^0.8.7; contract HelloETH { function rate(uint a, uint b) public pure returns (uint){ return a * 阅读全文
posted @ 2021-09-26 14:14 1766Af 阅读(808) 评论(0) 推荐(0) 编辑
摘要:概述 API 参考 https://web3js.readthedocs.io/en/v1.4.0/index.html docker-compose.yml version: '3.1' services: ethereum: image: ethereum/client-go restart: 阅读全文
posted @ 2021-09-26 14:12 1766Af 阅读(1039) 评论(0) 推荐(0) 编辑
摘要:概述 事务原本是数据库中的概念,用于数据访问层。但一般情况下,需要将事务提升到业务层,即 Service 层。这样做是为了能够使用事务的特性来管理具体的业务。 在 Spring 中通常可以通过以下三种方式来实现对事务的管理: 使用 Spring 的事务代理工厂管理事务(已过时) 使用 Spring 阅读全文
posted @ 2021-09-26 14:09 1766Af 阅读(47) 评论(0) 推荐(0) 编辑
摘要:Redis 高可用集群 基于 Docker 搭建单机 Redis HA 集群 官网: https://redis.io/topics/sentinel#sentinel-docker-nat-and-possible-issues Docker 部署注意事项 Sentinel、Docker、NAT 阅读全文
posted @ 2021-09-26 14:04 1766Af 阅读(841) 评论(0) 推荐(0) 编辑
摘要:抓包分析 启动项目会提示,开启本地一个端口,通过该端口将数据发到 MQ (5672) 2021-08-29 21:03:33.592 INFO 67718 [ main] o.s.a.r.c.CachingConnectionFactory : Created new connection: rab 阅读全文
posted @ 2021-09-26 14:01 1766Af 阅读(202) 评论(0) 推荐(0) 编辑
摘要:JVM 架构图 类加载时机 生命周期 验证、准备、解析 3 个阶段统称为连接。 加载、验证、准备、初始化和卸载这 5 个阶段的顺序是确定的,类的加载过程必须按照这种顺序按部就班地开始(注意是“开始”,而不是“进行”或“完成”),而解析阶段则不一定:它在某些情况下可以在初始化后再开始,这是为了支持 J 阅读全文
posted @ 2021-09-26 13:44 1766Af 阅读(39) 评论(0) 推荐(0) 编辑
摘要:RDB(快照) RDB 持久化方式会在一个特定的间隔保存那个时间点的一个数据快照 AOF(记录所有更新操作) AOF 持久化方式则会记录每一个服务器收到的写操作。在服务启动时,这些记录的操作会逐条执行从而重建出原来的数据。写操作命令记录的格式跟 Redis 协议一致,以追加的方式进行保存。 Redi 阅读全文
posted @ 2021-09-26 13:40 1766Af 阅读(222) 评论(0) 推荐(0) 编辑
摘要:基本数据类型 参考官网 byte: 8-bit short: 16-bit int: 32-bit long: 64-bit float: 32-bit double: 64-bit boolean: 只有两个可能的值 true 和 false;这种数据类型表示一位信息,但它的“大小”并不是精确定义 阅读全文
posted @ 2021-09-24 13:23 1766Af 阅读(34) 评论(0) 推荐(0) 编辑
摘要:App public class GCApp { // 1 MB = 1024 KB, 1 KB = 1024 B(字节), 1 B=8 b(bit比特) public static final int MB = 1024 * 1024; public static void main(String 阅读全文
posted @ 2021-09-24 13:20 1766Af 阅读(96) 评论(0) 推荐(0) 编辑
摘要:架构图 各种用途参考:https://docs.oracle.com/javase/8/docs/technotes/guides/collections/reference.html 常用 Algorithms - The Collections class contains these usef 阅读全文
posted @ 2021-09-24 13:11 1766Af 阅读(80) 评论(0) 推荐(0) 编辑
摘要:测试代码 public class App { public static void main(String[] args) { System.out.println("123"); Map<Object, Object> hashMap = new HashMap<>(4); for (int i 阅读全文
posted @ 2021-09-24 13:02 1766Af 阅读(26) 评论(0) 推荐(0) 编辑
摘要:类关系图 AopProxyFactory public interface AopProxyFactory { /** * Create an {@link AopProxy} for the given AOP configuration. * @param config the AOP conf 阅读全文
posted @ 2021-09-24 12:58 1766Af 阅读(28) 评论(0) 推荐(0) 编辑
摘要:整理流程图 Cglib 生成对象 BeanUtils#instantiateClass{ return ctor.newInstance(argsWithDefaultValues) } 由上图可知,最终会调用 AppConfig 的构造方法来生成对象 阅读全文
posted @ 2021-09-24 12:55 1766Af 阅读(41) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示