The relationship between BeanFactory and ApplicationContext from the perspective of source code

Hello, everyone. I'm Xiaohei. This is the last tweet before this year. I wish you a happy new year in advance~~ This time, we will talk about the relationship between BeanFactory and ApplicationContext from the perspective of source code, and talk about some points that are not mentioned in the online article. Official description Let's take ...

Posted by jehardesty on Mon, 13 Jan 2020 22:06:57 -0800

@Difference between RequestParam, @ RequestBody and @ ModelAttribute

1, @ RequestParam The parameters passed by GET and POST requests are automatically converted to the variables annotated by @ RequestParam 1. @RequestParam (org.springframework.web.bind.annotation.RequestParam) is used to assign the specified request parameter to the parameter in the method. Example: ...

Posted by alext on Mon, 13 Jan 2020 00:22:29 -0800

0113 spring scheduled tasks and asynchronous thread pool

0113 asynchronous method and timing task of spring background spring has a lot of content, and the general knowledge must be systematically learned, but some edge technology points are also very applicable in the actual work; here is an introduction and practice one by one. Asynchronous thread pool Scenario: the distribution task is separate ...

Posted by kryles on Sun, 12 Jan 2020 23:04:03 -0800

Java Multithreading and Concurrent ThreadLocal

1. What is ThreadLocal?Use scenarios Introduction to ThreadLocal ThreadLocal is a thread-local variable that provides a solution to multithreaded concurrency problems. When using ThreadLocal to maintain variables, ThreadLocal provides a separate copy of variables for each thread that uses the variable, so each thread can independently change it ...

Posted by if on Sun, 12 Jan 2020 19:01:18 -0800

springmvc+spring4.2+hibernate5 Integrated Records

1, Profile There are a lot of jar packages involved. Here I choose to help me manage jars by maven <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache. ...

Posted by uglyrat on Sun, 12 Jan 2020 06:08:38 -0800

As a Java programmer, do you really know the inside story of the springboot dynamic data source?

Java programmers who have been working for many years seem to use very few multiple data sources, especially in the current situation of microservices being so hot, it is normal for different businesses to access a database, and Java access to data sources is not as simple as PHP and other scripting languages, but in special business situatio ...

Posted by john-iom on Sun, 12 Jan 2020 05:28:16 -0800

Spring framework learning (3.3) AOP implementation based on @ AspectJ annotation

Preface Record the learning process, continued from the previous two sections The implementation of AOP based on xml configuration file inevitably faces the situation of overstaffed xml file, and the configuration process is troublesome. Annotation annotation technology can solve these problems text ...

Posted by assgar on Sun, 12 Jan 2020 01:08:31 -0800

SPI Adaptive Extended Adaptive Principle for Dubbo Source Analysis 2

Catalog Principle overview Why design the @Adaptive annotation Where, when and how dubbo source is used Source Code Analysis for @Adaptive Extension Loading Process summary Principle overview First, look at the description of adaptive scaling on the following website: In Dubbo, many extensions are l ...

Posted by robot43298 on Sat, 11 Jan 2020 16:43:24 -0800

Spring Boot+mybatis create multi data source connection

Spring Boot+mybatis create multi data source connection 1, Background: the company system needs to do heterogeneous database data migration, need to configure multiple data sources, there are also some small problems in the configuration process, so make a record here; 2, Code address: 3, Code exp ...

Posted by rookie on Sat, 11 Jan 2020 08:10:12 -0800

Problems caused by improper use of HttpMessageConverter and its principle and configuration

Article directory Two questions HttpMessageConverter function HttpMessageConverter matching rule HttpMessageConverter initialization sequence diagram Custom HttpMessageConverter Solve the problem RestTemplate NPE Text / painquoted Two questions spring boot RestTemplate unexpectedly reports nu ...

Posted by TreeNode on Sat, 11 Jan 2020 06:52:25 -0800