摘要: /* * 一般我们都是使用for循环去遍历数组, * JS中还为我们提供了一个方法,用来遍历数组 * forEach() * - 这个方法只支持IE8以上的浏览器 * IE8及以下的浏览器均不支持该方法,所以如果需要兼容IE8,则不要使用forEach * 还是使用for循环来遍历 */ //创建一 阅读全文
posted @ 2023-03-02 15:42 monkey66 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 问题出现的现象 我们的微服务网关运行出现了两次的自动下线,然后看日志并没有报错信息。所以我们初步怀疑是linux自己把这个进程给杀掉了。 排查思路 我们刚开始使用下面的命令,并没有发现有kill的日志 dmesg | egrep -i -B100 'killed process' # 或者 egre 阅读全文
posted @ 2022-02-25 17:41 monkey66 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 方式一:<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 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(251) 评论(0) 推荐(0) 编辑
摘要: git取消add操作: git rm --cached hello.txt 阅读全文
posted @ 2021-11-02 17:23 monkey66 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 问题描述:前端在请求后端接口时,存在了跨域问题。导致接口访问不通问题解决:解决跨域问题,可以从前端,和后端解决。现在时springboot 的解决方案解决方案 public class AccessControlAllowOriginFilter implements Filter { @Overr 阅读全文
posted @ 2021-10-23 17:48 monkey66 阅读(619) 评论(0) 推荐(0) 编辑
摘要: String realname = "程序员"; String mobile = "15888888888"; String realname1 =null; char[] r = realname.toCharArray(); char[] m = mobile.toCharArray(); if 阅读全文
posted @ 2021-09-10 15:41 monkey66 阅读(847) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 原则: 单一职责:1个包,1个类,1个方法都只做一件事。比如Controller,Service,Dao。然而也会由另外一个问题Service过重,转而DDD。 接口隔离:依赖建立在最小的范围,每个接口只做它该做的事情,只存它应该存的方法,多做一些接口,功能隔离开。 依赖倒转:细节依赖抽象。1:属性 阅读全文
posted @ 2021-08-23 14:51 monkey66 阅读(28) 评论(0) 推荐(0) 编辑
摘要: Spring配置了大量xml文件后,越来越重。解决:基于发射 + 注解 SpingBoot2.0:IOC代理Bean @Service @Repository @Controller @Componet-Scan SpingBoot3.0:完全去xml @Configuration @Import 阅读全文
posted @ 2021-08-19 10:39 monkey66 阅读(37) 评论(0) 推荐(0) 编辑