摘要: 核心和最大线程数(Core and maximum pool sizes) ThreadPoolExecutor 会根据指定的 corePoolSize 和 maximunPoolSize 自动调整当前线程池内线程数量(通过 getPoolSize 可以获取当前线程数量)。 值得注意的是:当 cor 阅读全文
posted @ 2025-03-06 20:23 newbieking 阅读(12) 评论(0) 推荐(0)
摘要: 未重写Object的finalize方法 public static class MyObject { } 使用 PhantomReference 来监听引用是否被回收 ReferenceQueue<Object> queue = new ReferenceQueue<>(); MyObject o 阅读全文
posted @ 2025-03-05 11:57 newbieking 阅读(5) 评论(0) 推荐(0)
摘要: Next.js的SSR 在 Next.js 中,服务器端渲染(Server-Side Rendering,SSR)是一项核心特性,它允许在服务器端生成 HTML 内容,然后将其发送到客户端 1. 常用的客户端渲染(CSR) 传统的客户端渲染(CSR)应用在初始加载时,浏览器先加载一个空白的 HTML 阅读全文
posted @ 2025-02-22 14:33 newbieking 阅读(368) 评论(0) 推荐(0)
摘要: 使用MySQL和Oracle进行递归查询 准备数据 数据schema create table region ( region_no varchar(4) not null primary key, content varchar(255) not null, subregion_no varcha 阅读全文
posted @ 2025-01-16 17:15 newbieking 阅读(7) 评论(0) 推荐(0)
摘要: Java copyProperties方法 Spring的BeanUtils不会copy字段名相同但类型不同的属性 if (readMethod != null && ClassUtils.isAssignable(writeMethod.getParameterTypes()[0], readMe 阅读全文
posted @ 2025-01-15 10:10 newbieking 阅读(5) 评论(0) 推荐(0)
摘要: 可以使用 spring spi 和 import 两种方法 1. 导入 starter 依赖 1.1. maven 管理工具 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starte 阅读全文
posted @ 2024-03-16 11:26 newbieking 阅读(77) 评论(0) 推荐(0)
摘要: net start 此命令的语法是: NET START [service] 可配合find, findstr 命令查询服务, 另外查询服务的命令还有: sc query [service] 例: @REM 查看MYSQL服务 net start | findstr /i "MYSQL" net s 阅读全文
posted @ 2022-01-30 19:37 newbieking 阅读(440) 评论(0) 推荐(1)
摘要: 1. GOTO 将 cmd.exe 定向到批处理程序中带标签的行。 GOTO label label 指定批处理程序中用作标签的文字字符串。 标签必须单独一行,并且以冒号打头。 2. CALL 从批处理程序调用另一个批处理程序。 CALL [drive:][path]filename [batch- 阅读全文
posted @ 2022-01-01 00:09 newbieking 阅读(1517) 评论(0) 推荐(0)
摘要: CHOICE CHOICE [/C choices] [/N] [/CS] [/T timeout /D choice] [/M text] 描述: 该工具允许用户从选择列表选择一个项目并返回所选项目的索引。 参数列表: /C choices 指定要创建的选项列表。默认列表是 "YN"。 /N 在提 阅读全文
posted @ 2021-12-29 22:52 newbieking 阅读(481) 评论(0) 推荐(0)
摘要: IF 执行批处理程序中的条件处理。 1. IF [NOT] ERRORLEVEL number command2. IF [NOT] string1==string2 command3. IF [NOT] EXIST filename command NOT 指定只有条件为 false 的情况下,W 阅读全文
posted @ 2021-12-29 22:40 newbieking 阅读(1458) 评论(0) 推荐(0)