摘要: package lesson10; import org.junit.Test; import static org.hamcrest.CoreMatchers.both; import static org.junit.Assert.assertThat; public class SimpleT 阅读全文
posted @ 2020-11-23 16:31 氯雷他定 阅读(176) 评论(0) 推荐(0) 编辑
摘要: package lesson8; import org.junit.After; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; imp 阅读全文
posted @ 2020-11-23 16:23 氯雷他定 阅读(260) 评论(0) 推荐(0) 编辑
摘要: package lesson7; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mockito; import org.mockito.runne 阅读全文
posted @ 2020-11-23 16:17 氯雷他定 阅读(222) 评论(0) 推荐(0) 编辑
摘要: package lesson6; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.runners.MockitoJUnitRunner; import java.util.ArrayList; im 阅读全文
posted @ 2020-11-23 16:09 氯雷他定 阅读(80) 评论(0) 推荐(0) 编辑
摘要: package lesson4_5; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; i 阅读全文
posted @ 2020-11-23 16:06 氯雷他定 阅读(209) 评论(0) 推荐(0) 编辑
摘要: package lesson3; import common.Account; import common.AccountDao; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mockito; 阅读全文
posted @ 2020-11-23 15:58 氯雷他定 阅读(413) 评论(0) 推荐(0) 编辑
摘要: package lesson1_quickstart; import common.Account; import common.AccountDao; import common.AccountLoginController; import org.junit.Assert; import org 阅读全文
posted @ 2020-11-22 15:17 氯雷他定 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 计数器算法: 指定周期内限制最大值,到达下个周期时从0开始计数。 缺陷:临界值问题00:01:59和00:02:01分别出现最大值的流量,导致这2s内总流量达到最大值流量的2倍 滑动窗口算法(Sentinel采用此算法): 滑动窗口的大小为若干个小时间窗的和,每个小时间窗可限x个请求, 滑动窗口随着 阅读全文
posted @ 2020-09-21 18:02 氯雷他定 阅读(56) 评论(0) 推荐(0) 编辑
摘要: Nacos架构图P116 Nacos Server服务端关键组件: 1.Naming Service用于服务注册 2.Config Service用于配置管理 3.OpenAPI提供服务注册及服务查询接口 Nacos Console客户端: 通过调用服务端OpenAPI接口查询服务信息、配置信息 N 阅读全文
posted @ 2020-09-21 11:35 氯雷他定 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 如果需要边遍历边 remove ,必须使用 iterator。且 remove 之前必须先 next,next 之后只能用一次 remove。 package com.study.lock; import java.util.ArrayList; import java.util.Iterator; 阅读全文
posted @ 2020-09-16 09:19 氯雷他定 阅读(15) 评论(0) 推荐(0) 编辑