<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[cxyrfg的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/cxyrfg</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; cxyrfg]]></copyright><item><title><![CDATA[mysql事件定时插入数据]]></title><link>https://blog.csdn.net/cxyrfg/article/details/120202193</link><guid>https://blog.csdn.net/cxyrfg/article/details/120202193</guid><author>cxyrfg</author><pubDate>Thu, 09 Sep 2021 16:18:38 +0800</pubDate><description><![CDATA[开启事件
查看是否开启：
show variables like 'event_scheduler';


如果显示OFF,则输入以下语句开启：
set global event_scheduler = on;

提醒：set global event_scheduler = on语句开启事件，重启mysql服务后，配置失效，通过my.ini配置文件的[mysqld]部分加上event_scheduler=ON 即可保证重启不失效，如下：
创建事件
测试表
drop table if EXISTS t_ev]]></description><category></category></item><item><title><![CDATA[mysql中通过存储过程和游标来实现循环插入数据]]></title><link>https://blog.csdn.net/cxyrfg/article/details/120197780</link><guid>https://blog.csdn.net/cxyrfg/article/details/120197780</guid><author>cxyrfg</author><pubDate>Thu, 09 Sep 2021 11:43:38 +0800</pubDate><description><![CDATA[**需求：**根据条件从一个表（后称为A）中查询符合条件的结果集，根据表A的结果集循环插入到另一个表（后称为B）中，
解决SQL：
drop procedure if exists handle_data; # 如果存在名字为handle_data的procedure则删除
delimiter // # 定义//为一句sql的结束标志，取消;的所代表的意义
#声明存储过程handle_data（）
CREATE PROCEDURE handle_data ( ) 
  # 存储过程开始
  BEGIN
  ]]></description><category></category></item><item><title><![CDATA[springboot启动项目时自动启动swaggerUI.html页面]]></title><link>https://blog.csdn.net/cxyrfg/article/details/120019234</link><guid>https://blog.csdn.net/cxyrfg/article/details/120019234</guid><author>cxyrfg</author><pubDate>Tue, 31 Aug 2021 16:12:26 +0800</pubDate><description><![CDATA[1.首先我们得在maven添加swaggerUI依赖（在pom.xml文件中）
&lt;dependency&gt;
            &lt;groupId&gt;io.springfox&lt;/groupId&gt;
            &lt;artifactId&gt;springfox-swagger2&lt;/artifactId&gt;
            &lt;version&gt;2.2.2&lt;/version&gt;
        &lt;/dependency&]]></description><category></category></item><item><title><![CDATA[Navicat Premiu工具常用快捷键]]></title><link>https://blog.csdn.net/cxyrfg/article/details/120007030</link><guid>https://blog.csdn.net/cxyrfg/article/details/120007030</guid><author>cxyrfg</author><pubDate>Mon, 30 Aug 2021 23:19:38 +0800</pubDate><description><![CDATA[Navicat Premium一些常用快捷键，
验证快捷键的sql版本：

常用快捷键：
“井号”# 是注释作用，
"-- "(注意有空格)也是注释作用
F6: 打开一个mysql命令行窗口
Tab 向右缩进
Shift+Tab 向左缩进
ctrl+q 打开查询窗口
ctrl+n 如果在查询界面执行该快捷键，打开一个新的查询窗口，如果在其他功能页面，则是打开相应功能的新建窗口
ctrl+w 关闭当前查询窗口
ctrl+r 或 ctrl+shift+r  如果有选中的SQL语句，则运行选中的语句，否则运行当前]]></description><category></category></item><item><title><![CDATA[killall command not found]]></title><link>https://blog.csdn.net/cxyrfg/article/details/119484751</link><guid>https://blog.csdn.net/cxyrfg/article/details/119484751</guid><author>cxyrfg</author><pubDate>Sat, 07 Aug 2021 12:42:38 +0800</pubDate><description><![CDATA[killall: command not found
报错：
执行killall命令时提示：-bash: killall: command not found 没有killall命令

