Based on the principles of AOP and HashMap, develop Mysql sub database and sub table routing components!
Author: Xiao Fu Ge Blog: https://bugstack.cn
Precipitate, share and grow, so that you and others can gain something! 😄
1, Foreword
what? Java interview is like building a rocket 🚀
Simple! In the past, I always wanted to have a good interview in Java interview. GAHA always tests some things that can't be used in work. I can use Spr ...
Posted by Wakab on Thu, 23 Dec 2021 20:32:36 +0100
Understanding and source code interpretation of spring IOC
Followed by an understanding and source code interpretation of spring IOC (I)
refresh method
@Override
public void refresh() throws BeansException, IllegalStateException {
synchronized (this.startupShutdownMonitor) {
StartupStep contextRefresh = this.applicationStartup.start("spring.context.refresh");
// Prepare this context f ...
Posted by xeno on Thu, 23 Dec 2021 20:26:24 +0100
Circular dependency in Spring
preface
Circular dependency in Spring has always been a very important topic in Spring. On the one hand, it is because the source code has done a lot of processing to solve circular dependency. On the other hand, if you ask a higher-level question in Spring during the interview, circular dependency must not escape. If you answer well, then thi ...
Posted by porto88 on Thu, 23 Dec 2021 20:22:33 +0100
spring boot 2.x deep understanding of scheduled task schedule
Look first spring boot 2. X actor monitoring / health check / audit / statistics
Based on the above code modification
Source code: https://github.com/langyastudio/langya-tech/tree/springboot/scheduling
Official documents: https://docs.spring.io/spring-framework/docs/current/reference/html/integration.html#scheduling-annotation-support
...
Posted by ticallian on Thu, 23 Dec 2021 20:17:08 +0100
Scheduled task component Quartz
Scheduled task component Quartz
4.1 introduction to quartz
Quartz is Job scheduling** (Job scheduling) is an open source project in the field. Quartz can be used alone or integrated with the spring framework * *, which is generally used in actual development. Quartz can be used to develop one or more scheduled tasks, and each scheduled task c ...
Posted by PABobo on Thu, 23 Dec 2021 03:21:29 +0100
[spring 39 / 43] - spring Environment & amp; Properties: PropertySource, environment, Profile
Quote the original text: https://www.cmsblogs.com/article/1391375600689745920 [Spring 39/43] - Environment & Properties of Spring: PropertySource, environment, Profile
text
Spring. profiles. I believe you are familiar with active and @ Profile, The main function is to switch the parameter configuration in different environments (developme ...
Posted by ericorx on Thu, 23 Dec 2021 02:20:33 +0100
Dynamic data source switching of 30 classes of handwritten Spring core principles
This article is excerpted from Spring 5 core principlesBefore reading this article, please read the following:30 classes of custom ORM for handwritten Spring core principles (Part 1) (6)Custom ORM of 30 classes handwritten Spring core principles (Part 2) (7)4. Underlying principle of dynamic data source switchingHere is a brief introduction to ...
Posted by bryson on Wed, 22 Dec 2021 11:18:48 +0100
SpringBoot auto configuration principle
SpringBoot auto configuration principle
What is auto configuration?
When learning about SSM development projects, we need to introduce the dependencies of spring, spring MVC and mybatis, and use configuration files or java config to configure components such as configuration view parser. However, springboot provides us with a convenient devel ...
Posted by Alffallen on Wed, 22 Dec 2021 10:43:24 +0100
Spring Boot realizes multi data source integration Mybatis version
preface
This blog only talks about how to realize multi data source configuration in Spring Boot project from zero to one, not about the source code (later, Spring Boot automatic configuration and other source codes).
This blog is based on spring boot version 2.5 1.
background
Multiple data sources need to be connected in a project. We nee ...
Posted by Tyche on Wed, 22 Dec 2021 03:41:34 +0100
Mybatis integrates with spring and Aop integrates the pagehelper plug-in
Objectives:
Mybatis and spring integrationAop integration pagehelper plug-in
1, Mybatis and spring integration
Comparison of hibernate and spring integration
1. Import pom dependencies
1.1 add spring related dependencies (5.0.2.RELEASE)
       spring-core
       spring-beans
       spring-context
       spring-orm
       spr ...
Posted by udendra on Tue, 21 Dec 2021 23:33:07 +0100