<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Java on Leafw&#39;s Blog</title>
    <link>https://leafw.net/categories/java/</link>
    <description>Recent content in Java on Leafw&#39;s Blog</description>
    <generator>Hugo</generator>
    <language>zh-CN</language>
    <managingEditor>wyr95626@gmail.com (Leafw)</managingEditor>
    <webMaster>wyr95626@gmail.com (Leafw)</webMaster>
    <copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright>
    <lastBuildDate>Mon, 22 Feb 2021 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://leafw.net/categories/java/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>浅谈分布式事务那些事</title>
      <link>https://leafw.net/brief-discussion-on-distributed-transactions/</link>
      <pubDate>Mon, 22 Feb 2021 00:00:00 +0000</pubDate><author>wyr95626@gmail.com (Leafw)</author>
      <guid>https://leafw.net/brief-discussion-on-distributed-transactions/</guid>
      <description>&lt;p&gt;本篇文章我们重点讨论关于分布式事务的一些相关知识点。这是学习分布式系统的一个必不可少的技术。我们最常见的案例就是银行转账问题，A账户向B账户转100元，那么A账户余额要减少100，B账户上要增加100。两个步骤必须都要成功才算成功，只成功一个的话应当回滚掉。如果A和B不在同一个环境或者系统上，这个事务就是分布式事务了，那么在这种情况下，如何保证事务的正确执行，有哪些执行方案呢？&lt;/p&gt;</description>
    </item>
    <item>
      <title>Spring源码分析（二）如何解决循环依赖</title>
      <link>https://leafw.net/analysis-of-spring-source-code-part-2-how-to-resolve-circular-dependencies/</link>
      <pubDate>Fri, 19 Feb 2021 00:00:00 +0000</pubDate><author>wyr95626@gmail.com (Leafw)</author>
      <guid>https://leafw.net/analysis-of-spring-source-code-part-2-how-to-resolve-circular-dependencies/</guid>
      <description>&lt;p&gt;在上一篇Spring源码分析中，我们跳过了一部分关于Spring解决循环依赖部分的代码，为了填上这个坑，我这里另开一文来好好讨论下这个问题。&lt;/p&gt;&#xA;&lt;p&gt;首先解释下什么是循环依赖，其实很简单，就是有两个类它们互相都依赖了对方，如下所示:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Spring源码分析（一） 从Spring Bean的生命周期谈起</title>
      <link>https://leafw.net/analysis-of-spring-source-code-part-1-starting-from-the-spring-bean-lifecycle/</link>
      <pubDate>Tue, 02 Feb 2021 00:00:00 +0000</pubDate><author>wyr95626@gmail.com (Leafw)</author>
      <guid>https://leafw.net/analysis-of-spring-source-code-part-1-starting-from-the-spring-bean-lifecycle/</guid>
      <description>&lt;p&gt;Spring Bean的生命周期真的是面试的时候关于Spring的最高频的考点之一了，笔者曾经被这个问题问懵了不止一次，一直记不住那一大串的步骤，但实际上尝试去死记硬背那些步骤的我是错误的，表面上看只是背诵一个流程，实际上，这个流程牵扯到的知识点可是很多而且很有意思的。&lt;/p&gt;</description>
    </item>
    <item>
      <title>实现分布式锁的各种姿势</title>
      <link>https://leafw.net/how-to-implement-a-distribute-lock/</link>
      <pubDate>Sun, 13 Sep 2020 00:00:00 +0000</pubDate><author>wyr95626@gmail.com (Leafw)</author>
      <guid>https://leafw.net/how-to-implement-a-distribute-lock/</guid>
      <description>&lt;p&gt;各位Javaer都对锁应该都是不陌生的，无论工作还是面试的时候，都是很常见的。不过对于大部分的小型的项目，也就是单机应用，基本都是使用Java的juc即可应对，但是随着应用规模的扩大，在分布式系统中，依靠着诸如syncronized，lock这些就无法应对了。那么本文就是来给大家唠嗑唠嗑在分布式系统中常见的几种实现分布式锁的方式。&lt;/p&gt;</description>
    </item>
    <item>
      <title>谈谈Map</title>
      <link>https://leafw.net/lets-talk-abount-map/</link>
      <pubDate>Sun, 19 Jan 2020 00:00:00 +0000</pubDate><author>wyr95626@gmail.com (Leafw)</author>
      <guid>https://leafw.net/lets-talk-abount-map/</guid>
      <description>&lt;p&gt;作为Javaer，对于Map这个单词绝对不会陌生，无论是开发过程中还是出去面试的时候，都会经常遇到，而最频繁使用和面试提问的无非这么几个，HashMap,  HashTable, ConcurrentHashMap。那么本文就针对这几个知识点做一个归纳和总结。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
