Several special ways of Spring Bean instantiation

ServiceLoader uses the reverse control in JDK ServiceLoaderFactoryBean AutowireCapableBeanFactory#createBean BeanDefinitionRegistry#registerBeanDefinition RumenzFactory interface and default implementation class DefaultRumenzFactory RumenzFactory.java package com.rumenz; public interface RumenzFactory { //jdk1.8 default implementation ...

Posted by svgmx5 on Tue, 30 Jun 2020 00:16:42 -0700

The deepest analysis of spring boot MVC automatic configuration failure in the whole network

preface I didn't plan to write this article, but after reading the core principles of SpringBoot, I suddenly thought of the MVC automatic failure problem encountered in the previous development. Although there are many articles and official documents on the Internet explaining the reasons, I still want to have a look at it in person. What I tho ...

Posted by pr0x on Mon, 29 Jun 2020 21:05:23 -0700

Learn Java design mode again: actual memo mode "simulate the scenario of profile rollback during the online process of Internet system"

Author: little brother FuBlog: https://bugstack.cn -Original series of special articles Precipitation, sharing, growth, so that they and others can have a harvest! 😄 1, Preface Can't it be an excuse for R & D? Sometimes the function complexity is high and it is difficult to realize, sometimes the construction period is short and the impleme ...

Posted by emmbec on Sun, 28 Jun 2020 21:45:05 -0700

Two implementation methods of java Dynamic agent

Last article we wrote about static agents Agent mode of design mode [1] static agent Let's talk about java's dynamic proxy today. 1, Why use dynamic proxy In fact, the dynamic agent makes up for the shortcomings of the static agent. The static agent needs to write a proxy class for each proxy object, ...

Posted by shiznatix on Sun, 28 Jun 2020 20:14:24 -0700

Why is enumeration recommended?

Enumeration is a new data type in JDK 1.5. With enumeration, we can well describe some specific business scenarios, such as spring, summer, autumn and winter in a year, Monday to Sunday in a week, and various colors, as well as some state information, such as error codes. Enumeration type not only exists in Java language, but also can be found ...

Posted by pinxxx on Sat, 27 Jun 2020 23:12:24 -0700

Deep understanding of the synchronized underlying source code is enough for beginners

Deep understanding of synchronized underlying source code preface This article analyzes the implementation logic of synchronized from the JVM source code, so as to better understand the depth of synchronized. Process: the basic unit of operating system resource allocation. Thread: the basic unit of ...

Posted by azaidi7 on Thu, 25 Jun 2020 21:55:14 -0700

Problems encountered in SpringBoot 2.3.5 Integrating redis cache custom JSON serialization.

Currently, I am learning springboot from teacher Lei Fengyang in Silicon Valley. The springboot version used in the teacher's course is 1.5, while I use 2.3.5. The difference between the 2.x and 1.x versions of springboot is quite significant, with many of the underlying code changed and quite a bit cha ...

Posted by rantsh on Wed, 24 Jun 2020 18:31:20 -0700

Deep analysis of JVM class loading mechanism

get ready: Markdown authoring tool Youdaoyun notes Idea development tools GItHub project address analysis: The whole process of class loading and running: When we use the java command to run the main function of a class to start the program, we first need to load the main class into the JVM through th ...

Posted by khaitan_anuj on Tue, 23 Jun 2020 03:23:00 -0700

Java knowledge summary 1 - Java program foundation

1.1 Java introduction What is Java Java is a programming language developed by James Gosling of SUN (acquired by Oracle) in the early 1990s. It was officially released in 1995. Java is a cross platform language based on JVM Programming languages are compiled and interpreted. Compiled languages suc ...

Posted by Kurt on Sun, 21 Jun 2020 22:09:13 -0700

Summary of common categories of a Xin, a rookie

Summary of common categories (I) Object: java.lang.Object Object:Java All classes in (custom class, class provided by jdk) inherit from object (all root classes) public int hashCode() returns the hash code value of the object (the hash code value of each object in memory is different). It has a relat ...

Posted by rel on Fri, 19 Jun 2020 22:37:43 -0700