Spring AOP learning -- Introduction and principle of spring transaction
Transaction introduction
The previous article introduced spring AOP. Spring transaction is a typical application of spring AOP.
Transaction is the database transaction, which means that the reading and writing of data in the same batch are either all successful or all failed to ensure the consistency of data. It is the core function of th ...
Added by ctsiow on Sun, 30 Jan 2022 14:06:36 +0200
[ShardingSphere] springboot integrates shardingjdbc and uses the precise fragmentation algorithm to customize the sub database and sub table
The last two articles talked about two ways to divide databases and tables. These two ways can be summarized into one type, which are to divide data in the form of configuration. In this article, we continue to explain a new way to slice data. In addition to the form of configuration, sharding JDBC also supports self-defined rules through code. ...
Added by ltoso on Sun, 30 Jan 2022 13:26:27 +0200
Analysis of proxy mode and proxy mode used by spring
What is an agent
Proxy is a design pattern that provides another way to access the target object, that is, to access the target object through a proxy. Advantages: you can extend the functions of the target object without modifying the functions of the target object. *. (extend the function of the target object).
Static proxy:
introduce
S ...
Added by affordit on Sun, 30 Jan 2022 11:44:52 +0200
The three simple and easy-to-learn SSM frameworks (Spring + spring MVC + mybatis) require Ajax asynchronous technology integration. Have you failed?
I. Introduction to SSM framework
SSM framework is the acronym of Spring + Spring MVC + MyBatis. It is the mainstream Java EE enterprise framework after inheriting SSH. It is suitable for building various large-scale enterprise application systems. As shown in the figure:
1, What is Spring
Spring is an open source framework. It is a ligh ...
Added by hammerslane on Sat, 29 Jan 2022 20:33:39 +0200
Spring annotation development 01 ------- component registration
Several ways of injecting components
In Spring, there are four ways to inject components into containers:
Package scanning + Component annotation (@ Controller,@Service, @Repository, @Component)
@Bean annotation implementation
@Import annotation implementation
Use FactoryBean provided by Spring
Let's talk about the above four ways in detail.
...
Added by Wynder on Sat, 29 Jan 2022 19:44:01 +0200
"Spring IOC" source code analysis II dependency injection & dependency loop
The book follows the above two points that I am interested in IoC are
How does IoC get bean information and manage beans
IoC prides itself on dependency injection
How does IoC solve circular dependency (yes, it's entirely because it's said on the Internet that interviewers love to ask questions)
Now that the first problem has been solved, let ...
Added by ess14 on Sat, 29 Jan 2022 17:47:56 +0200
Spring MVC notes - and SSM integration ideas
SpringMVC
Translation of Chinese documents: https://github.com/DocsHome/spring-docs/blob/master/pages/web/overview.md
Search GitHub for spring docs
Introduction to Spring MVC
Spring MVC is a part of spring framework. It is a lightweight web framework based on Java implementation.
The core of spring MVC
The core of learning Spring MV ...
Added by Forever_xxl on Sat, 29 Jan 2022 09:01:56 +0200
How does Spring integrate Mybatis to register Mapper interface?
See for complete project code https://codechina.csdn.net/dreaming_coder/mybatis-spring
1. Introduction
In the past, when using Spring to integrate Mybatis, the Mapper interface should be added to Spring in the following way:
<bean id="userMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
<property name="mapperInterfac ...
Added by Dizzee15 on Sat, 29 Jan 2022 07:22:27 +0200
[day4] training log 4 (maven's dependent scope tag, springboot learning, yml and properties, key points of springboot project)
Morning:
About the role of tags: declare the scope of jar
junit's dependency, if only used in testing, is not used in the main program Add < scope > test < / scope >
Scope of maven dependency:
The previous Maven command: mvn install: install to the local warehouse (previously set the location to change the. M2 path) mvn dep ...
Added by shanksta13 on Sat, 29 Jan 2022 06:21:44 +0200
Configuration management of Spring Cloud Kubernetes (with code implementation)
All along, people who play springcloud are basically playing springboot1 x. Many related components of spring cloud (Dalston version) are used for configuration center, service registration and discovery. The gateway uses LB made by Netflix for springboot, etc., but these things are too heavy and complex. In a k8s based iaas service system, it ...
Added by Zwiter on Sat, 29 Jan 2022 06:15:36 +0200