<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[whiteGu的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/whiteGu</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; whiteGu]]></copyright><item><title><![CDATA[Shardingsphere-jdbc 分片源码自我总结分析]]></title><link>https://blog.csdn.net/whiteGu/article/details/129406472</link><guid>https://blog.csdn.net/whiteGu/article/details/129406472</guid><author>whiteGu</author><pubDate>Wed, 08 Mar 2023 20:03:14 +0800</pubDate><description><![CDATA[ShardingSphereJDBC分片逻辑自我总结]]></description><category></category></item><item><title><![CDATA[mybatis源码中一级和二级缓存分析]]></title><link>https://blog.csdn.net/whiteGu/article/details/129094023</link><guid>https://blog.csdn.net/whiteGu/article/details/129094023</guid><author>whiteGu</author><pubDate>Fri, 17 Feb 2023 21:50:55 +0800</pubDate><description><![CDATA[Mybatis源码阅读自我总结]]></description><category></category></item><item><title><![CDATA[HashMap 和 ConcurrentHashMap 源码变化分析]]></title><link>https://blog.csdn.net/whiteGu/article/details/128938119</link><guid>https://blog.csdn.net/whiteGu/article/details/128938119</guid><author>whiteGu</author><pubDate>Wed, 08 Feb 2023 17:22:17 +0800</pubDate><description><![CDATA[ConcurrentHashMap自总结]]></description><category></category></item><item><title><![CDATA[ReentrantLock 源码分析自我总结]]></title><link>https://blog.csdn.net/whiteGu/article/details/128605393</link><guid>https://blog.csdn.net/whiteGu/article/details/128605393</guid><author>whiteGu</author><pubDate>Sun, 08 Jan 2023 21:07:02 +0800</pubDate><description><![CDATA[ReentrantLock 源码分析自我总结]]></description><category></category></item><item><title><![CDATA[每天一点点，Spring执行创建bean(AbstractAutowireCapableBeanFactory#doCreateBean)]]></title><link>https://blog.csdn.net/whiteGu/article/details/123184986</link><guid>https://blog.csdn.net/whiteGu/article/details/123184986</guid><author>whiteGu</author><pubDate>Mon, 28 Feb 2022 17:15:38 +0800</pubDate><description><![CDATA[Spring 创建bean流程   AbstractAutowireCapableBeanFactory#doCreateBean
1、 判断当前bean是不是单例的，如果是单例的，先从缓存中取，如果存在直接返回(在创建之前已经由依赖注入已生成)，如果不存在执行创建
if (mbd.isSingleton()) {
	instanceWrapper = this.factoryBeanInstanceCache.remove(beanName);
}
if (instanceWrapper == null)]]></description><category></category></item><item><title><![CDATA[每天一点点，Spring创建bean实例 AbstractAutowireCapableBeanFactory#createBeanInstance]]></title><link>https://blog.csdn.net/whiteGu/article/details/123170441</link><guid>https://blog.csdn.net/whiteGu/article/details/123170441</guid><author>whiteGu</author><pubDate>Sun, 27 Feb 2022 21:30:47 +0800</pubDate><description><![CDATA[Spring  执行创建bean实例逻辑AbstractAutowireCapableBeanFactory#createBeanInstance
1、确保当前类已加载
Class&lt;?&gt; beanClass = resolveBeanClass(mbd, beanName);

2、如果当前BeanDefinition设置的有Supplier方法，直接调用此方法生成bean对象
Supplier&lt;?&gt; instanceSupplier = mbd.getInstanceSupplie]]></description><category></category></item><item><title><![CDATA[每天一点点，Spring根据找到的构造方法创建bean]]></title><link>https://blog.csdn.net/whiteGu/article/details/123157358</link><guid>https://blog.csdn.net/whiteGu/article/details/123157358</guid><author>whiteGu</author><pubDate>Sat, 26 Feb 2022 22:41:56 +0800</pubDate><description><![CDATA[Spring得到构造函数之后执行实例化
1、如果是默认空参构造
1.1、当所有的候选构造函数都为null的时候，会使用空参构造
// 如果此处得到的候选构造函数为null
Constructor&lt;?&gt;[] ctors = determineConstructorsFromBeanPostProcessors(beanClass, beanName);
//if null == ctors 会执行 AbstractAutowireCapableBeanFactory#instantiateBean]]></description><category></category></item><item><title><![CDATA[每天一点点，Spring选择合适的构造方法执行创建]]></title><link>https://blog.csdn.net/whiteGu/article/details/123127360</link><guid>https://blog.csdn.net/whiteGu/article/details/123127360</guid><author>whiteGu</author><pubDate>Fri, 25 Feb 2022 15:50:27 +0800</pubDate><description><![CDATA[Spring 得到候选构造方法之后，如何选择使用哪个构造方法？
ConstructorResolver#autowireConstructor
1、定义三个变量
// 最后决定使用的构造方法
Constructor&lt;?&gt; constructorToUse = null;
// 构造函数需要使用的参数持有器
ArgumentsHolder argsHolderToUse = null;
// 最后需要使用的构造方法的参数
Object[] argsToUse = null;

