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