会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
qode
博客园
首页
新随笔
联系
订阅
管理
2023年10月13日
Linux防火墙firewall命令
摘要: systemctl操作firewalld 启动 # 启动 systemctl start firewalld # 关闭 systemctl stop firewalld # 重启 systemctl restart firewalld # 查看状态 systemctl status firewall
阅读全文
posted @ 2023-10-13 16:22 theSummerDay
阅读(726)
评论(0)
推荐(0)
2023年10月9日
clickhouse连接访问mysql
摘要: 创建MySQL表 创建数据库test和表t1,并向t1表中插入几条数据 CREATE database test ; use test; CREATE table t1( id int, name varchar(100) ); INSERT INTO t1 values (1, 'a'),(2,
阅读全文
posted @ 2023-10-09 21:19 theSummerDay
阅读(418)
评论(0)
推荐(0)
2023年9月13日
查看子文件夹中的文件个数及find命令解析
摘要: 查看子文件夹中的文件个数 find /home/test -type f -printf '%h\n' | sort | uniq -c /home/test 要查找的目录 -type 按文件类型查找 f:指普通文件 d:目录文件 -printf 打印输出 %h 文件目录 \n 新行 sort 排序
阅读全文
posted @ 2023-09-13 13:27 theSummerDay
阅读(498)
评论(0)
推荐(0)
2023年9月9日
@Scheduled的cron表达式
摘要: @Scheduled生效条件 启动类加上注解@EnableScheduling 定时任务的类加上注解@Component或@Service等 定时任务的方法加上注解@Scheduled cron表达式 ┌───────────── second (0-59) │ ┌───────────── min
阅读全文
posted @ 2023-09-09 11:32 theSummerDay
阅读(917)
评论(0)
推荐(0)
2023年9月2日
mysql周week函数
摘要: ## WEEK(date[,`mode`]) WEEK()函数会返回一个日期的周数,第2个参数`mode`可以指定一周是从`周日`开始还是`周一`开始,以及返回值的范围是 `[0, 53]` 还是 `[1, 53]`, 如果第2个参数缺失了,则使用系统变量`default_week_format`的
阅读全文
posted @ 2023-09-02 14:54 theSummerDay
阅读(4293)
评论(0)
推荐(1)
2023年9月1日
clickhouse周toWeek函数
摘要: ## toWeek(date[,mode]) 返回Date或DateTime的周数。两个参数形式可以指定星期是从星期日还是星期一开始,以及返回值应在0到53还是从1到53的范围内。如果省略了mode参数,则默认 模式为0。 |Mode |First day of week| Range| Week
阅读全文
posted @ 2023-09-01 16:48 theSummerDay
阅读(1462)
评论(0)
推荐(0)
2023年8月23日
MySQL表按天分区
摘要: 建表语句 要分区的字段必须为主键或联合主键之一 CREATE TABLE `test_partition` ( `id` int(11) NOT NULL AUTO_INCREMENT, `day` datetime NOT NULL, `name` varchar(20) DEFAULT NULL
阅读全文
posted @ 2023-08-23 21:55 theSummerDay
阅读(1456)
评论(0)
推荐(0)
2023年8月22日
深克隆和浅克隆的区别
摘要: [toc] # 赋值操作 ```java @Getter @Setter public class User { private String name; private Address address; } ``` ```java import lombok.Getter; import lomb
阅读全文
posted @ 2023-08-22 11:09 theSummerDay
阅读(44)
评论(0)
推荐(0)
2023年8月12日
springboot过滤器登录校验
摘要: [toc] ## 过滤器 ```java import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; import javax.servlet.Filter; import javax.serv
阅读全文
posted @ 2023-08-12 18:43 theSummerDay
阅读(212)
评论(0)
推荐(0)
springboot集成log4j2日志
摘要: [toc] ## Maven依赖 参考: https://docs.spring.io/spring-boot/docs/2.7.14/reference/htmlsingle/#howto.logging.log4j ```maven org.springframework.boot spring
阅读全文
posted @ 2023-08-12 17:40 theSummerDay
阅读(493)
评论(0)
推荐(0)
下一页
公告