<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[GoodIdea]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/qq_36838191</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; qq_36838191]]></copyright><item><title><![CDATA[group by优化]]></title><link>https://blog.csdn.net/qq_36838191/article/details/132897685</link><guid>https://blog.csdn.net/qq_36838191/article/details/132897685</guid><author>qq_36838191</author><pubDate>Fri, 15 Sep 2023 11:05:00 +0800</pubDate><description><![CDATA[因为它既用到，又默认用到。有时候还可能用到。慢sql的原因:如果执行过程中，会发现内存临时表大小到达了（控制这个上限的参数就是），会把。如果数据量很大，很可能这个查询需要的磁盘临时表，就会占用大量的磁盘空间。]]></description><category></category></item><item><title><![CDATA[mysql 优化例子]]></title><link>https://blog.csdn.net/qq_36838191/article/details/132883356</link><guid>https://blog.csdn.net/qq_36838191/article/details/132883356</guid><author>qq_36838191</author><pubDate>Thu, 14 Sep 2023 17:15:27 +0800</pubDate><description><![CDATA[优化思路就是，先通过idx_create_time二级索引树查询到满足条件的主键ID，再与原表通过主键ID内连接，这样后面直接走了主键索引了，同时也减少了回表。这样的话，后面无论翻多少页，性能都会不错的，因为命中了id索引。，是B+树的普通索引，如果查询条件传了一个。隐式的类型转换，索引失效。过去，会导致索引失效。]]></description><category></category></item><item><title><![CDATA[springBeanUtils的copyProperties]]></title><link>https://blog.csdn.net/qq_36838191/article/details/132773644</link><guid>https://blog.csdn.net/qq_36838191/article/details/132773644</guid><author>qq_36838191</author><pubDate>Sat, 09 Sep 2023 09:47:36 +0800</pubDate><description><![CDATA[List<?]]></description><category></category></item><item><title><![CDATA[抽象工厂模式:其他工厂的工厂]]></title><link>https://blog.csdn.net/qq_36838191/article/details/126203651</link><guid>https://blog.csdn.net/qq_36838191/article/details/126203651</guid><author>qq_36838191</author><pubDate>Sun, 07 Aug 2022 00:29:57 +0800</pubDate><description><![CDATA[设计模式]]></description><category></category></item><item><title><![CDATA[工厂模式设计思路]]></title><link>https://blog.csdn.net/qq_36838191/article/details/126199437</link><guid>https://blog.csdn.net/qq_36838191/article/details/126199437</guid><author>qq_36838191</author><pubDate>Sat, 06 Aug 2022 23:58:25 +0800</pubDate><description><![CDATA[工厂设计模式]]></description><category></category></item><item><title><![CDATA[依赖导致原则改善代码]]></title><link>https://blog.csdn.net/qq_36838191/article/details/126198998</link><guid>https://blog.csdn.net/qq_36838191/article/details/126198998</guid><author>qq_36838191</author><pubDate>Sat, 06 Aug 2022 18:21:37 +0800</pubDate><description><![CDATA[设计模式设计原理。]]></description><category></category></item><item><title><![CDATA[设计模式设计理念:接口隔离]]></title><link>https://blog.csdn.net/qq_36838191/article/details/126188595</link><guid>https://blog.csdn.net/qq_36838191/article/details/126188595</guid><author>qq_36838191</author><pubDate>Sat, 06 Aug 2022 02:23:58 +0800</pubDate><description><![CDATA[设计模式设计原则]]></description><category></category></item><item><title><![CDATA[DateTimeFormat放到@RequestBody下是无效的]]></title><link>https://blog.csdn.net/qq_36838191/article/details/125442269</link><guid>https://blog.csdn.net/qq_36838191/article/details/125442269</guid><author>qq_36838191</author><pubDate>Fri, 24 Jun 2022 11:29:05 +0800</pubDate><description><![CDATA[springBoot 时间注解使用。]]></description><category></category></item><item><title><![CDATA[Git worktree 使用笔记]]></title><link>https://blog.csdn.net/qq_36838191/article/details/124230726</link><guid>https://blog.csdn.net/qq_36838191/article/details/124230726</guid><author>qq_36838191</author><pubDate>Sun, 17 Apr 2022 15:42:14 +0800</pubDate><description><![CDATA[gitworktree 本地仓库的多个分支在对应的文件夹内管理，能够减少很多操作，便捷高效~

git worktree add ../Easinote-release -b release origin/release

git worktree add &lt;新路径&gt; -b &lt;新分支名&gt; &lt;源分支名&gt;