解决办法：
1.在centos下
yum  install  psmisc


2. debian、ubuntu系统下
apt-get install psmisc

3.使用
​     killall命令用于杀死指定名字的进程（kill processes by name）,即结束同名的的所有进程。在使用kill命令终止]]></description><category></category></item><item><title><![CDATA[CentOS 7 修改默认启动内核]]></title><link>https://blog.csdn.net/cxyrfg/article/details/119484689</link><guid>https://blog.csdn.net/cxyrfg/article/details/119484689</guid><author>cxyrfg</author><pubDate>Sat, 07 Aug 2021 12:39:35 +0800</pubDate><description><![CDATA[CentOS 7 修改默认启动内核
步骤一：cat /boot/grub2/grub.cfg |grep menuentry命令查看当前操作系统有几个系统内核所有的内核

步骤二：grub2-editenv list命令查看系统当前的默认内核，也可以使用uname -r查看，当前内核是CentOS Linux (3.10.0-1160.15.2.el7.x86_64) 7 (Core)

步骤三：使用命令grub2-set-default 'CentOS Linux (5.4.101-1.el7.elrep]]></description><category></category></item><item><title><![CDATA[java.sql.SQLException Unable to load authentication plugin ‘caching_sha2_password‘]]></title><link>https://blog.csdn.net/cxyrfg/article/details/119484632</link><guid>https://blog.csdn.net/cxyrfg/article/details/119484632</guid><author>cxyrfg</author><pubDate>Sat, 07 Aug 2021 12:35:40 +0800</pubDate><description><![CDATA[java.sql.SQLException: Unable to load authentication plugin ‘caching_sha2_password’
微服务连接MySQL8.0报错：
java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'

分析：
5.x版本是：default_authentication_plugin=mysql_native_password
8.x版本就是]]></description><category></category></item><item><title><![CDATA[docker报错Job for docker.service failed because the control process exited with error code]]></title><link>https://blog.csdn.net/cxyrfg/article/details/119484612</link><guid>https://blog.csdn.net/cxyrfg/article/details/119484612</guid><author>cxyrfg</author><pubDate>Sat, 07 Aug 2021 12:34:30 +0800</pubDate><description><![CDATA[Docker服务启动报错Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.
报错信息：

使用命令: systemctl status docker.service
查看启动信息如下状态信息:

解决：
优先考虑docker配置文件/daemon.json]]></description><category></category></item><item><title><![CDATA[Java的几种常见排序算法]]></title><link>https://blog.csdn.net/cxyrfg/article/details/119450746</link><guid>https://blog.csdn.net/cxyrfg/article/details/119450746</guid><author>cxyrfg</author><pubDate>Fri, 06 Aug 2021 11:33:47 +0800</pubDate><description><![CDATA[一、描述
​		所谓排序，就是使一串记录，按照其中的某个或某些关键字的大小，递增或递减的排列起来的操作。排序算法，就是如何使得记录按照要求排列的方法。排序算法在很多领域得到相当地重视，尤其是在大量数据的处理方面。一个优秀的算法可以节省大量的资源。在各个领域中考虑到数据的各种限制和规范，要得到一个符合实际的优秀算法，得经过大量的推理和分析。
二、排序算法可以分为内部排序和外部排序。
内部排序是数据记录在内存中进行排序。
外部排序是因排序的数据很大，一次不能容纳全部的排序记录，在排序过程中需要访问外存。
常见的]]></description><category></category></item><item><title><![CDATA[解决ftp登录问题：500 OOPS: cannot change directory:/home/xxx 500 OOPS: child died]]></title><link>https://blog.csdn.net/cxyrfg/article/details/119450524</link><guid>https://blog.csdn.net/cxyrfg/article/details/119450524</guid><author>cxyrfg</author><pubDate>Fri, 06 Aug 2021 11:16:44 +0800</pubDate><description><![CDATA[问题描述：在使用 ftp 进行远程连接时，出现错误：500 OOPS: cannot change directory:/home/xxx 500 OOPS: child died

