会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
monkey66
博客园
首页
新随笔
联系
订阅
管理
2023年3月2日
回调函数
摘要: /* * 一般我们都是使用for循环去遍历数组, * JS中还为我们提供了一个方法,用来遍历数组 * forEach() * - 这个方法只支持IE8以上的浏览器 * IE8及以下的浏览器均不支持该方法,所以如果需要兼容IE8,则不要使用forEach * 还是使用for循环来遍历 */ //创建一
阅读全文
posted @ 2023-03-02 15:41 monkey66
阅读(20)
评论(0)
推荐(0)
2022年2月25日
多线程引发的血案
摘要: 问题出现的现象 我们的微服务网关运行出现了两次的自动下线,然后看日志并没有报错信息。所以我们初步怀疑是linux自己把这个进程给杀掉了。 排查思路 我们刚开始使用下面的命令,并没有发现有kill的日志 dmesg | egrep -i -B100 'killed process' # 或者 egre
阅读全文
posted @ 2022-02-25 17:41 monkey66
阅读(53)
评论(0)
推荐(0)
2021年12月2日
maven 打包插件
摘要: 方式一:<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.2.2</version> <execu
阅读全文
posted @ 2021-12-02 10:35 monkey66
阅读(297)
评论(0)
推荐(0)
Spring整合Redis分布式锁
摘要: 1.导包<spring.boot.version>2.2.6.RELEASE</spring.boot.version> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-
阅读全文
posted @ 2021-12-02 09:54 monkey66
阅读(259)
评论(0)
推荐(0)
2021年11月2日
git相关
摘要: git取消add操作: git rm --cached hello.txt
阅读全文
posted @ 2021-11-02 17:23 monkey66
阅读(13)
评论(0)
推荐(0)
2021年10月23日
spring gateway 跨域解决
摘要: 问题描述:前端在请求后端接口时,存在了跨域问题。导致接口访问不通问题解决:解决跨域问题,可以从前端,和后端解决。现在时springboot 的解决方案解决方案 public class AccessControlAllowOriginFilter implements Filter { @Overr
阅读全文
posted @ 2021-10-23 17:48 monkey66
阅读(643)
评论(0)
推荐(0)
2021年9月10日
java 姓名加密
摘要: String realname = "程序员"; String mobile = "15888888888"; String realname1 =null; char[] r = realname.toCharArray(); char[] m = mobile.toCharArray(); if
阅读全文
posted @ 2021-09-10 15:41 monkey66
阅读(884)
评论(0)
推荐(0)
2021年9月6日
hive 导入csv文件
摘要: 1.建表 CREATE TABLE app.xxx( ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS TEXTFILE; 2.找到数据文件路径 hadoop ls 3.导入数据 hadoop fs -put xxx.csv /inc
阅读全文
posted @ 2021-09-06 13:54 monkey66
阅读(363)
评论(0)
推荐(0)
2021年8月23日
设计模式
摘要: 原则: 单一职责:1个包,1个类,1个方法都只做一件事。比如Controller,Service,Dao。然而也会由另外一个问题Service过重,转而DDD。 接口隔离:依赖建立在最小的范围,每个接口只做它该做的事情,只存它应该存的方法,多做一些接口,功能隔离开。 依赖倒转:细节依赖抽象。1:属性
阅读全文
posted @ 2021-08-23 14:51 monkey66
阅读(34)
评论(0)
推荐(0)
2021年8月19日
Spring到SpringBoot 注解演变
摘要: Spring配置了大量xml文件后,越来越重。解决:基于发射 + 注解 SpingBoot2.0:IOC代理Bean @Service @Repository @Controller @Componet-Scan SpingBoot3.0:完全去xml @Configuration @Import
阅读全文
posted @ 2021-08-19 10:39 monkey66
阅读(41)
评论(0)
推荐(0)
下一页
公告