2、explicit]]></description><category></category></item><item><title><![CDATA[每天一点点，Spring得到当前类的候选构造方法]]></title><link>https://blog.csdn.net/whiteGu/article/details/123105968</link><guid>https://blog.csdn.net/whiteGu/article/details/123105968</guid><author>whiteGu</author><pubDate>Thu, 24 Feb 2022 11:54:54 +0800</pubDate><description><![CDATA[当Spring中 有多个构造函数的时候，是如何得到候选的构造方法
AbstractAutowireCapableBeanFactory#determineConstructorsFromBeanPostProcessors
其中主要的是 AutowiredAnnotationBeanPostProcessor 这个类
AutowiredAnnotationBeanPostProcessor#determineCandidateConstructors 得到候选的构造方法
1、找存在@Lookup注解的方法
]]></description><category></category></item><item><title><![CDATA[每天一点点 ，Spring 循环依赖]]></title><link>https://blog.csdn.net/whiteGu/article/details/123083182</link><guid>https://blog.csdn.net/whiteGu/article/details/123083182</guid><author>whiteGu</author><pubDate>Wed, 23 Feb 2022 11:27:05 +0800</pubDate><description><![CDATA[每天一点点 ，Spring 循环依赖]]></description><category></category></item><item><title><![CDATA[线程池ThreadPoolExecutor相关自整理]]></title><link>https://blog.csdn.net/whiteGu/article/details/122473420</link><guid>https://blog.csdn.net/whiteGu/article/details/122473420</guid><author>whiteGu</author><pubDate>Thu, 13 Jan 2022 14:38:00 +0800</pubDate><description><![CDATA[线程池ThreadPoolExecutor 自整理]]></description><category></category></item><item><title><![CDATA[rabbitmq 配置 SimpleRabbitListenerContainerFactory 如何 新增消费者]]></title><link>https://blog.csdn.net/whiteGu/article/details/121160376</link><guid>https://blog.csdn.net/whiteGu/article/details/121160376</guid><author>whiteGu</author><pubDate>Fri, 05 Nov 2021 12:15:12 +0800</pubDate><description><![CDATA[rabbitmq 配置 containerFactory  属性
@RabbitListener(queues = "activity_queue" ,containerFactory = "simpleRabbitListenerContainerFactory")



rabbitmq 执行流程
RabbitListenerEndpointRegistrar 实现 InitializingBean 接口，启动会自动被调用
org.springframework.beans.factory.Initia]]></description><category></category></item><item><title><![CDATA[rabbitmq 简单操作记录]]></title><link>https://blog.csdn.net/whiteGu/article/details/121153173</link><guid>https://blog.csdn.net/whiteGu/article/details/121153173</guid><author>whiteGu</author><pubDate>Fri, 05 Nov 2021 10:29:24 +0800</pubDate><description><![CDATA[rabbitmq 操作记录

当前只有默认的5个消费者
测试 消费端方法进入直接 手动ACK 之后，然后休眠等待10min查看队列数据信息
消费端代码如下，当修改端启动之后，
package com.example.customer;

import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.AcknowledgeMode;
import org.springframework.amqp.core.Message;
i]]></description><category></category></item><item><title><![CDATA[tk.mybatis 根据主键id执行update操作时,组装的sql语句包含了非id列]]></title><link>https://blog.csdn.net/whiteGu/article/details/120860132</link><guid>https://blog.csdn.net/whiteGu/article/details/120860132</guid><author>whiteGu</author><pubDate>Wed, 20 Oct 2021 10:48:47 +0800</pubDate><description><![CDATA[tk.mybatis使用updateByPrimaryKeySelective 的where条件多了非id字段错误代码错误完整Java执行代码问题分析问题原因解决方案
错误代码
错误完整Java执行代码
实体类

@Table(name = "test")
public class Test  {

    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

   