二 语法速览


	最简单的写法：git worktree add &lt;新路径&gt;
	将基于当前分支，新建一个 worktree 目录，新的分支名就是新建目录]]></description><category></category></item><item><title><![CDATA[为什么Maven的很多命令前面都有-D参数？]]></title><link>https://blog.csdn.net/qq_36838191/article/details/124227024</link><guid>https://blog.csdn.net/qq_36838191/article/details/124227024</guid><author>qq_36838191</author><pubDate>Sun, 17 Apr 2022 11:34:08 +0800</pubDate><description><![CDATA[之前看到Maven的很多命令前面都有一个-D参数，一直不知道由来。今天看Maven实战的时候恰好看到，对于-D参数来讲。

用法： -DpropertyName=propertyValue

作用：对插件的目标参数进行配置

实例，例如大家经常使用的maven在执行本地安装命令install的时候跳过单元测试为 mvn install -Dmaven.test.skip=true。

参数-D是Java自带的，其功能是设置Java的系统属性，Maven只是对这个参数进行了重用。那么就可以在准备插件的时候检查]]></description><category></category></item><item><title><![CDATA[IDEA插件系列（13）：Key promoter插件——快捷键显示提示]]></title><link>https://blog.csdn.net/qq_36838191/article/details/123787683</link><guid>https://blog.csdn.net/qq_36838191/article/details/123787683</guid><author>qq_36838191</author><pubDate>Mon, 28 Mar 2022 09:50:44 +0800</pubDate><description><![CDATA[1. 插件介绍
菜单和工具栏按钮的鼠标单击将启动快捷方式显示。

2. 安装方式
第一种方式是使用IDEA下载安装



第二种方式是使用离线插件进行安装

插件下载地址：http://plugins.jetbrains.com/plugin/4455-key-promoter/



3. 使用方法
安装成功后，只要是使用有快捷键的操作，都会有提示。




...]]></description><category></category></item><item><title><![CDATA[定义变量的时候为什么用的是Integer而不是int]]></title><link>https://blog.csdn.net/qq_36838191/article/details/123570087</link><guid>https://blog.csdn.net/qq_36838191/article/details/123570087</guid><author>qq_36838191</author><pubDate>Fri, 18 Mar 2022 11:15:26 +0800</pubDate><description><![CDATA[Integer 允许为null值，int默认0，数据库里面如果有个字段没有值可能默认值为null，用Integer比较合适。
]]></description><category></category></item><item><title><![CDATA[Tomcat部署时war和war exploded区别以及平时踩得坑]]></title><link>https://blog.csdn.net/qq_36838191/article/details/123471110</link><guid>https://blog.csdn.net/qq_36838191/article/details/123471110</guid><author>qq_36838191</author><pubDate>Mon, 14 Mar 2022 09:24:47 +0800</pubDate><description><![CDATA[war和war exploded的区别

在使用IDEA开发项目的时候，部署Tomcat的时候通常会出现下边的情况：





是选择war还是war exploded 这里首先看一下他们两个的区别：

war模式：将WEB工程以包的形式上传到服务器 ；
war exploded模式：将WEB工程以当前文件夹的位置关系上传到服务器；
1
2
（1）war模式这种可以称之为是发布模式，看名字也知道，这是先打成war包，再发布；

（2）war exploded模式是直接把文件夹、jsp页面 、classes.]]></description><category></category></item><item><title><![CDATA[Intellij IDEA 编译报错，忽略错误，运行]]></title><link>https://blog.csdn.net/qq_36838191/article/details/123360184</link><guid>https://blog.csdn.net/qq_36838191/article/details/123360184</guid><author>qq_36838191</author><pubDate>Tue, 08 Mar 2022 18:34:31 +0800</pubDate><description><![CDATA[1.如何设置Intellij IDEA忽略部分类编译错误？
2.为什么要在Intellij IDEA中使用Eclipse编译器？
3.为什么Intellij IDEA设置忽略部分类编译错误？

有些时候我们的项目中有些错误，但这些错误并不影响项目的整体运行（或许是没有使用到），默认情况下idea是无法通过编译的，因此也就无法部署运行，要达到正确运行项目的目的需要作一些设置才行。

设置Intellij IDEA忽略部分类编译错误
设置很简单，只需要两步即可。

1、设置Java编译器



如上图所示...]]></description><category></category></item><item><title><![CDATA[git的merge冲突方法]]></title><link>https://blog.csdn.net/qq_36838191/article/details/123092979</link><guid>https://blog.csdn.net/qq_36838191/article/details/123092979</guid><author>qq_36838191</author><pubDate>Wed, 23 Feb 2022 16:45:07 +0800</pubDate><description><![CDATA[场景1：accept yours:代表以自己的为准；

场景2: accept theris:代表以更新下来的文件为准；

场景3：merge:代表手动合并,Merge Revisions 工作台使用



1.2序号表示上下冲突点

6合并没有冲突的地方

》》接收左边的文件

X  放弃左边的文件

二: idea 单个文件merge操作方法








