• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
牛牛
牛牛在线
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

07 2023 档案

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

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3