    /**
     * 状态 0]]></description><category></category></item><item><title><![CDATA[idea 常用插件记录整理]]></title><link>https://blog.csdn.net/whiteGu/article/details/119324349</link><guid>https://blog.csdn.net/whiteGu/article/details/119324349</guid><author>whiteGu</author><pubDate>Mon, 02 Aug 2021 14:31:08 +0800</pubDate><description><![CDATA[idea自用常用插件记录代码检查插件代码热部署mavenmybatis插件控制台打印GIT 提交模板代码智能提示右侧导航栏一键调用一个对象的所有的set方法
代码检查插件

Alibaba Java Coding Guidelines
SonarLint

代码热部署

JRebel and XRebel for IntelliJ

maven

Maven Helper

mybatis插件

MybatisX

控制台打印

Grep Console

GIT 提交模板

Git Commit Temp]]></description><category></category></item><item><title><![CDATA[PageHelper 记录]]></title><link>https://blog.csdn.net/whiteGu/article/details/118156269</link><guid>https://blog.csdn.net/whiteGu/article/details/118156269</guid><author>whiteGu</author><pubDate>Wed, 23 Jun 2021 16:53:10 +0800</pubDate><description><![CDATA[自动添加order by 问题
项目中引入 了PageHelper  组件,  然后 查询的时候,明明没有指定  PageHelper.orderBy();但是在执行sql的时候，sql的结尾却莫名其妙多了 order by id
例子
//  mapper
 Integer searchCount(QueryBean querybean);

&lt;select id = "searchCount"&gt;

 select * from s left join b on b.id = s.p_id w]]></description><category></category></item><item><title><![CDATA[java设计模式]]></title><link>https://blog.csdn.net/whiteGu/article/details/116502458</link><guid>https://blog.csdn.net/whiteGu/article/details/116502458</guid><author>whiteGu</author><pubDate>Fri, 07 May 2021 21:39:05 +0800</pubDate><description><![CDATA[Head First设计模式设计原则1. 找出应用中可能变化之处，把它们独立出来，不要和那些不需要变化的代码写在一起2.针对接口编程,而不是针对实现编程3. 多使用组合,少使用继承4.为了交互对象之间的松耦合设计而努力策略模式定义观察者模式定义
设计原则
1. 找出应用中可能变化之处，把它们独立出来，不要和那些不需要变化的代码写在一起
2.针对接口编程,而不是针对实现编程
3. 多使用组合,少使用继承
4.为了交互对象之间的松耦合设计而努力
策略模式
定义
** 策略模式** 定义了 算法族，分别封装起来，]]></description><category></category></item><item><title><![CDATA[Poi 通过SXSSFWorkbook获取 制定行的时候报错 空指针]]></title><link>https://blog.csdn.net/whiteGu/article/details/116048731</link><guid>https://blog.csdn.net/whiteGu/article/details/116048731</guid><author>whiteGu</author><pubDate>Fri, 23 Apr 2021 11:39:21 +0800</pubDate><description><![CDATA[//指定可访问大小为2方便说明问题; 如果不传默认  100
        SXSSFWorkbook wb = new SXSSFWorkbook(2);
        SXSSFSheet sheet = wb.createSheet("sheet");
        //在当前sheet添加2行数据信息
        sheet.createRow(0);
        sheet.createRow(1);
        //获取 第一行数据
        SX...]]></description><category></category></item><item><title><![CDATA[Spring @Retryable 和 @Recover]]></title><link>https://blog.csdn.net/whiteGu/article/details/112306812</link><guid>https://blog.csdn.net/whiteGu/article/details/112306812</guid><author>whiteGu</author><pubDate>Fri, 08 Jan 2021 09:44:01 +0800</pubDate><description><![CDATA[@Retryable 和 @Recover 使用的时候 注意事项

@Recover的注解的方法第一个参数需要是   @Retryable 所捕获的重试异常类型；必须是第一个参数
@Recover注解的方法的 返回值必须 和 @Retryable注解的方法返回值一致

上面两条的原因见文章末尾
最近在使用@Retryable 注解时出现的问题 是  使用了 @Retryable  注解之后；指定了特定的异常进行异常重试机制；设置最大重试次数,当时只设置了@Retryable  注解;但是并没有配合使用 @R]]></description><category></category></item><item><title><![CDATA[Amazon advertising Api for Java]]></title><link>https://blog.csdn.net/whiteGu/article/details/111029480</link><guid>https://blog.csdn.net/whiteGu/article/details/111029480</guid><author>whiteGu</author><pubDate>Tue, 15 Dec 2020 11:40:45 +0800</pubDate><description><![CDATA[店铺授权
创建广告活动/广告组等
创建广告和获取广告相关内容需要首先通过 Profiles 接口获取每个店铺的
Amazon-Advertising-API-Scope ;当前这个值是通过 Profiles接口获取的

Profiles : 获取当前店铺站点的账号配置信息;获取的结果 里面的
profileId 字段对应的值就是需要在 Amazon-Advertising-API-Scope 传入的值



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