SpringBoot integrates Redis to implement caching (automatic caching + manual aop caching)
demo address: https://gitee.com/pdh_gitee/redis-cache-demo.git.
Redis must be available locally, which is the premise. All demo s are tested on windows. In the spring boot project, you can usually use the automatic cache policy, or you can use the RedisTemplate class to operate redis, and redis can be configured (of course, this is trou ...
Posted by kslagdive on Thu, 28 Oct 2021 08:53:09 +0200
A JPA cascade Problem & detailed explanation of CascadeType
Problems encountered
First, I encountered the following problems when I wrote a many to many demo with springboot JPA to insert data: detached entity passed to persist The general meaning is that when inserting the data, the existing data in the cascade table is used. The id of the data already exists and cannot be inserted. Therefore: de ...
Posted by R_P on Thu, 28 Oct 2021 06:32:16 +0200
Spring nested transaction rollback
catalogue
Spring nested transaction rollback
Problem description
Project background:
Problem recurrence
1. Declaration transaction of spring
2. Event processing logic of transaction
3. Actual business Service layer method
4.Druid data source configuration
5. Test execution
Log analysis
Analyze the cause of the problem
summary
Trans ...
Posted by Adam on Wed, 27 Oct 2021 09:15:38 +0200
The best article in Spring - AOP container
1, Concept of AOP
⭐ What is AOP
Aspect oriented programming (aspect oriented), AOP can isolate each part of business logic, reduce the coupling between each part of business logic, improve the reusability of program, and improve the efficiency of development.That is, add new functions to the main functions without modifying the source ...
Posted by betazoid on Wed, 27 Oct 2021 01:49:04 +0200
AOP description of spring, use code, xml · annotation
Popular description of aop terms
Joinpoint connection point: the line of program that calls the pointcut function is. Target target object: the object of the function body that needs supplementary functions. Pointcut tangent: the method name of the (Target) in the target object. Advice enhancement method: adding a program to the tangent po ...
Posted by doobster on Tue, 26 Oct 2021 04:08:48 +0200
Spring principles (13) -- implementation of the concept of spring AOP;
@TOC #Spring collection Record every step of the program___ auth:huf
OOP stands for object-oriented programming, which is a programming idea. AOP stands for aspect oriented programming, which is also a programming idea. There is a saying in the Spring official website;
Let us begin by defining some central AOP concepts and terminology.
Thes ...
Posted by Eng65 on Sun, 24 Oct 2021 23:57:05 +0200
aop of spring (five notices)
1. Key concepts in AOP
Join point: a specific point in the process of program execution, such as method call or exception throw
Target: the object to be notified (represented) Note 1: complete the specific business logic
Advice: an action performed on a specific connection point. At the same time, advice is also a specific implem ...
Posted by phpcodec on Sun, 24 Oct 2021 20:01:56 +0200
Spring Cloud Config distributed configuration
summary
Configuration file problems faced by distributed systems
Microservice means to split the business in a single application into one sub service. The granularity of each service is relatively small, so there will be a large number of services in the system. Since each service needs the necessary configuration information to run, a s ...
Posted by biggieuk on Sun, 24 Oct 2021 19:54:20 +0200
Using Jwt to complete Token verification in Spring project
1, What is JWT? Why use JWT?
Json web token (JWT) is a JSON based open standard (RFC 7519) implemented to transfer declarations between network application environments
The token is designed to be compact and secure, especially suitable for single sign on (SSO) scenarios of distributed sites.
The declaration of JWT is generally used ...
Posted by StathisG on Sun, 24 Oct 2021 15:07:25 +0200
Spring Boot multi module development, bean calling of sub modules and Solutions
Spring Boot multi module project
1. Create a maven project
Project Name: spring boot sample project
Delete the redundant files and leave only the pom.xml file in the spring boot sample project project
2. Add sub modules in spring boot sample project project
New: spring boot sample API module. Pay attention to the packa ...
Posted by Tchelo on Sat, 23 Oct 2021 17:13:42 +0200