摘要: 一、基础命令 1.ping(心跳检查) ping //输入ping 命令,看到PONG响应,说明客户端与Redis的连接正常。 2.get/set(读写键值) set name xiaoHong //set key value 会将指定 key-value写入到DB。 get name //get 阅读全文
posted @ 2023-12-15 17:28 coder_Fish 阅读(134) 评论(0) 推荐(0) 编辑
摘要: this.url = "https://xxx.com/video/demo.mp4" 1.把视频放进canvas,在通过canvas 拿到视频的第一帧。 var cut = function() { let canvas = document.createElement("canvas");//创 阅读全文
posted @ 2023-11-30 09:14 coder_Fish 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 1.介绍 Spring(SpringBoot)框架的路径解析都是按照Ant的风格。 Spring中的具体实现: org.springframework.util.AntPathMatcher ? 匹配1个字符 /dir/app? 匹配:/dir/app1、/dir/app2 不匹配:/dir/app 阅读全文
posted @ 2023-11-24 16:32 coder_Fish 阅读(234) 评论(0) 推荐(0) 编辑
摘要: Java 7 中引入的对资源 try-with-resources ,声明在 try 块中使用的资源,并保证资源将在该块执行后关闭。声明的资源需要实现自动关闭接口。 1.使用资源try 典型的try-catch-finally块: Scanner scanner = null; try { scan 阅读全文
posted @ 2023-11-24 14:28 coder_Fish 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1.在末尾加入 & 符号 java -jar xxx.jar & 2. 执行 java -jar xxx.jar 后,ctrl+z 退出到控制台,执行 bg,最后 exit 完成以上3步,退出SHELL后,jar服务一直在后台运行。 3.将 java -jar xxxx.jar 加入 nohup 和 阅读全文
posted @ 2023-11-21 11:51 coder_Fish 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 由于更新太快这里只作前三位号段的限制 运营商 号段 电信 133,149,153,173,174,177,180,181,189,191,193,199 移动 134,135,136,137,138,139,147,148,150,151,152,157,158,159,172,178,182,18 阅读全文
posted @ 2022-04-11 13:50 coder_Fish 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 使用@Value的类,在spring中,不能直接通过new 操作符来使用,而是应该通过spring的注解 @Autowired 来使用 必须使用在bean的实例中,例如被@Controller,@Service,@Component等注解的类里边。 方法1 @Component @Data publ 阅读全文
posted @ 2022-04-11 11:09 coder_Fish 阅读(1300) 评论(0) 推荐(0) 编辑
摘要: 在IDEA 启动项目的时候 如果报以下错误 对应的修复方案 Error running ‘Application’: Command line is too long. Shorten command line for SpringBootMainApplication or also for Ap 阅读全文
posted @ 2022-04-11 09:20 coder_Fish 阅读(321) 评论(0) 推荐(0) 编辑
摘要: idea 默认merge的提交注释信息 太长可能不符合提交规范 场景:commit后未push到云端 修改步骤: 1、使用git bush 进入vim界面,输入命令 git commit --amend 2、进入编辑模式 按键i可进入编辑模式(与vim用法相同) 3、修改注释信息,然后退出编辑模式按 阅读全文
posted @ 2021-11-30 17:04 coder_Fish 阅读(846) 评论(0) 推荐(0) 编辑
摘要: 1.JSON介绍 JSON比XML简单,主要体现在传输相同信息的情况下,文件的大小不同。 JSON只用于传输信息,XML还可以用于配置文件的使用。 JSON中的符号主要有: " , [ {: 2.JSON中的数组和对象 1.数组(JSONArray) 数组用一对[],表示存放的是一般的数组数据。 如 阅读全文
posted @ 2021-07-29 21:14 coder_Fish 阅读(4601) 评论(0) 推荐(0) 编辑