
基础
zt19811122
这个作者很懒,什么都没留下…
展开
-
NPM 更新和安装依赖经验总结
1. 执行 npm install 如果遇到失败无论是连不上 github 还是权限不对尝试一下 步骤处理。再执行 npm install。打开 git bash 执行。切换到 https 模式。原创 2022-11-25 11:16:28 · 1035 阅读 · 1 评论 -
joda 时间类用法,网上搜的都是错的,实在看不下自己写一个
一般在jdk8中 都很少使用 simpledateformat工具类, 开始使用 joda 时间工具类 例如如下:DateTimeFormatter dateTimeFormatter = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss");LocalDateTime localDateTime = LocalDateTime.parse("2022-05-11 00:00:00", dateTimeFormatter);根据 返回结果localDa原创 2022-05-12 11:37:30 · 215 阅读 · 0 评论 -
Threadlocal 传递研究
Threadlocal在线程池中使用传递变量实验原创 2022-04-21 13:43:14 · 545 阅读 · 0 评论 -
Spring cloud 微服务架构
1. spring boot 构建微服务2. netflix eureka 服务注册与发现(服务治理)3.netflix ribbon 负载均衡4. netflix hystrix 服务容错(熔断,服务降级)5.netflix zuul API 网关6.spring cloud config 配置中心7.spring cloud stream 事件驱动...原创 2020-02-09 16:42:06 · 160 阅读 · 0 评论 -
系统设计六大原则
SOLID 原则:S 单一职责原则 单一责任,一个类只负责一个职责。(single responsiblity)O 开闭原则 对继承和发展开放,对修改关闭。(open and close)L 里式替换原则 子类可是替换父类 (Liskov substituation principle)L 迪米特法则 尽可能的少知道其他类,目的在于降低耦合,减少类之间的依赖关系 (Low of d...原创 2019-05-30 23:08:33 · 13088 阅读 · 2 评论