zno2

#

[置顶] Spring bean life cycle

摘要: 一、概要 org.springframework.beans.factory.BeanFactory Bean factory implementations should support the standard bean lifecycle interfacesas far as possibl 阅读全文

posted @ 2024-02-24 18:30 zno2 阅读(24) 评论(0) 推荐(0) 编辑

#

[置顶] @Aspect

摘要: 一、简介 依赖: <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>4.1.9.RELEASE</version> <sco 阅读全文

posted @ 2024-02-21 10:23 zno2 阅读(13) 评论(0) 推荐(0) 编辑

#

[置顶] 显示锁,隐式锁 (管程、monitor 、操作系统)

摘要: 无锁时并发出问题 import java.util.*; /** * 无锁 * @author witas * */ public class Bank { public static void main(String[] args) { final int NACCOUNTS = 100; fin 阅读全文

posted @ 2023-08-03 19:47 zno2 阅读(17) 评论(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 阅读(219) 评论(0) 推荐(0) 编辑

#

[置顶] spring boot核心原理:@Conditional

摘要: 资料 https://docs.spring.io/spring-boot/docs/2.2.2.RELEASE/reference/html/howto.htmlhttps://docs.spring.io/spring-boot/docs/1.2.1.RELEASE/reference/html 阅读全文

posted @ 2023-06-01 17:13 zno2 阅读(13) 评论(0) 推荐(0) 编辑

[置顶] spring 事务传播属性 (propagation)

摘要: propagation /ˌprɒpəˈɡeɪʃn/ 传播 资料: https://www.cnblogs.com/zno2/p/4767565.html https://docs.spring.io/spring-framework/docs/4.2.x/spring-framework-refe 阅读全文

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

#

[置顶] Java® Language Specification

摘要: Java™ Platform, Standard Edition 8 API Specification http://docs.oracle.com/javase/8/docs/api/ The Java® Language Specification http://docs.oracle.com 阅读全文

posted @ 2016-08-05 18:46 zno2 阅读(329) 评论(0) 推荐(0) 编辑

2024年4月22日 #

使用 apache pdfbox 去除水印

摘要: 需求 学习cobol过程中,找了一本电子书,但是有水印。 WPS 可以擦除,但是需要开通会员。 能不能用java程序去除水印呢? 实现 先查阅一些资料,开拓视野。 第一步:安装 org.apache.pdfbox:pdfbox-app:3.0.2 ,这是一个可执行jar,执行后可弹出Swing图形用 阅读全文

posted @ 2024-04-22 09:21 zno2 阅读(3) 评论(0) 推荐(0) 编辑

2023年8月25日 #

引用数据类型的坑

摘要: Integer2 != Integer2 巨坑 最近遇到一个奇怪的问题,存到user中的某个key的数据类型变了 下面这段代码,本来是图方便获取了 map ,然后将list转成string ,然后put回到这个map,然后使用这个map 却不成想,类型也跟着变了。 这就是引用类型使用的风险 impo 阅读全文

posted @ 2023-08-25 16:32 zno2 阅读(8) 评论(0) 推荐(0) 编辑

XSS(Cross-site scripting)

摘要: https://en.wikipedia.org/wiki/Cross-site_scripting same-origin policy (不能跨域) 代码注入,比如留言,然后其他人回复的时候就可以通过js获取信息并传送至指定的服务器 阅读全文

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

LRUCache (least recently used)

摘要: import java.util.HashMap; import java.util.LinkedList; import java.util.Map; /** * Caching with the LRU (Least Recently Used) algorithm. * */ public c 阅读全文

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

如何查看git 分支图

摘要: 1. 进入到一个项目 2. Insights - Graphs 3. Network 如下图: 阅读全文

posted @ 2023-08-25 16:31 zno2 阅读(288) 评论(0) 推荐(0) 编辑

ssd 固态硬盘检测工具 (as ssd benchmark)

摘要: https://as-ssd-benchmark.en.softonic.com/ http://www.alex-is.de/PHP/fusion/downloads.php?cat_id=4&download_id=9 A free utility program, AS SSD Benchma 阅读全文

posted @ 2023-08-25 16:30 zno2 阅读(205) 评论(0) 推荐(0) 编辑

迅雷9 关闭右侧浏览器首页

摘要: 思路:弄一个假的ThunderBrowser.exe 步骤: 退出迅雷在迅雷安装目录找到文件 ThunderBrowser.exe然后删除该文件新建空白文件,使用以上名称(欺骗)开启迅雷 效果: 阅读全文

posted @ 2023-08-25 16:30 zno2 阅读(14) 评论(0) 推荐(0) 编辑

where do you come from ? (调试用打印堆栈信息和线程信息)

摘要: void print() { StringBuffer sb = new StringBuffer(); Thread currentThread = Thread.currentThread(); sb.append("\n【Time】: "); sb.append(System.currentT 阅读全文

posted @ 2023-08-25 16:30 zno2 阅读(8) 评论(0) 推荐(0) 编辑

counter signature (XAdES)

摘要: 7.2.4 Countersignatures Annex C, in its clause C.1, includes a description and discussion on multiple signatures and countersignatures. This clause de 阅读全文

posted @ 2023-08-25 16:30 zno2 阅读(25) 评论(0) 推荐(0) 编辑

在线校验数字签名是否规范 (ETSI)

摘要: http://signatures-conformance-checker.etsi.org/pub/index.shtml XAdES (XML Advanced Electronic Signature ETSI 101 903, TS 103 171 and EN 319 132-1&2) C 阅读全文

posted @ 2023-08-25 16:30 zno2 阅读(17) 评论(0) 推荐(0) 编辑

Installed JREs & Compiler

摘要: 已安装 1.7 和 1.8 (默认是1.8) Option Description Installed JREs The current listing of installed JREs, allowing you to select the one to act as the workspace 阅读全文

posted @ 2023-08-25 16:29 zno2 阅读(36) 评论(0) 推荐(0) 编辑

git 不能clone ,TortoiseGit 和 Eclipse 都不行

摘要: 今天发现不能clone github.com 上的项目,报错如下: git.exe clone --progress -v "https://github.com/xxx/zzz.git" "E:\e\ws\zzz" Cloning into 'E:\e\ws\zzz'... fatal: unab 阅读全文

posted @ 2023-08-25 16:29 zno2 阅读(23) 评论(0) 推荐(0) 编辑

ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

摘要: ORA-12500 to ORA-12699 ORA-12514, TNS:listener does not currently know of service requested in connect descriptor 数据库没有启动 https://community.oracle.com 阅读全文

posted @ 2023-08-25 16:29 zno2 阅读(10) 评论(0) 推荐(0) 编辑

非常优秀的 UML Class Diagram 工具

摘要: http://www.objectaid.com/class-diagram 在eclipse中安装非常简单: Help - Install New Software... - Add... - Location - OK Name: ObjectAid UML ExplorerURL: http: 阅读全文

posted @ 2023-08-25 16:29 zno2 阅读(20) 评论(0) 推荐(0) 编辑

javax.xml.bind.JAXBException: class XXXX nor any of its super class is known to this context

摘要: [javax.xml.bind.JAXBException: class org.bouncycastle.jcajce.provider.asymmetric.x509.X509CRLObject nor any of its super class is known to this contex 阅读全文

posted @ 2023-08-25 16:29 zno2 阅读(60) 评论(0) 推荐(0) 编辑

jqgrid 示例 ,加载js中的json数据

摘要: <!DOCTYPE html> <html lang="en"> <head> <script type="text/ecmascript" src="js/jquery-1.7.2.min.js"></script> <script type="text/ecmascript" src="js/i 阅读全文

posted @ 2023-08-25 16:28 zno2 阅读(69) 评论(0) 推荐(0) 编辑

从 XAdES-X-L 中获取证书

摘要: import java.io.ByteArrayInputStream; import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; import java.securit 阅读全文

posted @ 2023-08-25 16:28 zno2 阅读(13) 评论(0) 推荐(0) 编辑

jndi.properties

摘要: http://docs.oracle.com/javase/7/docs/technotes/guides/jndi/jndi-ldap.html 3.1 JNDI Properties The LDAP service provider supports the following JNDI en 阅读全文

posted @ 2023-08-25 16:28 zno2 阅读(1) 评论(0) 推荐(0) 编辑

Java 方法签名 , method signature

摘要: 为什么说方法签名,这是java 方法重载 (overload) 的唯一依据 https://docs.oracle.com/javase/tutorial/java/javaOO/methods.html More generally, method declarations have six co 阅读全文

posted @ 2023-08-25 16:28 zno2 阅读(123) 评论(0) 推荐(0) 编辑

<wls:sharing-enabled>true</wls:sharing-enabled>

摘要: https://docs.oracle.com/cd/E13222_01/wls/docs90/webapp/sessions.html sharing-enabled false Enables Web applications to share HTTP sessions when the va 阅读全文

posted @ 2023-08-25 16:28 zno2 阅读(4) 评论(0) 推荐(0) 编辑

在 html 通过js 获取查询参数

摘要: file:///E:/test.html?a=1&b=2 <script type="text/javascript"> var getParameters = function() { var search = window.location.search; var obj = {}; if (s 阅读全文

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

UML 之 类图 (Class Diagram)

摘要: http://design-patterns.readthedocs.io/zh_CN/latest/read_uml.html https://en.wikipedia.org/wiki/Class_diagram ~ 比 - 松动了些 # 比 + 多了些限制 从一个示例开始 请看以下这个类图,类 阅读全文

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

统一建模语言(英语:Unified Modeling Language,缩写 UML)

摘要: Object Management Group http://www.omg.org/ 官网 http://www.omg.org/spec/UML/ 文档下载 https://zh.wikipedia.org/wiki/%E7%BB%9F%E4%B8%80%E5%BB%BA%E6%A8%A1%E8 阅读全文

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

2023年8月18日 #

Redis 过期监听 + 加阻塞队列

摘要: https://redis.io/docs/manual/keyspace-notifications/ 简单一句话就是要订阅key失效事件 应用场景:在线客服中开启会话后,如果客户一段时间未回复,则结束会话。为了保证会话结束的时效性,通过redis 订阅key失效事件处理 配置 notify-ke 阅读全文

posted @ 2023-08-18 10:17 zno2 阅读(96) 评论(0) 推荐(0) 编辑

2023年8月9日 #

2)最短路径应用

摘要: 路径拟合: 1. 准备数据 门架点集合、门架点连通关系、任意连通的门架点之间最短路径(通过最短路径算法,基于门架连通关系数据计算得出) 2. 入参 有序的门架点数组 3. 计算 a. 初始化连通关系数据 b. 初始化最短路径数据 c. 将入参数组按照相邻点,两两分组,分别验证连通性。若某组两点具备连 阅读全文

posted @ 2023-08-09 18:28 zno2 阅读(12) 评论(0) 推荐(0) 编辑

1) 最短路径 思路

摘要: 一、名词解释 临接矩阵: Dijkstra 算法: G: graph V: vertex E: edge 二、生成临接矩阵 a -> b(1) b-> c(5) b->d(2) d->c(2) 阅读全文

posted @ 2023-08-09 18:28 zno2 阅读(5) 评论(0) 推荐(0) 编辑

2023年8月3日 #

微信公众号发模板消息(spring集成)

摘要: 引入依赖: <dependency> <groupId>me.chanjar</groupId> <artifactId>weixin-java-mp</artifactId> <version>1.3.3</version> </dependency> 其中已实现的功能: public inter 阅读全文

posted @ 2023-08-03 19:52 zno2 阅读(18) 评论(0) 推荐(0) 编辑

正则非贪婪 (清除java类三种注释)

摘要: 最大匹配(默认): 最小匹配(加一个问号): 匹配 // 注释: [\t ]*//.*[^\r\n] 匹配 /** */ doc注释和/* */ 块注释(): [\t ]*/\*[\s\S]*?\*/ 验证: /* * Copyright (c) 1994, 2013, Oracle and/or 阅读全文

posted @ 2023-08-03 19:51 zno2 阅读(9) 评论(0) 推荐(0) 编辑

摘要: Introduction to Tree – Data Structure and Algorithm Tutorials What is a Tree data structure? A tree data structure is a hierarchical structure that is 阅读全文

posted @ 2023-08-03 19:51 zno2 阅读(6) 评论(0) 推荐(0) 编辑

MySQL 调优(视野二 都可优化什么)

摘要: 8.1 Optimization Overview 8.2 Optimizing SQL Statements 8.2.1 Optimizing SELECT Statements 8.2.2 Optimizing Subqueries and Derived Tables 8.2.3 Optimi 阅读全文

posted @ 2023-08-03 19:51 zno2 阅读(6) 评论(0) 推荐(0) 编辑

[err] 1118 Row size too large.

摘要: 一个工单表字段多+个别字段使用较长(上千) varchar,导致err 1118 解决是将这些超长varchar 转换为 text ,注意 MBG 生成的mapper 会有变化 这种业务数据量逐年增长,表字段不断增加。可采取冷热数据分离(横向分表,业务分隔),业务字段分离(纵向分表,关联查询) ht 阅读全文

posted @ 2023-08-03 19:51 zno2 阅读(53) 评论(0) 推荐(0) 编辑

《MySQL 5.6 Reference Manual》

摘要: MySQL 5.6 Reference Manual Including MySQL NDB Cluster 7.3-7.4 Reference Guide Abstract This is the MySQL Reference Manual. It documents MySQL 5.6 thr 阅读全文

posted @ 2023-08-03 19:51 zno2 阅读(20) 评论(0) 推荐(0) 编辑

Aspose docx 转 pdf

摘要: jar 包下载 https://releases.aspose.com/java/repo/com/aspose/aspose-words/21.11/aspose-words-21.11-jdk17.jar 参考文档 https://blog.aspose.com/words/convert-wo 阅读全文

posted @ 2023-08-03 19:50 zno2 阅读(223) 评论(0) 推荐(0) 编辑

InnoDB – the best storage engine for MySQL?

摘要: https://dev.mysql.com/doc/refman/5.7/en/innodb-introduction.html InnoDB is a general-purpose storage engine that balances high reliability and high pe 阅读全文

posted @ 2023-08-03 19:50 zno2 阅读(3) 评论(0) 推荐(0) 编辑

OOMKilled

摘要: 问题描述:某应用节点频繁重启 通过 describe 查看详情发现 kubectl -n <yournamespace> describe pod <yourapplicationpodid> Command: java Args: -Denv=PRO -XX:+UnlockExperimental 阅读全文

posted @ 2023-08-03 19:50 zno2 阅读(24) 评论(0) 推荐(0) 编辑

SQL 标准历史(比如 isolation in SQL-92)

摘要: https://learnsql.com/blog/history-of-sql-standards/ Has the SQL standard changed in the 30+ years it's been around? Absolutely! Learn about the journe 阅读全文

posted @ 2023-08-03 19:50 zno2 阅读(11) 评论(0) 推荐(0) 编辑

技术交流思考

摘要: 前端技术选型后端技术选型框架选型跨域解决方案模板运用场景是否丰富搜索引擎使用场景是否丰富后台管理系统用户角色权限问题运维效率问题代码审查机制单点登录实现方式是否前后分离测试环境切换问题做产品还是做项目产品文档精细度最小团队配置工作流技术选型 ★动态表单查询展示问题 ★ 多项目时运维知识库文档结构 阅读全文

posted @ 2023-08-03 19:49 zno2 阅读(8) 评论(0) 推荐(0) 编辑

Synchronization in Java

摘要: Synchronization in Java, Part 1: Race conditions, locks, and conditions https://blogs.oracle.com/javamagazine/post/java-thread-synchronization-racecon 阅读全文

posted @ 2023-08-03 19:47 zno2 阅读(15) 评论(0) 推荐(0) 编辑

导航