错误如图所示：



　　解决步骤如下：

1.检查/home/cong 的权限

　　若其权限不可访问不可读写，则将其权限设为：chmod 777 cong，再重新连接

2.若还出现错误，检查ftp的服务状态：

　　setstatus -b | grep ftp



由上图可知， 其ftp_home_dir的状态为of]]></description><category></category></item><item><title><![CDATA[设计模式原则详解]]></title><link>https://blog.csdn.net/cxyrfg/article/details/115860862</link><guid>https://blog.csdn.net/cxyrfg/article/details/115860862</guid><author>cxyrfg</author><pubDate>Mon, 19 Apr 2021 11:29:50 +0800</pubDate><description><![CDATA[&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; 我们在应用程序开发中，一般要求尽量两做到可维护性和可复用性。 &nbsp; &nbsp; &nbsp; &nbsp; 应用程序的复用可以提高应用程序的开发效率和质量，节约开发成本，恰当的复用还可以改善系统的可维护性。而在面向对象的设计里面，可维护性复用都是以面向对象设计原则为基础的，这些设计原则首先都是复用的原则，遵循这些设计...]]></description><category></category></item><item><title><![CDATA[下载JDK如何跳过登录]]></title><link>https://blog.csdn.net/cxyrfg/article/details/113043393</link><guid>https://blog.csdn.net/cxyrfg/article/details/113043393</guid><author>cxyrfg</author><pubDate>Sat, 23 Jan 2021 13:41:58 +0800</pubDate><description><![CDATA[好久没有下载JDK了，毕竟这种东西也不会经常下载，今天下载的时候突然间发现需要登录才可以下载，而且还必须填写公司名称等
找到了一个网站，使用上面的账号成功下载，记一下
这个
http://bugmenot.com/view/oracle.com

...]]></description><category></category></item><item><title><![CDATA[CSDN专属idea插件上线啦~~]]></title><link>https://blog.csdn.net/cxyrfg/article/details/112978169</link><guid>https://blog.csdn.net/cxyrfg/article/details/112978169</guid><author>cxyrfg</author><pubDate>Fri, 22 Jan 2021 10:02:23 +0800</pubDate><description><![CDATA[1.插件介绍 
CSDN的idea插件CSDN tools（以下简称tools），tools整合了日常开发中常用的工具，提高开发效率。 
顺便安利下我司的Chrome插件，不要太好使，根本停不下来.jpg 
&nbsp; &nbsp; 插件主要功能：（小伙伴们有啥想要的功能，尽管砸过来，我们在群里等着你，群地址在文末） 
json格式化时间格式化ip查询计算器CSDN平台搜索github仓库搜索maven仓库依赖搜索常用文档检索单词翻译看新闻代码查询二维码生成
2....]]></description><category></category></item><item><title><![CDATA[史上最全设计模式导学目录（完整版）]]></title><link>https://blog.csdn.net/cxyrfg/article/details/112909132</link><guid>https://blog.csdn.net/cxyrfg/article/details/112909132</guid><author>cxyrfg</author><pubDate>Wed, 20 Jan 2021 19:45:12 +0800</pubDate><description><![CDATA[基础知识 
设计模式概述 
从招式与内功谈起——设计模式概述（一）：设计模式从何而来？ 
从招式与内功谈起——设计模式概述（二）：设计模式是什么？ 
从招式与内功谈起——设计模式概述（三）：设计模式有什么用？附：个人观点 
&nbsp; 
面向对象设计原则 
面向对象设计原则概述 
面向对象设计原则之单一职责原则 
面向对象设计原则之开闭原则 
面向对象设计原则之里氏代换原则 
面向对象设计原则之依赖倒转原则 
面向对象设计原则之接口隔离原则 
面向对象设计原则之合成复用原则 ...]]></description><category></category></item><item><title><![CDATA[【maven】在PowerShell窗口下执行maven命令行报错：Unknown lifecycle phase “.test.skip=true“.]]></title><link>https://blog.csdn.net/cxyrfg/article/details/112850399</link><guid>https://blog.csdn.net/cxyrfg/article/details/112850399</guid><author>cxyrfg</author><pubDate>Tue, 19 Jan 2021 19:39:13 +0800</pubDate><description><![CDATA[在PowerShell窗口下执行maven命令行报错：Unknown lifecycle phase “.test.skip=true”
1.错误信息如下：
Unknown lifecycle phase “.test.skip=true”. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, gen]]></description><category></category></item><item><title><![CDATA[springboot整合使用Apollo配置中心]]></title><link>https://blog.csdn.net/cxyrfg/article/details/112838980</link><guid>https://blog.csdn.net/cxyrfg/article/details/112838980</guid><author>cxyrfg</author><pubDate>Tue, 19 Jan 2021 15:26:29 +0800</pubDate><description><![CDATA[1.创建C:\opt\settings\server.properties目录，并填写内容【env=DEV】 
2.创建springboot 项目 版本1.5.17.RELEASE 
3.添加Apollo依赖 
&lt;!--apollo相关jar包--&gt;&lt;dependency&gt;	&lt;groupId&gt;com.ctrip.framework.apollo&lt;/groupId&gt;	&lt;artifactId&gt;apollo-cl...]]></description><category></category></item><item><title><![CDATA[springBoot打包报错（Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile ）]]></title><link>https://blog.csdn.net/cxyrfg/article/details/109017817</link><guid>https://blog.csdn.net/cxyrfg/article/details/109017817</guid><author>cxyrfg</author><pubDate>Sun, 11 Oct 2020 22:04:29 +0800</pubDate><description><![CDATA[一：项目结构介绍
①：整体结构一个父pom，两个子pom

