java 中使用 Pattern匹配正则
摘要:import java.util.regex.Pattern; import java.util.regex.Matcher; public class RegexExample { public static void main(String[] args) { String regex = "\
阅读全文
k8s 资料文档
摘要:https://blog.csdn.net/qq_28121913/article/details/119208169
阅读全文
安全生产黄金法则
摘要:需求阶段 大项目,跨团队,一号位,一定备 定方案,需全面,上下游,都得见 跨部门,多联动,主人翁,勤沟通 设计阶段 选技术,评架构,所依赖,分强弱 设超时,保下游,尽服务,性能优 加监控,设报警,有开关,预案齐 开发阶段 改代码,必审查,分段提,人人夸 测代码,工具帮,覆盖全,心不慌 提测前,自测好
阅读全文
k8s 按照文档
摘要:一、环境准备两台服务器:1、master2、worker-node3、关闭防火墙:systemctl stop firewalldsystemctl disable firewalld4、关闭selinux sed -i 's/enforcing/disabled/' /etc/selinux/co
阅读全文
尚硅谷 k8s 学习笔记
摘要:原文地址:https://blog.csdn.net/qq_17079255/article/details/108916097?spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefaul
阅读全文
在尚硅谷学习docker 笔记
摘要:尚硅谷docker学习笔记 1.docker简介(基础篇) 2.docker的安装 3.docker的常用命令 3.1帮助启动类命令 3.2镜像命令 3.3容器命令 4.对docker镜像的深入理解 4.1镜像的一些重要概念 4.2docker镜像commit操作案例 4.3本地镜像发布到阿里云/私
阅读全文
springboot i18n 国际化
摘要:默认一: 1、配置 # 主Spring spring: messages: basename: i18n.rsltMessage,i18n.errorCodeMessage 2、多语言文件 在resources下 新建i18n文件夹 ,在在这个下面建立多语言: rsltMessage.propert
阅读全文
springboot 全局异常处理类
摘要:1、全局异常处理 import lombok.extern.slf4j.Slf4j; import org.slf4j.helpers.MessageFormatter; import org.springframework.beans.factory.annotation.Autowired; i
阅读全文
springboot 使用caffeine 并监控本地缓存
摘要:1、添加依赖 <dependency> <groupId>com.github.ben-manes.caffeine</groupId> <artifactId>caffeine</artifactId> </dependency> 2、添加配置 package com.example.demo.c
阅读全文
springboot log4j2.xml 模板
摘要:<?xml version="1.0" encoding="utf-8"?> <configuration> <properties> <!-- 文件输出格式 --> <property name="PATTERN">%d{yyyy-MM-dd HH:mm:ss.SSS} |-%-5level [%
阅读全文
springboot 自定义整合caffeine 本地缓存
摘要:1、自定义缓存配置类 @Data @ConfigurationProperties(prefix = "page.cache") public class PageCacheProperties { private CaffeineConfigProperties caffeine = new Ca
阅读全文
springboot 自定义参数转换器,把自定义字符串 转换成响应的对象
摘要:1、定义参数转换器 并放入ios容器中 package com.example.demo.convert; import com.example.demo.domain.Phone; import org.springframework.core.convert.converter.Converte
阅读全文
springboot 使用filter 增加全局 traceId,方便日志查找
摘要:1、编写过滤器 package com.example.demo.filter; import org.slf4j.MDC; import org.springframework.util.StringUtils; import javax.servlet.*; import javax.servl
阅读全文
java自定义注解,aop处理
摘要:1、定义注解 package com.example.demo.anno; import java.lang.annotation.*; @Target({ ElementType.METHOD }) @Retention(RetentionPolicy.RUNTIME) @Documented p
阅读全文
springboot 加载自定义的属性配置文件 或者xml文件
摘要:1、properties user.properties name=zhangshan age=18 2、xml Pen1.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE properties SYSTEM "http://java.sun
阅读全文