...]]></description><category></category></item><item><title><![CDATA[Git各种错误操作撤销的方法]]></title><link>https://blog.csdn.net/qq_36838191/article/details/123089443</link><guid>https://blog.csdn.net/qq_36838191/article/details/123089443</guid><author>qq_36838191</author><pubDate>Wed, 23 Feb 2022 16:06:53 +0800</pubDate><description><![CDATA[场景1：Git Add了一个错误文件

git reset --mixed 仅取消 git add 带来的效果。

步骤1



步骤2



场景2: 本地 commit，未 push 到远程。

回退到指定到 commit号

git reset --hard commitId， 这个命令 回退到指定的commit，并且不会保留本地尚未提交的修改。所以一定要慎重使用。

取消commit时，更安全的操作： revert 更安全的操作， 使用 git revert

git revert commitId]]></description><category></category></item><item><title><![CDATA[IDEA GIT 操作]]></title><link>https://blog.csdn.net/qq_36838191/article/details/123088962</link><guid>https://blog.csdn.net/qq_36838191/article/details/123088962</guid><author>qq_36838191</author><pubDate>Wed, 23 Feb 2022 14:13:42 +0800</pubDate><description><![CDATA[工作中多人使用版本控制软件协作开发，常见的应用场景归纳如下：

假设小组中有两个人，组长小张，组员小袁

场景一：小张创建项目并提交到远程Git仓库

场景二：小袁从远程Git仓库上获取项目源码

场景三：小袁修改了部分源码，提交到远程仓库

场景四：小张从远程仓库获取小袁的提交

场景五：小袁接受了一个新功能的任务，创建了一个分支并在分支上开发

场景六：小袁把分支提交到远程Git仓库

场景七：小张获取小袁提交的分支

场景八：小张把分支合并到主干



下面来看以上各场景在IDEA中对应的操作。

场]]></description><category></category></item><item><title><![CDATA[多线程14：三大不安全案例]]></title><link>https://blog.csdn.net/qq_36838191/article/details/123088292</link><guid>https://blog.csdn.net/qq_36838191/article/details/123088292</guid><author>qq_36838191</author><pubDate>Wed, 23 Feb 2022 13:53:19 +0800</pubDate><description><![CDATA[案例一：火车站买票



思路：

1.首先要有一个买票的类BuyTicket多线程要实现Runnable接口，重写run()里面是买票，

2.买票就需要有票，定义一个票的变量 private int ticketNums = 10;

3.写一个买票的方法buy():首先你得判断是否有票，if(ticketNums&lt;=0),就停止return；

4.否则就买票，直接ticketNums--就可以了。谁+拿到+第几张票

5.然后需要一个循环，在while方法里面写，定义一个外部标志位，然后调用方]]></description><category></category></item><item><title><![CDATA[mysql数据库什么情况下会锁表_mysql数据库锁的产生原因及解决办法]]></title><link>https://blog.csdn.net/qq_36838191/article/details/123085329</link><guid>https://blog.csdn.net/qq_36838191/article/details/123085329</guid><author>qq_36838191</author><pubDate>Wed, 23 Feb 2022 10:58:48 +0800</pubDate><description><![CDATA[数据库和操作系统一样，是一个多用户使用的共享资源。当多个用户并发地存取数据 时，在数据库中就会产生多个事务同时存取同一数据的情况。若对并发操作不加控制就可能会读取和存储不正确的数据，破坏数据库的一致性。加锁是实现数据库并 发控制的一个非常重要的技术。在实际应用中经常会遇到的与锁相关的异常情况，当两个事务需要一组有冲突的锁，而不能将事务继续下去的话，就会出现死锁，严 重影响应用的正常执行。

在数据库中有两种基本的锁类型：排它锁(Exclusive Locks，即X锁)和共享锁(Share Locks，即S锁]]></description><category></category></item><item><title><![CDATA[java对mysql查询特殊字符转义]]></title><link>https://blog.csdn.net/qq_36838191/article/details/123084435</link><guid>https://blog.csdn.net/qq_36838191/article/details/123084435</guid><author>qq_36838191</author><pubDate>Wed, 23 Feb 2022 10:32:29 +0800</pubDate><description><![CDATA[在使用mysql的like查询用户时，当用户姓名中含有" ’ “，”%"，"_"，，""等特殊符号时，按以往的查询方式，并不能得出想要的结果。

查阅资料得知：在遇到这些特殊字符时，需要对字符进行转义。
1
'：用于包裹搜索条件，需转为\'；
%：用于代替任意数目的任意字符，需转换为\%；
_：用于代替一个任意字符，需转换为\_；
\：转义符号，需转换为\\\\。
1
2
3
4
以上特殊符号转义代码如下

public class RequstUtils {


  /**
  * speci...]]></description><category></category></item></channel></rss>