摘要:
1.第一步加入pom依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency> 2.第二步加入自定义一个注解 @T 阅读全文
摘要:
注意:背赋值的bean不要加上 @Accessors(chain = true) 注解 import org.springframework.cglib.beans.BeanCopier;import java.util.HashMap;import java.util.Map;import jav 阅读全文
摘要:
==和equals方法究竟有什么区别? 1). equals方法比较两个对象的内容 2). ==比较两个对象是否是同一对象,或者说对象在内存中的首地址是否相同 应用:(1) 对于基本数据类型,“==”比较的是两者的值是否相等 (2) 对于引用数据类型,==”比较的是引用的地址是否相同,对象默认的eq 阅读全文
摘要:
首先创建springboot项目 yml配置 server: port: 8080 connectionTimeout: 1800000 连接时间spring: profiles: dev 启动环境 datasource: url: jdbc:mysql://192.168.3.50:3306/31 阅读全文
摘要:
注意:excel模板需要放在resources下面 // 读取文件路径要写成这个样子在liunx才不会报错 ClassPathResource classPathResource = new ClassPathResource("static/sexcelTelemp.xls"); InputStream inputStream1 = classPathResource.getInputStrea 阅读全文
摘要:
Collections.sort('传入你需要排序的集合;列如(List<TeacherAtten>)', new Comparator<TeacherAtten>() { @Override public int compare(TeacherAtten o1, TeacherAtten o2) 阅读全文
摘要:
1. window.location.href = '请求路径'get方式}2. fetch('请求路径方式拼接上去'get方式).then(res => res.blob().then(blob => { const a = document.createElement('a') const ur 阅读全文
摘要:
1.在函数里面新建一个存储过程 CREATE DEFINER=`root`@`%` PROCEDURE `NewProc`()BEGIN SET @num = 1;WHILE @num < 1000000 DO 你需要插入的sql语句 INSERT INTO attendance_card_reco 阅读全文
摘要:
maven依赖截取图片第一帧依赖 <dependency> <groupId>org.bytedeco</groupId> <artifactId>javacpp</artifactId> <version>1.4.1</version></dependency><dependency> <grou 阅读全文
摘要:
一.语法explain < table_name >例如: explain select * from t3 where id=3952602;二.explain输出解释+ + + + + + + + + + +| id | select_type | table | type | possible 阅读全文