摘要: // server.js const express = require('express'); const puppeteer = require('puppeteer'); const app = express(); const port = 8700; // 中间件 app.use(expr 阅读全文
posted @ 2026-01-20 11:25 liliyou 阅读(1) 评论(0) 推荐(0)
摘要: 1 展开折叠 Ctrl + M + O:折叠所有函数的函数体,以及注释段落; Ctrl + M + M:折叠或者展开当前方法; Ctrl + M + L:折叠/展开所有类的定义;折叠/展开所有函数体; 2 单行注释 Ctrl + K + Ctrl + C: 添加注释 Ctrl + K + Ctrl 阅读全文
posted @ 2026-01-14 09:25 liliyou 阅读(6) 评论(0) 推荐(0)
摘要: package ***; import org.springframework.web.multipart.MultipartFile; import java.io.*; import java.nio.file.Files; import java.nio.file.Path; public c 阅读全文
posted @ 2026-01-11 20:31 liliyou 阅读(4) 评论(0) 推荐(0)
摘要: Step 1: Install pm2-windows-startup npm install pm2-windows-startup -g Step 2: Configure PM2 to Start on Boot pm2-startup install Step 3: Save the Cur 阅读全文
posted @ 2026-01-03 11:12 liliyou 阅读(11) 评论(0) 推荐(0)
摘要: http 下配置 underscores_in_headers on; 解决 阅读全文
posted @ 2026-01-01 16:14 liliyou 阅读(4) 评论(0) 推荐(0)
摘要: const amqp = require('amqplib'); async function consumeMessages() { try { // 1. 连接 RabbitMQ const connection = await amqp.connect('amqp://localhost'); 阅读全文
posted @ 2025-12-05 16:06 liliyou 阅读(7) 评论(0) 推荐(0)
摘要: <update id="batchUpdateDynamic"> UPDATE user SET <foreach collection="fields" item="field" separator=","> ${field.name} = #{field.value} </foreach> WH 阅读全文
posted @ 2025-12-02 15:41 liliyou 阅读(7) 评论(0) 推荐(0)
摘要: SELECT DATE_FORMAT(CURRENT_TIMESTAMP, '%Y-%m-%d %H:%i:%s') AS formatted_time; 阅读全文
posted @ 2025-12-01 16:39 liliyou 阅读(20) 评论(0) 推荐(0)
摘要: 镜像源名称 镜像地址 备注微软官方中国镜像 https://nuget.cdn.azure.cn/v3/index.json 官方推荐的国内镜像华为云镜像 https://repo.huaweicloud.com/repository/nuget/v3/index.json 稳定且速度快腾讯云镜像 阅读全文
posted @ 2025-11-27 09:35 liliyou 阅读(873) 评论(0) 推荐(0)
摘要: // 启用WAL模式提高并发性能 Connection conn = DriverManager.getConnection("jdbc:sqlite:test.db"); Statement stmt = conn.createStatement(); stmt.execute("PRAGMA j 阅读全文
posted @ 2025-11-13 15:17 liliyou 阅读(6) 评论(0) 推荐(0)