②：父pom
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://mav]]></description><category></category></item><item><title><![CDATA[Stream将List转为Map汇总]]></title><link>https://blog.csdn.net/cxyrfg/article/details/108387967</link><guid>https://blog.csdn.net/cxyrfg/article/details/108387967</guid><author>cxyrfg</author><pubDate>Thu, 03 Sep 2020 17:06:22 +0800</pubDate><description><![CDATA[Stream将List转换为Map，使用Collectors.toMap方法进行转换。
背景：User类，类中分别有id，name,age三个属性。List集合,userList，存储User对象
&nbsp;
1、指定key-value，value是对象中的某个属性值。
&nbsp;Map&lt;Integer,String&gt; userMap1 = userList.stream().collect(Collectors.toMap(User::getId,User::getName));...]]></description><category></category></item><item><title><![CDATA[JSR-330 ‘javax.inject.Inject‘ annotation found and supported for autowiring]]></title><link>https://blog.csdn.net/cxyrfg/article/details/108381562</link><guid>https://blog.csdn.net/cxyrfg/article/details/108381562</guid><author>cxyrfg</author><pubDate>Thu, 03 Sep 2020 14:03:42 +0800</pubDate><description><![CDATA[JSR-330 ‘javax.inject.Inject’ annotation found and supported for autowiring
近期碰到一个bug 项目启动卡住啦

可能是有一个断点卡住啦项目


]]></description><category></category></item><item><title><![CDATA[Java8新特性Stream详解]]></title><link>https://blog.csdn.net/cxyrfg/article/details/107063950</link><guid>https://blog.csdn.net/cxyrfg/article/details/107063950</guid><author>cxyrfg</author><pubDate>Wed, 01 Jul 2020 14:57:52 +0800</pubDate><description><![CDATA[JDK8新特性：stream详解1 基本特性1.1 流的特性1.2 创建Stream2 流API详述2.1 BaseStream详述2.2 Stream详述3 常...]]></description><category></category></item></channel></rss>