04 2021 档案

摘要:1. 计数器表 案例:网站访问数记录 正常一张表一个字段就可以解决这个问题。 create table tcount (cnt int) ; 通过左边语句更新: update tcount set cnt = cnt+1 ; 当大型网站并发量很大的时候,这个更新是低效的。因为update操作需要获取 阅读全文
posted @ 2021-04-26 15:31 加速丨世界 阅读(244) 评论(0) 推荐(1) 编辑
摘要:前言 为了排查问题等一些原因需要查看Spring容器中Bean的使用情况,所以程序运行的过程中需要获取Bean的信息。 代码演示 @Component public class BeanUtil implements ApplicationContextAware { private Applica 阅读全文
posted @ 2021-04-20 20:01 加速丨世界 阅读(449) 评论(0) 推荐(0) 编辑
摘要:正则表达式:(-|\\+)?([1-9]\\d*\\.?\\d*)|(0\\.\\d*[0-9]) 案例: public class NumberUtil { /** * 判断是否为数字 * @param str * @return */ public static boolean isDecima 阅读全文
posted @ 2021-04-12 17:07 加速丨世界 阅读(176) 评论(0) 推荐(0) 编辑
摘要:前言 为了更加学习Java 虚拟机的知识,于是决定重新学习C语言知识。 第一个程序 #include <stdio.h> int main() { printf("Hello world!\n"); return 0; } 运行结果: 改变一下输出方式: #include <stdio.h> int 阅读全文
posted @ 2021-04-06 22:23 加速丨世界 阅读(263) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示