摘要: 一、 二、 2.1 序列化和反序列化 名称 概述 使用 序列化 把Java对象转换为字节序列的过程。 Serializable 接口 反序列化 把字节序列恢复为Java对象的过程。 Externalizable 接口 三、 阅读全文
posted @ 2020-07-13 16:36 Aaron_zyq 阅读(64) 评论(0) 推荐(0) 编辑
摘要: Spring是核心,提供了基础功能;Spring MVC 是基于Spring的一个 MVC 框架 ;Spring Boot 是为简化Spring配置的快速开发整合包;Spring Cloud是构建在Spring Boot之上的服务治理框架。 Spring 是一个轻量级的控制反转(IoC)和面向切面( 阅读全文
posted @ 2020-08-19 22:50 Aaron_zyq 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 一、微服务编码架构 1、搭建父级工程 idea-->maven-site-->修改pom文件 <!-- 统一管理jar包版本 --> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <ma 阅读全文
posted @ 2020-08-18 22:41 Aaron_zyq 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 一、安装 二、启动 1.运行Zookeeper: 打开cmd然后执行 zkserver 2.打开cmd,进入kafka文件目录: D:\tool\kafka\kafka_2.13-2.4.0 输入并执行: .\bin\windows\kafka-server-start.bat .\config\s 阅读全文
posted @ 2020-08-13 10:14 Aaron_zyq 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 一、部署服务器 1.安装JDK (1)下载jdk、并解压 cd /opt/jdk tar zxvf jdk1.8.tar,gz (2)更改环境变量 在/etc/profile文件中,配置环境变量,是JDK在所有用户中生效: 打开/etc/profile文件:编辑文件,在最后添加如下四行: expor 阅读全文
posted @ 2020-08-09 21:51 Aaron_zyq 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 1.两数之和 给定 nums = [2, 7, 11, 15], target = 9因为 nums[0] + nums[1] = 2 + 7 = 9所以返回 [0, 1] public static int[] twoSum(int[] nums, int target) { for(int a 阅读全文
posted @ 2020-08-06 15:00 Aaron_zyq 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 设计模式 创建型模式,共五种:工厂方法模式、抽象工厂模式、单例模式、建造者模式、原型模式。 结构型模式,共七种:适配器模式、装饰器模式、代理模式、外观模式、桥接模式、组合模式、享元模式。 行为型模式,共十一种:策略模式、模板方法模式、观察者模式、迭代子模式、责任链模式、命令模式、备忘录模式、状态模式 阅读全文
posted @ 2020-08-05 21:29 Aaron_zyq 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 来源:菜鸟教程 https://www.runoob.com/ 斐波那契数列指的是这样一个数列 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233,377,610,987,1597,2584,4181,6765,10946,17711,28657,46 阅读全文
posted @ 2020-08-05 21:09 Aaron_zyq 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 第一种 public class SleepSortOne implements Runnable { int number; public static int length = 0; public SleepSortOne(int number) { this.number = number; 阅读全文
posted @ 2020-08-04 21:34 Aaron_zyq 阅读(604) 评论(0) 推荐(0) 编辑
摘要: <a style="cursor:pointer" onclick="doPost("请求地址", {'id':'001','name':'Aaron'})">提交</a> <script> function doPost(to, p) { // to:提交动作(action),p:参数 var m 阅读全文
posted @ 2020-08-04 10:17 Aaron_zyq 阅读(1604) 评论(0) 推荐(0) 编辑
摘要: 一、SpringSSM,ORACLE,MyBatis 1.插入数据提示:索引中丢失in或out参数10,参数大于实际参数 <insert id="addnew" useGeneratedKeys="true" keyProperty="id"> </insert> 经测试,去掉useGenerate 阅读全文
posted @ 2020-07-30 17:01 Aaron_zyq 阅读(65) 评论(0) 推荐(0) 编辑