Spring initializes Ioc I

Spring IOC source code parsing based on annotations, version 5.1.x Initializing bean s through the Spring context Annotation class, annotationconfigpplicationcontext can be used to load Spring context based on java configuration class (various annotations), which is better than using application.xm ...

Added by nosmasu on Wed, 17 Jun 2020 07:06:03 +0300

Notes on Mybatis source code: from the perspective of cache system, the distribution mode of responsibility chain and enterprise level practice of circular dependence

1, Cache overview The design of Mybatis cache system follows the principle of single responsibility, opening and closing, and high decoupling. It is exquisite and fully layered, and its unique features can be applied to many similar businesses. Here is a brief analysis of the main caching system. With the help of the learning of Mybatis cache ...

Added by php_b34st on Tue, 16 Jun 2020 11:41:24 +0300

IDEA builds Spring Boot project

What is Spring Boot Spring Boot is a new framework provided by the Pivotal team, which is designed to simplify the initial construction and development process of new spring applications. The framework uses a specific way to configure, so that developers no longer need to define a templated configurat ...

Added by phpfreakjav on Tue, 16 Jun 2020 07:11:02 +0300

Spring series. AOP use

AOP introduction Using the object-oriented method can organize the code well, and also can realize code reuse in the way of inheritance. However, there will always be some duplicate code in the project, and it is not convenient to use inheritance methods to reuse and manage them, such as general log printing, transaction processing and security ...

Added by dessolator on Tue, 16 Jun 2020 05:58:28 +0300

Spring Boot Task Scheduling

2.1.12 Timing Tasks The Spring framework comes with task scheduling capabilities that are like a lightweight Quartz and are easy to use without relying on other JAR packages. Simply add @EnableScheduling to the project master startup class to turn on task scheduling @SpringBootApplication @EnableScheduling public class LearnApplication { p ...

Added by Desbrina on Mon, 15 Jun 2020 21:10:56 +0300

Using maven to create spring project registration bean, running successfully

1: Project creation and configuration 1. 2 if your maven warehouse is not under the default.. / user / directory, modify the settings settings, and then pom.xml Add spring dependency in. Note that you need to re-enter it even if it is not reported as red after adding       3. Create a ...

Added by Hellusius on Mon, 15 Jun 2020 08:56:53 +0300

Analysis of the problem that the custom interceptor cannot intercept zuul requests

1 process 1. Create a custom interceptor class MyInterceptor   2. Register interceptor @Configuration public class WebConf extends WebMvcConfigurerAdapter { @Autowired MyInterceptor myInterceptor; @Override public void addInterceptors(InterceptorRegistry registry) { ...

Added by pramodv on Sun, 14 Jun 2020 08:19:44 +0300

Notes on the use of Spring IOC, AOP

Configuration of xml Create xml file in src directory, named custom Add code to xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:context="http://www.springframework.org/schema/context"  xmlns:aop="http:/ ...

Added by jonorr1 on Fri, 12 Jun 2020 04:59:06 +0300

SpringBoot 2.3 integrates the latest ShardingJdbc + Druid + MyBatis

Today, the project is not busy. I want to have a look at the sharding JDBC sub database and sub table. I want to achieve the following: Discard the xml configuration and use. yml or. properties file + java to configure spring. Use Druid as database connection pool, open monitoring interface at the same time, and support monitoring multiple dat ...

Added by htcilt on Thu, 11 Jun 2020 06:47:20 +0300

21, Spring cloud Alibaba Nacos service registration and configuration center

Spring cloud Alibaba Nacos service registration and configuration center About Nacos Why Nacos The first four letters are Naming and Configuration, and the last s is Service What is it? A dynamic service discovery, configuration management and service management center easier to build cloud nat ...

Added by luckybob on Thu, 11 Jun 2020 06:08:17 +0300