会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一柒微笑
首页
新随笔
管理
上一页
1
2
3
4
5
6
7
下一页
2021年5月8日
断路器 Hystrix
摘要: 1.分布式系统面临的问题? 多个微服务之间的调用的链路上某个微服务的调用时间过长或者不可用,对微服务的调用就会占用越来越多的系统资源,进而引起系统崩溃,即"雪崩效应" 2.Hystrix是什么? 是一个用于处理分布式系统的延迟和容错的开源库,能保证在一个依赖出问题的情况下,不会导致整体服务失败,避免
阅读全文
posted @ 2021-05-08 01:29 一柒微笑
阅读(72)
评论(0)
推荐(0)
2021年4月21日
代理模式
摘要: 代码示例 package 设计模式.代理模式.静态代理; public class Demo { public static void main(String[] args) { DogProxy dogProxy = new DogProxy(new Dog()); dogProxy.voice(
阅读全文
posted @ 2021-04-21 21:51 一柒微笑
阅读(59)
评论(0)
推荐(0)
策略模式
摘要: 策略模式:定义一系列的算法,把每一个算法封装起来, 并且使它们可相互替换。 /** * 排序类 * @param <T> */ public class Sort<T> { /** * 排序算法 * @param arr 需要排序的数组 * @param comparator 比较器 */ publ
阅读全文
posted @ 2021-04-21 13:51 一柒微笑
阅读(52)
评论(0)
推荐(0)
2021年3月17日
CentOS 安装mysql8.0
摘要: 下载yum源安装包 yum localinstall https://repo.mysql.com//mysql80-community-release-el7-1.noarch.rpm 安装 yum install mysql-community-server 启动服务 service mysql
阅读全文
posted @ 2021-03-17 17:06 一柒微笑
阅读(82)
评论(0)
推荐(0)
2021年3月14日
排序算法
摘要: 冒泡排序 1.动图演示 2.代码实现 private static void bubbleSort(int[] arr) { if (arr.length <= 1) return; for (int i = 0; i < arr.length; i++) { // 用于标识数组是否有序 boole
阅读全文
posted @ 2021-03-14 17:22 一柒微笑
阅读(72)
评论(0)
推荐(0)
2021年1月29日
cmd 常用命令
摘要: 查看进程 netstar -ano 查看8080端口进程 netstar -ano|findstr ''8080" 杀死进程 taskkill /pid [pid] -f
阅读全文
posted @ 2021-01-29 10:19 一柒微笑
阅读(109)
评论(0)
推荐(0)
2021年1月28日
mac 安装mysql数据库
摘要: 一、安装mysql brew install mysql 二、启动mysql mysql.server start 三、停止mysql mysql.server stop 四、默认情况下是没有密码的 mysql -u root 五、8.0后版本修改密码 alter user 'root'@'loca
阅读全文
posted @ 2021-01-28 21:40 一柒微笑
阅读(85)
评论(0)
推荐(0)
2021年1月27日
大文件下载——断点续传
摘要: package com.zxz.study.util; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServ
阅读全文
posted @ 2021-01-27 12:31 一柒微笑
阅读(275)
评论(0)
推荐(0)
2021年1月25日
安卓获取目录
摘要: getExternalCacheDir() /storage/emulated/0/Android/data/com.zhanyu.suishikao/cache getCacheDir() /data/user/0/com.zhanyu.suishikao/cache getExternalFil
阅读全文
posted @ 2021-01-25 17:07 一柒微笑
阅读(428)
评论(0)
推荐(0)
2021年1月24日
mac 安装HomeBrew
摘要: 安装脚本: /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 卸载脚本: /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/
阅读全文
posted @ 2021-01-24 22:17 一柒微笑
阅读(71)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页