- 博客(400)
- 资源 (1)
- 收藏
- 关注
原创 MySQL递归获取伞下所有ID函数
需要在MySQL数据库中配置group_concat_max_len = 4294967295函数如下:CREATE DEFINER=`root`@`%` FUNCTION `queryChilds`(`uid` varchar(32)) RETURNS longtext CHARSET utf8BEGINDECLARE sTemp LONGTEXT;DECLARE sTempChd LONGTEXT;SET sTemp = '';SET sTempChd = uid;WHILE s
2020-06-15 16:50:02 376
原创 CentOS8安装Docker
CentOS8安装Docker前言版本说明centos=8参考链接CentOS 安装 docker 官方教程:https://docs.docker.com/engine/install/centos/Docker RPM 安装包和依赖包地址 :https://download.docker.com/linux/centos/containerd.io 依赖包地址:https://download.docker.com/linux/centos/7/x86_64/stable/Packag
2020-06-10 11:01:33 484
原创 Linux安装Git
Linux安装Git参考链接https://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git-- 安装sudo yum install -y git-all-- 验证git --version
2020-06-05 15:28:08 193
原创 MySQL高级
MySQL 高级数据库优化https://dev.mysql.com/doc/refman/8.0/en/optimize-overview.html索引索引:是帮助 MySQL 高效获取数据的数据结构。索引InnoDB引擎MyISAM引擎Memory引擎BTREE索引支持支持支持HASH索引不支持不支持支持R-tree索引不支持支持不支持Full-text5.6版本之后支持支持不支持索引如果没有特别指明,都是指 B+ 树(多
2020-06-05 14:27:42 223
原创 Redis主从复制&哨兵&集群
Redis主从复制&哨兵&集群前言参考链接:https://www.bilibili.com/video/BV1CJ411m7Gc主从复制工作流程数据同步与命令传播阶段工作流程复制缓冲区:又名复制积压缓冲区,是一个先进先出的队列,用于存储服务器执行过的命令,每次传播命令,master 都会讲传播的命令记录下来,并存储在复制缓冲区;主从复制配置方式一:通过 slave 的 redis-cli 客户端发送命令slaveof <masterip> <mas
2020-05-28 16:13:49 244
原创 Redis学习笔记
Redis学习笔记前言博客书版本说明相关链接:https://www.bilibili.com/video/BV1CJ411m7GcRedis6 新特性Redis 操作结果①数据操作不成功的反馈与数据正常操作之间的差异表示运行结果是否成功(integer)0 ----> false 失败(integer)1 ----> true 成功表示运行结果值(integer)3 ----> 3(integer)1 ----> 1②数据为获取
2020-05-28 16:11:54 183
原创 SVN 提交代码后面如何修改日志信息
SVN 提交代码后面如何修改日志信息参考链接:http://www.netpc.com.cn/1086.html服务端配置服务端的操作是相当简单了,登录上服务器进入到SVN项目目录下,找到需要修改的仓库,进入当前仓库 hooks,使用如下命令操作:cp pre-revprop-change.tmpl pre-revprop-changechmod a+x pre-revprop-change这样服务端就配置完成了。客户端操作进入项目目录,点击鼠标右键,在右键菜单中选择TortoiseSVN
2020-05-25 15:30:44 3687
原创 omnicore-cli error couldn't connect to server
omnicore-cli error couldn’t connect to server解决方案# ./omnicore-cli --rpcport=8333 --rpcuser='admin' --rpcpassword='admin' 命令 ./omnicore-cli --rpcport=8333 --rpcuser='admin' --rpcpassword='admin' omn...
2020-04-28 17:20:06 497
原创 Spring的事务传播机制学录
Spring的事务传播机制学录博客书版本说明spring.boot=2.2.5.RELEASE相关链接:spring 事务官方说明:https://docs.spring.io/spring/docs/5.2.5.RELEASE/spring-framework-reference/data-access.html#spring-data-tier验证代码地址:https://gi...
2020-04-27 13:43:56 179
原创 Fastdfs客户端连接超时解决方案
参考链接https://blog.csdn.net/tjcyjd/article/details/50808740问题详情Linux服务器上安装好的 FastDFS 之后,在服务器上测试上传是没问题的,但是使用 fastdfs-client-java 上传文件的时候却报连接超时解决方案storage 的 tracker_server 地址必须是外网地址,重启 FastDFS 的 stor...
2020-04-15 08:11:40 2214
原创 FastDFS整合Nginx常见错误
FastDFS整合Nginx常见错误FastDFS和Nginx整合后浏览器400错误问题详情[2020-04-14 09:58:47] ERROR - file: ../common/fdfs_global.c, line: 52, the format of filename "group1/M00/00/00/rB-HpV6VFaCAZ4JLAABHwY-HwJ0293_big.jpg"...
2020-04-14 10:04:26 1983
原创 Springboot集成WebSocket
Springboot集成WebSocket前言博客书版本说明spring-boot-starter-parent=2.2.4.RELEASE相关链接:spring-boot-starter-websocket : https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-webso...
2020-03-30 18:42:06 335
原创 亚马逊云服务器使用密码登录
亚马逊云服务器使用密码登录使用 PEM 登录使用PEM登陆后,执行重置 root 用户密码sudo passwd root修改 SSH 配置# 查找 PasswordAuthentication,将 PasswordAuthentication no 修改为: PasswordAuthentication yesvi /etc/ssh/sshd_config启动 SSH 服务...
2020-03-24 18:45:37 4137
原创 SpringBoot项目实现配置分离
SpringBoot项目实现配置分离前言博客书版本说明spring-boot=2.2.5.RELEASE相关链接实现原理SpringBoot 项目读取配置文件顺序:(可用于实现伪配置文件分离)当前项目config目录下 > 当前项目根目录下 > 类路径config目录下 > 类路径根目录下pom 配置<?xml version="1.0" encodi...
2020-03-20 17:57:06 843
原创 互联网公司开发那些事
互联网公司开发那些事前言博客书版本说明相关链接前后端交互设计前后端时间使用时间戳查询设计查询应该有分页、排序查询查询必须注意是否逻辑删除更新设计更新数据,必须先查询在更新数据删除设计删除数据,为逻辑删除数据接口统一返回接口统一返回数据库设计数据库设计...
2020-03-20 17:21:19 214
原创 互联网公司数据库设计
互联网公司数据库设计前言博客书版本说明相关链接数据库设计`is_delete` tinyint unsigned default 1 comment '该条记录是否删除,1 表示是,0 表示否',`creator` varchar(255) not null comment '创建人',`create_time` datetime not null default now() ...
2020-03-20 17:16:03 411
原创 互联网公司接口统一返回
互联网公司接口统一返回前言博客书版本说明spring-boot=2.2.5.RELEASE相关链接lombok 官网:https://projectlombok.org/接口统一返回CommonResponsepackage com.tixonlife.response;import lombok.AllArgsConstructor;import lombok.Da...
2020-03-20 17:12:19 220
原创 Kali防火墙ufw安装与命令
Kali防火墙ufw安装与命令前言博客书版本说明linux.kali=kali-linux-2020.1a-installer-amd64.iso相关链接安装 ufw 防火墙apt-get install ufwufw 防火墙命令ufw status :检查防火墙的状态(默认 inactive)ufw version :查看 ufw 防火墙版本ufw enable :启...
2020-03-19 23:03:31 4900
原创 kali开启ssh22端口服务
kali开启ssh22端口服务前言博客书版本说明linux.kali=kali-linux-2020.1a-installer-amd64.iso相关链接:Kali 官网:https://www.kali.org/Kali 下载地址:https://www.kali.org/downloads/kali开启ssh22端口服务编辑 /etc/ssh/sshd_config 配...
2020-03-19 22:48:07 3931
原创 knife4j学习笔记
knife4j学习笔记前言博客书版本说明knife4j-spring-boot-starter=2.0.2相关链接官方文档:https://doc.xiaominfo.com/guide/maven 地址:https://mvnrepository.com/artifact/com.github.xiaoymin/knife4j-spring-boot-startergithu...
2020-03-19 17:01:02 3731 3
原创 SpringBoot项目多环境、配置和依赖分离打包
SpringBoot项目多环境、配置和依赖分离打包前言博客书版本说明spring-boot=2.2.5.RELEASE相关链接:实战说明pom 依赖<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:...
2020-03-19 15:52:14 772
原创 Linux 挂载新硬盘
Linux 挂载新硬盘前言博客书版本说明linux=Amazon Linux 2 AMI相关链接步骤查看分区格式化挂载查看挂载配置重启系统再测试查看# 查看硬盘fdisk -l示例[root@ip-172-31-19-85 ec2-user]# fdisk -lDisk /dev/nvme1n1: 500 GiB, 536870912000 bytes...
2020-03-10 10:29:02 488
原创 SpringBoot项目无法将配置文件中的值注入到静态变量中解决方案
SpringBoot项目无法将配置文件中的值注入到静态变量中解决方案package club.yueshe.pangu.config;import lombok.Data;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.beans.factory.annota...
2020-02-26 17:42:00 831
原创 /etc/profile新配置在新终端无法生效
/etc/profile新配置在新终端无法生效问题详情vim /etc/profile 添加配置,执行 source /etc/profile 是使之生效。当前终端下配置确时是生效,但打开新的终端会发现无法生效;再次执行 source /etc/profile 配置再次生效,但打开新的终端会发现无法生效;解决方案编辑 vim ~/.bash最后一行添加 source /etc...
2020-02-24 23:35:58 1800 5
原创 Linux修改服务器时区
Amazon修改服务器时区# 备份mv /etc/localtime /etc/localtime.bak # 在此 /usr/share/zoneinfo 目录下对应的时区代表城市cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
2020-02-24 23:25:13 648
原创 电脑故障由于其配置信息(注册表中的)不完整或已损坏,Windows 无法启动这个硬件设备. (代码 19)
(电脑故障由于其配置信息(注册表中的)不完整或已损坏,Windows 无法启动这个硬件设备. (代码 19)前言博客书版本说明windows=10问题问题详情打开 控制面板 ,选择查看方式为 大图标 ,找到并点击 键盘 ,进入键盘属性,点击 硬件 ,可以查看到 电脑故障由于其配置信息(注册表中的)不完整或已损坏,Windows 无法启动这个硬件设备. (代码 19)解决方案打...
2020-02-19 12:06:33 11124 8
原创 JS字符串判断为空
JS 字符串判断为空前言博客书版本说明相关链接示例 /** * true 表示为空, false 表示不为空 */ function isEmpty(obj){ if(typeof obj == "undefined" || obj == null || obj == ""){ return true; ...
2020-02-18 17:45:27 185 1
原创 LayDate初始化不确定值
LayDate 初始化不确定值前言博客书版本说明相关链接示例laydate.render({ elem: '#effectiveTimeEnd', type: 'datetime', value: new Date((new Date()).setMonth((new Date()).getMonth()+12)), ...
2020-02-18 17:16:35 525 1
原创 Linux系统前世今生
参考链接:https://futurist.se/gldt/wp-content/uploads/12.10/gldt1210.svg
2020-02-14 22:30:06 334
原创 Redis连接问题
Redis 连接问题前言博客书版本说明相关链接问题问题详情org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: MISCONF Redis is con...
2020-02-11 21:23:39 212
原创 Nginx命令加入系统变量中
Nginx命令加入系统变量中前言博客书版本说明相关链接详细说明需要把 nginx 所在的目录加入系统变量中编辑系统变量文件vim /etc/profile在文件最后中添加如下内容# /usr/local/nginx/sbin 是 Nginx sbin目录PATH=$PATH:/usr/local/nginx/sbinexport PATH保存并退出执行 sour...
2020-02-08 12:31:58 1018
原创 MySQL安装遇到的问题
MySQL安装遇到的问题前言博客书版本说明linux=Amazon LinuxMySQL=mysql-8.0.18-linux-glibc2.12-x86_64相关链接:libtinfo.so.5 下载链接:链接:https://share.weiyun.com/5DmJHXW 密码:z92fxn问题问题详情./mysql: error while loading sha...
2020-02-06 18:14:41 198
原创 SpringBoot集成AOP学习笔记
SpringBoot集成AOP学习笔记前言博客书版本说明spring.boot=2.2.3.RELEASE相关链接总的说明无异常执行顺序:around before ——> before ——> 拦截的方法 ——> around after ——> after ——> afterReturning有异常执行顺序:around before ——&...
2020-01-19 18:19:05 256
原创 SpringSecurity学习笔记
SpringSecurity学习笔记前言博客书版本说明platform-bom=Cairo-SR7spring-cloud-dependencies=Finchley.SR4相关链接SpringSecurity 官网: https://spring.io/projects/spring-securitySpringSecurity 官方文档: https://docs.spri...
2019-12-31 10:45:54 856
原创 Vue操作Cookie
Vue操作Cookie前言博客书版本说明相关链接工具地址:https://www.npmjs.com/package/js-cookiejs-cookie 下载地址:https://github.com/js-cookie/js-cookie/blob/latest/src/js.cookie.js实战演练引入js-cookie 下载地址:https://github.c...
2019-12-30 21:20:54 211 1
原创 MySQL collate的选择
MySQL collate的选择前言博客书版本说明mysql=8.0.17相关链接:https://dev.mysql.com/doc/refman/8.0/en/charset-unicode-sets.html_general_ci 与 _unicode_ci 归类对于任何Unicode字符集,使用xxx_general_ci 归类执行的操作都比 xxx_unicode_...
2019-12-29 09:27:58 918 1
原创 springboot项目运行正常,打包说找不到符号
springboot项目运行正常,打包说找不到符号<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <!--添加此配置即可...
2019-12-23 22:05:03 3116
原创 MyCat学习笔记
MyCat学习笔记前言博客书版本说明linux.centos=7mycat.linux=Mycat-server-1.6.7.4-test-20191113141017-linux相关链接MyCat 官网:http://www.mycat.io/MyCat 下载地址:http://dl.mycat.io/实战演练及配置说明下载安装后,进入 conf 目录下进行配置ser...
2019-12-22 11:27:11 625
原创 MyCat下载与安装
MyCat下载与安装前言博客书版本说明linux.centos=7windows=10mycat.linux=Mycat-server-1.6.7.4-test-20191113141017-linuxmycat.win=Mycat-server-1.6.7.3-release-20190927161129-win相关链接MyCat 官网:http://www.mycat.i...
2019-12-21 09:00:49 2323
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人