2020年11月4日

centos65 编译gcc-4.9.4

摘要: # gcc依赖 yum install gmp-devel mpfr-devel wget ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-0.8.1.tar.gz tar zxvf mpc-0.8.1.tar.gz cd mpc-0.8.1 & make 阅读全文

posted @ 2020-11-04 09:59 WillingCPP 阅读(212) 评论(0) 推荐(0)

2020年10月29日

mybatis-plus 读取JSON类型

摘要: 本文总共三个步骤: 1、在数据库表定义JSON字段; 2、在实体类加上@TableName(autoResultMap = true)、在JSON字段映射的属性加上@TableField(typeHandler = FastjsonTypeHandler.class); FastjsonTypeHa 阅读全文

posted @ 2020-10-29 14:36 WillingCPP 阅读(2597) 评论(1) 推荐(0)

iptables 相关

摘要: 执行iptables 命令是马上奇效, 不需要重启 /etc/sysconfig/iptables #1. 查看、重启、关闭 iptables -L -n --line-number //查看 vi /etc/sysconfig/iptables //查看 service iptables save 阅读全文

posted @ 2020-10-29 14:06 WillingCPP 阅读(193) 评论(0) 推荐(0)

2020年10月28日

springboot LocalDateTime,Json数据序列化 (jackson)

摘要: 1. 逻辑说明 spring程序启动后会自动创建对象转换工具org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter 根据能找到的java解析json包来依次处理 jaxb2Present = 阅读全文

posted @ 2020-10-28 16:07 WillingCPP 阅读(2421) 评论(0) 推荐(0)

docker 常用

摘要: 1. copy 文件 是否启动都有效 //查看容器名称 docker ps docker ps -a //包含关闭 // 容器=>主机 //docker cp 容器名: 要拷贝的文件在容器里面的路径 要拷贝到宿主机的相应路径 docker cp testtomcat:/usr/local/tomca 阅读全文

posted @ 2020-10-28 15:44 WillingCPP 阅读(91) 评论(0) 推荐(0)

2020年10月26日

vue-cli 的静态资源

摘要: src/assets 通过相对路径被引入,这类引用会被webpack处理, 经过编译 background: url('./image.png'); => require('./image.png') <img src='./image.png'/> => h('img', {attrs : {sr 阅读全文

posted @ 2020-10-26 18:08 WillingCPP 阅读(138) 评论(0) 推荐(0)

2020年10月19日

ubuntu 恢复模式

摘要: 进入 开机按住esc 或者 tab+shift 模式说明 resume: 退出 recovery 模式,然后正常启动; clean: 尝试清理垃圾文件,腾出更多的空间; dpkg: 修复损坏的包; fsck: 检查所有文件系统; grub: 更新 grub 的启动载入器; network: 启动网络 阅读全文

posted @ 2020-10-19 14:41 WillingCPP 阅读(3188) 评论(0) 推荐(0)

virtualbox

摘要: 1. 共享文件夹:share文件夹作为共享文件夹(即 at, 挂载于)。进入虚拟机,共享文件夹的地址是/media/sf_share。 需要安装增强工具 2. 共享文件夹没有访问权限问题 原因: 共享文件夹的属性,发现该目录的所有者是root,所属组是vboxsf //将当前用户加入`vboxsf` 阅读全文

posted @ 2020-10-19 14:37 WillingCPP 阅读(94) 评论(0) 推荐(0)

2020年10月15日

cmake 使用tips

摘要: 1. 标准执行顺序 mkdir ./build & cd ./build & cmake ../ #生成makefile项目 mkdir ./xcode & cd ./xcode & cmake ../ -GXcode #生成 xcode项目 2. 更改和查看自定义变量 mkdir ./build 阅读全文

posted @ 2020-10-15 09:52 WillingCPP 阅读(87) 评论(0) 推荐(0)

2020年10月12日

VLC播放pcm

摘要: /Applications/VLC.app/Contents/MacOS/VLC --demux=rawaud --rawaud-channels 1 --rawaud-samplerate 48000 --rawaud-fourcc "s8 " /Users/lz/audio.pcm https: 阅读全文

posted @ 2020-10-12 14:45 WillingCPP 阅读(988) 评论(0) 推荐(0)

导航