- 博客(13)
- 资源 (19)
- 收藏
- 关注
原创 java实现输入流写入文件
(1)一般的java代码@Testpublic void whenConvertingToFile_thenCorrect() throws IOException { InputStream initialStream = new FileInputStream( new File("src/main/resources/sample.txt")); byte[] buffer = new byte[initialStream.available()]; .
2020-12-30 10:33:37 2522
原创 linux disk commands
mount: mount filesystem mount: list current mounted file system device on mount_point type filesystem mkdir /mnt/cdrom ## create a mount_point mount -t [filesystem] /dev/sdc /mnt/cdrom umount: remove filesystem umount /dev/sdcfdisk: d.
2020-12-16 07:40:23 132
原创 k8s命令汇总
登录某个容器:kubectl exec -i -t -n iot-ns task-jx-spring-0 -c jx-spring "--" sh -c "clear; (bash || ash || sh)"
2020-12-14 15:43:22 250
原创 解决springboot应用中文乱码
(1)yaml配置中添加如下属性application.properties配置文件中添加如下属性: spring: http: encoding: force: true charset: UTF-8 enabled: true server: tomcat: uri-encoding: UTF-8(2).
2020-12-14 15:43:13 454 1
原创 mysql模拟MINUS
SELECT * FROM suppliers_1_md5MINUSselect * FROM suppliers_2_md5;The where clause picks null values in SupplierID in Table 2, which limits to rows exist in Table 1 only.SELECT select_listFROM table1LEFT JOIN table2 ON join_predica.
2020-12-10 17:55:50 195
原创 kernel build procedure
sudo apt-get install libncurses5-dev gcc make git exuberant-ctags bc libssl-dev --- Ubuntusudo yum install gcc make git ctags ncurses-devel openssl-devel --- Centossudo zypper in git gcc ncurses-devel libopenssl-devel ctags cscope --- SUSEWhich.
2020-12-09 22:34:39 136
原创 GNU GRUB Boot
1: GRUB how boot the OS ? 2 ways to boot; (1) load OS directly; (2) chain-load other boot loader to load OS; Multiboot is native supported by GRUB , support for linux, FreeBSD, OpenBSDsearch --set=boot --file /vmlinuz linux /vmlinuz root=/dev/sda1l...
2020-12-08 23:09:54 187
原创 GNU GRUB Installation
GNU GRUB is aMultibootboot loader: aboot loaderis the first software program that runs when a computer starts. It is responsible for loading and transferring control to the operating systemkernelsoftware .Documentation:(1) Install grubgrub-ins...
2020-12-08 23:00:25 122
原创 xxl-job的cron表达式详解
一丶xxl-job的表达式由7个部分组成,例如:注:/与5算是一个整体秒数 分钟 小时 日期 月份 星期 年份(可为空)}*/5 * * * * ?二丶各个位置的取值范围,看上面的小例子,应该都能想到了,从前往后对应,分别为:秒 0-59 , - * / 分 0-59 , - * / 小时 0-23 , - * / 日期 1-31 , - * ? / L W C 月份 1-12 或者 JAN-DEC , - * / 可以用0-11 或用字符串 “JAN, FEB, M
2020-12-05 13:06:03 10491
原创 springboot项目中路径解析
FileSystemResourceLoader类实现了路径解析功能;支持以绝对路径/和classpath:为开头的路径解析;@Beanpublic ResourceLoader resourceLoader(){ return new FileSystemResourceLoader();}FileSystemResourceLoader.getResource(jobConfig.fileRoot).getURL().getPath(); 实现classpath路径转换为绝对路径;
2020-12-05 11:15:04 446
原创 centos安装docker脚本
#!/bin/bash#author: MonsterTan#date: 2019-01-15#this is a script that can install automatically docker software by centos7function checkSudo (){ if [ $UID -ne 0 ];then echo -e 'it must be root!' exit 1 f.
2020-12-03 21:18:26 172
percona-server-server_8.0.20-11-1.bionic_amd64.deb
2020-09-23
percona-server-client_8.0.20-11-1.bionic_amd64.deb
2020-09-23
percona-server-common
2020-09-23
mindmaster-7-amd64.deb
2019-12-06
MathLab2011b破解文件
2013-09-07
cygwin(Linux console 在Windows64下的版本)
2013-09-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人