摘要: 新增 <template> <el-form label-width="100px" :model="form" ref="form" > <el-row> <el-col :span="5"> <el-form-item label="表名称" prop="tableName" label-wid 阅读全文
posted @ 2021-08-06 10:31 凉了记忆 阅读(463) 评论(0) 推荐(0)
摘要: CREATE OR REPLACE TRIGGER tg_voucher_name AFTER insert or update on ab_voucherinfo for each rowbegin IF INSERTING THEN insert into DTL_TEST_LOG (O_ID, 阅读全文
posted @ 2021-08-05 15:47 凉了记忆 阅读(204) 评论(0) 推荐(0)
摘要: 1、判断数组当中是否存在某个数值 console.log(arr.indexOf(1000)) console.log(arr.includes(201)) 2、对数组的遍历 forEach():范围比map广,他能做的事情map不一定能做 map():map能做的事情forEach一定能做 arr 阅读全文
posted @ 2021-07-28 17:32 凉了记忆 阅读(2236) 评论(0) 推荐(0)
摘要: /** * 将某文件夹下的文件压缩成zip文件 * * @param filePath 将要被压缩的文件夹 形如 xx\xx\xx.txt 或xx\xx\xx.zip等 * @param zipOut zip文件输出流 * @throws IOException */public static vo 阅读全文
posted @ 2021-07-15 14:40 凉了记忆 阅读(550) 评论(0) 推荐(0)
摘要: @Test public void testA(){ String[] arr1 = new String[]{"B","A","H","E"};// String[] arr1 = DataUtils.sortArray(arr); //第一种方式 for (int i = 0; i < arr1 阅读全文
posted @ 2021-07-07 08:49 凉了记忆 阅读(614) 评论(0) 推荐(0)
摘要: postmen使用get无法直接将param发送{"name":"张三"},get方式会将参数拼接在url后花括弧会被转义,应使用以下方式 %7b"name":"张三"%7d 阅读全文
posted @ 2021-06-29 09:33 凉了记忆 阅读(488) 评论(0) 推荐(0)
摘要: 有2个表 学生表(Student) 成绩表(grade) 一、方法1 反向求解 可以从反面求解,只要有一门课程不满足条件,则该学生不再考虑 select distinct g.no from grade g where g.socre<80 然后在学生表中反向求解学生 ,条件为学号不在上面查询的集合 阅读全文
posted @ 2021-06-16 22:23 凉了记忆 阅读(461) 评论(0) 推荐(0)
摘要: 在最近项目中,由于netty服务地址从路由中心远程调用,在netty服务挂了之后,路由中心不能够实时监控到,仍然保留netty地址,这时需要使用netty服务时候 需要知道netty服务地址是真的可用,这里用socket方式来检测netty服务的远程端口是否可用 public static bool 阅读全文
posted @ 2021-05-14 10:12 凉了记忆 阅读(360) 评论(0) 推荐(0)
摘要: public class Solution3 { public static ExecutorService executorService = Executors.newFixedThreadPool(10); public static void main(String[] args) thro 阅读全文
posted @ 2021-04-30 09:29 凉了记忆 阅读(372) 评论(0) 推荐(0)
摘要: public static void main(String[] args) throws IOException { String a = "a-b-c-d"; //截取最后一个‘-’前面的所有内容 String str1 = a.substring(0,a.lastIndexOf("-")); 阅读全文
posted @ 2021-04-29 19:17 凉了记忆 阅读(500) 评论(0) 推荐(0)