06 2022 档案
摘要:<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc
阅读全文
摘要:Poi和Excle Excle阿里巴巴 https://www.yuque.com/easyexcel/doc/easyexcel https://easyexcel.opensource.alibaba.com/docs/current/quickstart/read#%E6%9C%80%E7%A
阅读全文
摘要:解决方案: 判断交换,就是交换,添加一个版本号 如果在判断完成我在进行改的过程又被打断了,怎么办? 硬件本身就支持cas,并不一定本身就是原子性,java的natave ,c++里面实行,lock cmpxchg 是锁, 1.关中断 2.缓存锁,存在对象大于缓存 3,锁总线,北桥电平拉高, 在jav
阅读全文
摘要:在cpu底层是由三级缓冲区,通常缓存64字节,在java中long为8字节,多线程之间存在缓存一致性协议姐,在变量前后添加7个long进行防止多线程之间的缓冲一致性协议带来的性能浪费
阅读全文
摘要:
阅读全文
摘要:posRecordList.stream() .collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(f -> f.getTransactionNo(
阅读全文
摘要:Stream API 一.创建Stream //1.Colleaction系列集合提供 List<String> list = new ArrayList<>(); Stream<String> stream = list.stream(); //2.Arrays的静态方法stream(); Emp
阅读全文
摘要:方法引用 Lambda有方法已经完成了 1.对象::实例方法名 //案例1: Consume<String> consume = (x) -> System.out.println(x); //方法的参数类型和返回值要和要引用的方法的参数类型和返回值一致 PrintStream ps = Syste
阅读全文
摘要:Lambda语法格式 1.无参,无返回值 Runnable runnable = () -> System.out.println("无参,无返回值"); runnable.run(); 2.一个参数,无返回值--只有一个参数小阔号可以不写 Consumer<String> consumer = (
阅读全文
摘要:简单的Lambda表达式 import org.junit.Test; import java.util.Comparator; //Arbor 2022/6/24 public class TestLambda { //匿名内部类 @Test public void test1(){ Compar
阅读全文
摘要:创建条件接口,定制实现接口方法,写调用的条件接口的方法,调用方法时将实现类传入 实体类: import lombok.Data; //Arbor 2022/6/24 @Data //lombok注解的生成get,set... public class Employee { String name;
阅读全文
摘要:1. 使用Mustache语法(即双大括号{{ }}) DOM: <div id="app"> <h2>{{message}}</h2> <h2>{{message}}, 李**!</h2> <!--mustache语法中,不仅仅可以直接写变量,也可以写简单的表达式--> <h2>{{firstNa
阅读全文
摘要:<div id="my-profile" v-cloak> <a :href="user.homepage" class="my-logo-container"><img :src="user.avatar" class="my-logo" /></a> <div class="my-name-co
阅读全文
摘要:通过docket进行设置配置swagger,里面要的东西都可自己new一个类似的对象然后放进去 例如这个apiInfo对象 package com.***.config; import org.springframework.beans.factory.annotation.Value; impor
阅读全文
摘要:1、首先打开Ubuntu的终端命令行 要使用bash命令,我们需要打开终端工具,使用“alt+t”快捷键打开终端,也可以使用鼠标点击终端工具; 2、查看当前防火墙状态 使用sudo ufw status命令查看当前的防火墙状态:inactive状态是防火墙关闭状态 active是开启状态。 3、开启
阅读全文
摘要:ubuntu中man的手册安装。 用下面几条命令就行了: sudo apt-get install manpages sudo apt-get install manpages-de sudo apt-get install manpages-de-dev sudo apt-get install
阅读全文
摘要:首次修改都应该备份一份配置文件 root@arbor-virtual-machine:/usr/local/redis# cp redis.conf ./redis.conf.bak 将“daemonize no”修改为“daemonize yes”,即设置成作为后台进程运行,修改完成后保存退出。
阅读全文
摘要:解决方法: 右键计算机,管理,进入系统工具下面的第一个任务计划程序,查看活动任务,会看到一个mysql的任务每天晚上12点自动触发,双击进入任务,将任务删除。然后就好了
阅读全文
摘要:ubuntu20.04 默认是没有开启root登录的,这在我们桌面操作和配置文件的时候很不方便,于是这里教大家用root直接登录桌面,这样操作系统起来非常方便 一:设置root用户密码 在桌面上右键鼠标选择Open in Terminal打开终端模拟器 执行sudo passwd root 然后输入
阅读全文
摘要:默认不是root用户,root密码是一个随机的第一次需要自己修改一次 sudo passwd 输入两次密码 就可以切换用户了 su root
阅读全文
摘要:ubuntu安装gcc环境 sudo apt install build-essential centos7安装gcc环境 yum install -y gcc 所有版本下载地址 https://download.redis.io/releases https://download.redis.io
阅读全文
摘要:如果字段传了一一对应,没传这个参数则为空
阅读全文
摘要:Hibernate注解@Enumerated 1、@Enumerated(value=EnumType.ORDINAL) 按枚举下标存储(序号从0开始) 2、@Enumerated(value=EnumType.STRING) 按枚举值存储 枚举类型的每个类型对应下标是从0开始的,用controll
阅读全文
摘要:创建层级目录 mkdir -p 目录 rmdir 目录 只能删除空目录 rmdir -p 目录 cp 文件 目录 如果目录里有就是否覆盖 rm -r递归删除 -f忽略提醒 -i互动提醒 mv 移动文件或者目录,重命名文件夹 移动目录 -f强制移动 -u只替换已经更新的文件 clear 清屏 vim
阅读全文
摘要:Windows环境MySQL卸载 1:停止服务 方式1:打开DOS窗口,使用命令 net stop mysql 1.方式2:【win+R快捷键】—》输入services.msc—》进入服务窗口关闭mysql服务; 2.卸载程序(可选) 【控制面板】—》【程序和功能】—》右键卸载程序或者,使用360卸
阅读全文
摘要:安装VMware-tools工具 找到磁盘进行解压VMware-tools sudo tar -xf vmware-tools*****.tar.gz -C /tmp/ cd /tmp cd /vmware-tools-distrib sudo ./vmware-install.pl 安装完成后vm
阅读全文
摘要:http://www.quartz-scheduler.org/api/2.4.0-SNAPSHOT/index.html
阅读全文
摘要:对于@Query自定义查询时的返回类型接收方式 1、如果返回的是整张表数据,可以直接映射到实体类,用Bean或者List皆可 2、返回的是统计数据,那么可以用Integer接收,或者其他的类,这是单个数据的返回值,也可以直接映射 3、当返回值是两列数据时,可以用Map映射,如果是多行可以用List映
阅读全文
摘要:
阅读全文
摘要:Car{ Timestamp DateCreated } Map<Timestamp, List<Car>> CarMap = reservePeriodList.stream().collect(groupingBy(Car::getDateCreated));
阅读全文
摘要:Timestamp转化为String: SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//定义格式,不显示毫秒 Timestamp now = new Timestamp(System.currentTimeMil
阅读全文
摘要:经查阅资料得知, 在MySQL5.7版本之后对group by进行了优化。默认启动改进之后的版本启动了ONLY_FULL_GROUP_BY模式。 即ONLY_FULL_GROUP_BY是MySQL数据库提供的一个sql_mode,通过这个sql_mode来保证SQL语句“分组求最值”合法性的检查。这
阅读全文
摘要:@Query注解如何使用 @Query注解的用法 1.一个使用@Query注解的简单例子 @Query(value = "select name,author,price from Book b where b.price>?1 and b.price<?2") List<Book> findByP
阅读全文
摘要:
阅读全文
摘要:Keyword Sample JPQL snippet And findByLastnameAndFirstname … where x.lastname = ?1 and x.firstname = ?2 Or findByLastnameOrFirstname … where x.lastnam
阅读全文
摘要:方法1 org.springframework.beans.BeanUtils.copyProperties(父类对象,子类对象); package com.***.test11111; //Arbor 2022/6/7 public class Dog { String name; int age
阅读全文
摘要:
阅读全文
摘要:<dependency> <groupId>com.querydsl</groupId> <artifactId>querydsl-core</artifactId> </dependency> querydsl翻译:快速dsl 是Hibernate框架的实现 一个repository的实现类
阅读全文
摘要: 
阅读全文
摘要:https://repo.spring.io/ui/native/release/org/springframework/spring/ 下载dist版
阅读全文