zno2

上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页

2023年6月6日 #

Maven project 中,运行时获取某依赖的版本号

摘要: <dependency> <groupId>cn.xs</groupId> <artifactId>qishi-api</artifactId> <version>0.0.1-SNAPSHOT</version> </dependency> // D:\mvnrepository\cn\xs\qis 阅读全文

posted @ 2023-06-06 12:39 zno2 阅读(84) 评论(0) 推荐(0) 编辑

mvn help:help

摘要: mvn <plugin>:help 可以输出该插件帮助信息。 mvn help:help help:active-profiles Displays a list of the profiles which are currently active for this build. help:all- 阅读全文

posted @ 2023-06-06 12:39 zno2 阅读(16) 评论(0) 推荐(0) 编辑

maven install 小技巧

摘要: 创建一个简单的maven分层项目 z-father │ pom.xml │ ├─z-child1 │ │ pom.xml ├─z-child2-withtool │ │ pom.xml └─z-tool │ pom.xml 简单说明:father 有三个modules , child2 依赖 too 阅读全文

posted @ 2023-06-06 12:39 zno2 阅读(83) 评论(0) 推荐(0) 编辑

gradle 项目转maven项目

摘要: 首先打开 build.gradle ,加入 'maven' plugin 准备导入 gradle 项目 运行gradle install (记得完成第一步,添加 maven) 执行完毕之后如下图 找到{build.gradle 所在目录}/build/poms/pom-default.xml 完善 阅读全文

posted @ 2023-06-06 12:39 zno2 阅读(2311) 评论(0) 推荐(0) 编辑

28) 跳过去 (只装父pom |不测试|构建特定模块)

摘要: 只装父pom跳过子 命令行 mvn -N install -N,--non-recursive Do not recurse into sub-projects usage: mvn [options] [<goal(s)>] [<phase(s)>] eclipse 跳过测试 mvn instal 阅读全文

posted @ 2023-06-06 12:27 zno2 阅读(22) 评论(0) 推荐(0) 编辑

27) yuicompressor-maven-plugin 合并压缩 js css文件

摘要: http://davidb.github.io/yuicompressor-maven-plugin/compress-mojo.html <plugin> <groupId>net.alchim31.maven</groupId> <artifactId>yuicompressor-maven-p 阅读全文

posted @ 2023-06-06 12:27 zno2 阅读(31) 评论(0) 推荐(0) 编辑

26) minify-maven-plugin 合并压缩 js css文件

摘要: http://samaxes.github.io/minify-maven-plugin/minify-mojo.html <build> <plugins> <plugin> <groupId>com.samaxes.maven</groupId> <artifactId>minify-maven 阅读全文

posted @ 2023-06-06 12:27 zno2 阅读(84) 评论(0) 推荐(0) 编辑

25)m2e-execution-not-covered 具体例子

摘要: http://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html 这个插件定义的phase 不包含在Eclipse m2e 的生命周期内。(这种情况很正常,自己定义的插件所在的phase 可以是各种各样的) 出现这种情况除 阅读全文

posted @ 2023-06-06 12:27 zno2 阅读(7) 评论(0) 推荐(0) 编辑

m2e-execution-not-covered

摘要: http://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html Background M2Eclipse 0.12 and earlier executed some parts of Maven build lifec 阅读全文

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

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 阅读(349) 评论(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 阅读(213) 评论(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 阅读(649) 评论(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 阅读(133) 评论(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) 编辑

MySQL 存储引擎(storage engine)

摘要: show engines ; https://dev.mysql.com/doc/refman/5.7/en/storage-engines.html 创建表时(CREATE TABLE Statement)可以指定存储引擎类型 简介 InnoDB: The default storage engi 阅读全文

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

springboot web 启动后为什么不会停止

摘要: jls 12.8 中 jvm终止需要满足以下两个任意一个:All the threads that are not daemon threads terminate. (全部非守护进程终止)Some thread invokes the exit method of class Runtime or 阅读全文

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

spring boot 原理:生命周期

摘要: https://docs.spring.io/spring-boot/docs/2.3.9.RELEASE/reference/html/spring-boot-features.html#boot-features-application-events-and-listeners 引子 Sprin 阅读全文

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

获取嵌套类的内容

摘要: public class Foo { public static class MenuTreeRes { public static class MenuTreeRes_Message { } public static class MenuTreeRes_Data { } public stati 阅读全文

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

1亿个数引发的思考(二)之 开拓视野 BitMap Index 和 布隆过滤器

摘要: java实现: java.util.BitSet 谷歌实现 <dependency> <groupId>com.googlecode.javaewah</groupId> <artifactId>JavaEWAH</artifactId> <version>1.2.3</version> </dep 阅读全文

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

1亿个数引发的思考(一)

摘要: 1) 如何生成1亿随机数答:生成有序数组,遍历时生成随机下标进行交换2)存储1亿个数字文件多大?答:约1G3)1亿代表的是一类什么问题?答:内存不够用的问题,因为内存不能无限扩张,数据却可以4)内存不够用时怎么办?答:借助外存,并充分利用内存5)外存文件需要一开始就切割成小块,然后分别排序,再归并吗 阅读全文

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

范式(normalization)

摘要: 就是想简单的学习一下范式结果却不简单 诸多概念词语,都是中文可就是弄不太懂引出了《数据库系统概论》 行列二维表格固化思维的思考灵魂一问:什么是关系型数据库? 范式引出了码。。。 非关系型数据不遵循范式关系型数据库一定遵循1NF对于范式有更好理解只能站在更高的视角 玛德!! 参考资料: 《数据库系统概 阅读全文

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

数据库结构差异如何处理?navicat 结构同步工具

摘要: 操作 如何对比线上数据库,线上数据库无法直连时可以下载表结构,创建一个可以直接访问的数据库。然后开启对比 navicat 帮助文档 结构同步(只限于完整版本)Navicat 让你以详细分析的进程比对及修改表结构。換句话说, Navicat 比对两个数据库和/或模式之间的表及显示其结构的差異处。从主菜 阅读全文

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

源码交付、批量导出jar、批量上传至nexus

摘要: 思路:新建一个目录用于存放各个项目源码;新建一个settings文件用于本地仓库和nexus认证配置;通过maven dependency 插件获取依赖的组件列表和坐标信息;再通过 maven deploy 插件将组件批量上传。 <?xml version="1.0" encoding="UTF-8 阅读全文

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

eureka server 开启认证

摘要: https://cloud.spring.io/spring-cloud-static/Greenwich.RELEASE/single/spring-cloud.html#_securing_the_eureka_server https://docs.spring.io/spring-secur 阅读全文

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

${property-name} 通过:设置默认值,格式到底是什么样的

摘要: org.springframework.beans.factory.config.PlaceholderConfigurerSupport The values to replace are specified as 'placeholders' of the form ${property-nam 阅读全文

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

上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页

导航