zno2

2023年6月2日 #

客观题如何判断用户答对了?

摘要: 判断题有选项,所以01或者10都有可能是正确答案。 1+1=2吗 A正确,B错误 正确答案是 10 1+1=3吗 A正确,B错误 正确答案是 01 客观题如何判断用户答对了? 选项按顺序,选中即为1,未选中为0 正确答案形成串 比如四个选项的多选题,1110 , 那么只有用户是1110才算回答正确, 阅读全文

posted @ 2023-06-02 08:25 zno2 阅读(6) 评论(0) 推荐(0) 编辑

启动 springboot jar包时指定额外的classpath (-Xbootclasspath/a:)

摘要: https://www.cnblogs.com/zno2/p/16353014.html 借助 java -jar -Xbootclasspath/a:D:\conf testcp.jar import java.io.IOException; import java.lang.management 阅读全文

posted @ 2023-06-02 08:19 zno2 阅读(157) 评论(0) 推荐(0) 编辑

MySQL 全文索引 (极不实用)(不推荐)

摘要: 内置分词器 https://dev.mysql.com/doc/refman/5.7/en/fulltext-search-ngram.html 语法 https://dev.mysql.com/doc/refman/5.7/en/fulltext-search.html 简介 https://de 阅读全文

posted @ 2023-06-02 08:18 zno2 阅读(55) 评论(0) 推荐(0) 编辑

java 省份小工具

摘要: import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.alibaba.fastjson.JSONArray; import com.a 阅读全文

posted @ 2023-06-02 08:18 zno2 阅读(57) 评论(0) 推荐(0) 编辑

java 给定时间范围计算 年、季、月、日

摘要: import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.List; import java.util.Set; import java.util.TreeSet; i 阅读全文

posted @ 2023-06-02 08:17 zno2 阅读(347) 评论(0) 推荐(0) 编辑

java 8 Stream 分页、list转map

摘要: public static void main(String[] args) { List<String> list = Lists.asList("1,2", new String[] { "3,4" }); List<String> collect = null; // map 是对各个元素依次 阅读全文

posted @ 2023-06-02 08:17 zno2 阅读(212) 评论(0) 推荐(0) 编辑

volatile 用与不用的区别,适用哪些场景

摘要: /** * volatile 使得变量在各线程之间实时共享 * 是为了解决内存一致性问题 * * Using volatile variables reduces the risk of memory consistency errors, * because any write to a vola 阅读全文

posted @ 2023-06-02 08:17 zno2 阅读(21) 评论(0) 推荐(0) 编辑

时序图 Sequence Diagram

摘要: 什么是时序图? Sequence Diagrams show elements as they interact over time and they are organized according to object (horizontally) and time (vertically) 水平方 阅读全文

posted @ 2023-06-02 08:16 zno2 阅读(27) 评论(0) 推荐(0) 编辑

MySQL 调优(视野一 explain )

摘要: https://docs.oracle.com/cd/E17952_01/mysql-5.6-en/explain-output.html#explain-join-types 简单举例: The EXPLAIN statement provides information about how My 阅读全文

posted @ 2023-06-02 08:16 zno2 阅读(7) 评论(0) 推荐(0) 编辑

Java HotSpot VM Options -XX

摘要: Please note that this page only applies to JDK 7 and earlier releases. For JDK 8 please see the Windows, Solaris reference pages. This document provid 阅读全文

posted @ 2023-06-02 08:16 zno2 阅读(7) 评论(0) 推荐(0) 编辑

京东扫码登录逻辑

摘要: 第一步:打开登录页面 https://passport.jd.com/uc/login 第二步:获取二维码 https://qr.m.jd.com/show?appid=133&size=147&t=1674895786277 第三步:轮询二维码状态 https://qr.m.jd.com/chec 阅读全文

posted @ 2023-06-02 08:15 zno2 阅读(549) 评论(0) 推荐(0) 编辑

MySQL terms 名词解释

摘要: https://dev.mysql.com/doc/refman/8.0/en/glossary.html#glos_acid MySQL Glossary These terms are commonly used in information about the MySQL database s 阅读全文

posted @ 2023-06-02 08:15 zno2 阅读(75) 评论(0) 推荐(0) 编辑

Clustered Index 是什么?

摘要: 聚集索引 Each InnoDB table has a special index called the clustered index that stores row data. Typically, the clustered index is synonymous with the prim 阅读全文

posted @ 2023-06-02 08:15 zno2 阅读(27) 评论(0) 推荐(0) 编辑

Cannot deserialize instance of `java.lang.String` out of START_ARRAY token

摘要: 反序列化时,字段接受非数组,但是传入的是数组 @PostMapping(path = "/aa", produces = { "application/json;charset=UTF-8" }, consumes= {"application/json;charset=UTF-8"}) @Resp 阅读全文

posted @ 2023-06-02 08:14 zno2 阅读(646) 评论(0) 推荐(0) 编辑

Excel 矩形树图、旭日图

摘要: 大类,小类,数量 阅读全文

posted @ 2023-06-02 08:14 zno2 阅读(24) 评论(0) 推荐(0) 编辑

排序算法(sorting algorithm) 之 归并排序(merge sort)

摘要: 初版(探索):运行很慢,写法有问题 import java.util.Arrays; import cn.hutool.core.util.RandomUtil; public class MergeSortTest { public static void main(String[] args) 阅读全文

posted @ 2023-06-02 08:14 zno2 阅读(6) 评论(0) 推荐(0) 编辑

SQL-92 具体内容(READ UNCOMMITTED | READ COMMITTED | REPEATABLE READ | SERIALIZABLE)

摘要: http://www.ocelot.ca/commands.htm ALTER Change domain, schema, sequence, or table definition.Example: ALTER TABLE TABLE_1 DROP COLUMN COLUMN_1 RESTRIC 阅读全文

posted @ 2023-06-02 08:13 zno2 阅读(30) 评论(0) 推荐(0) 编辑

佐证Navicat 新建的查询窗口是一个会话 session

摘要: https://dev.mysql.com/doc/refman/8.0/en/show-processlist.html show full PROCESSLIST 新开一个查询窗口就会新增一条记录,关闭一个查询窗口就会减少一条记录 Command The type of command the 阅读全文

posted @ 2023-06-02 08:13 zno2 阅读(132) 评论(0) 推荐(0) 编辑

事务隔离级别 transation isolation

摘要: JDBC 资料:java.sql.Connection Spring 资料:org.springframework.transaction.annotation.Isolation MySQL 资料:https://dev.mysql.com/doc/refman/8.0/en/innodb-tra 阅读全文

posted @ 2023-06-02 08:13 zno2 阅读(23) 评论(0) 推荐(0) 编辑

MySQL 测试Isolation

摘要: CREATE TABLE foo ( `name` VARCHAR (20) NULL DEFAULT NULL ) ENGINE = INNODB; insert foo values ('张三'); 设置隔离级别 #set SESSION TRANSACTION ISOLATION LEVEL 阅读全文

posted @ 2023-06-02 08:13 zno2 阅读(6) 评论(0) 推荐(0) 编辑

导航