摘要: 启用root用户ssh远程登录 nano /etc/ssh/sshd_config,PermitRootLogin 修改为 yes: #PermitRootLogin prohibit-password PermitRootLogin yes 配置华为云软件源 nano /etc/apt/sourc 阅读全文
posted @ 2024-09-10 10:34 Nihaorz 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 众所周知,在 Spring 的 bean 中使用 this 引用,会导致 AOP 切面失效,那我们就不用 this,使用 self() 代替 SpringUtils.java package com.xxx.util; import org.springframework.beans.BeansEx 阅读全文
posted @ 2024-01-16 15:35 Nihaorz 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 工具类:org.springframework.util.DigestUtils 作用:计算字节数组、输入流的 md5 摘要 所在模块:spring-core 方法 描述 String md5DigestAsHex(byte[] bytes) 返回字节数组的 md5 摘要(计算字符串) String 阅读全文
posted @ 2024-01-16 11:32 Nihaorz 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 工具类:org.springframework.util.StopWatch 作用:记录方法执行耗时,统计每个方法的耗时占比 所在模块:spring-core 方法 描述 void start(String taskName) 开始一个新的监测任务,可设置任务名称。记录当前时间和任务名称 void 阅读全文
posted @ 2024-01-16 11:18 Nihaorz 阅读(143) 评论(0) 推荐(0) 编辑
摘要: docker ps 语法 语法:docker ps [OPTIONS] 参数: 参数名 参数描述 –all, -a 显示所有的容器,包括未运行的 –filter, -f 根据条件过滤显示的内容 –format: 指定返回值的模板文件 –last, -l 显示最近创建的容器 –latest, -n 列 阅读全文
posted @ 2023-12-28 12:22 Nihaorz 阅读(57) 评论(0) 推荐(0) 编辑
摘要: ES 安装 elasticsearch.yml cluster.name: "docker-cluster" node.name: "node-1" network.host: 0.0.0.0 discovery.seed_hosts: ["127.0.0.1"] cluster.initial_m 阅读全文
posted @ 2023-12-21 11:39 Nihaorz 阅读(23) 评论(0) 推荐(0) 编辑
摘要: -- 查看表空间文件信息 select df.BYTES/1024/1024/1024 as size_GB, df.* from dba_data_files df where df.TABLESPACE_NAME='GEODATA'; -- 扩展表空间 alter tablespace GEOD 阅读全文
posted @ 2023-12-15 10:38 Nihaorz 阅读(4) 评论(0) 推荐(0) 编辑
摘要: User.java package org.example.entity; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import c 阅读全文
posted @ 2023-11-29 17:51 Nihaorz 阅读(20) 评论(0) 推荐(0) 编辑
摘要: JacksonUtils.java package org.example.util; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JavaType; 阅读全文
posted @ 2023-11-29 17:35 Nihaorz 阅读(245) 评论(0) 推荐(0) 编辑
摘要: uHTTPd 是一个 OpenWrt/LUCI 开发者从头编写的 Web 服务器。 它着力于实现一个稳定高效的服务器,能够满足嵌入式设备的轻量级任务需求,且能够与 OpenWrt 的配置框架 (UCI) 整合。默认情况下它被用于 OpenWrt 的 Web 管理接口 LuCI。 当然,uHTTPd 阅读全文
posted @ 2023-11-20 17:09 Nihaorz 阅读(1678) 评论(0) 推荐(0) 编辑