Table of Contents 1. Brief description of Spring Cache 2. Common annotations for Spring Cache 3. @Cacheable annotation 4. @CacheEvict annotation 1. Brief description of Spring Cache Spring Cache is a caching abstraction mechanism provided by the Spring framework to simplify caching operations in applications. It caches the return value of the method. When the […]
Tag: spring
SpringCloud GateWay custom filter GatewayFilter and AbstractGatewayFactory
1. GatewayFilter GatewayFilter is a simple interface used to define the behavior of a gateway filter. A gateway filter is a class that implements the GatewayFilter interface and can perform certain operations when a request enters the gateway or when a response leaves the gateway. Filters can be used to modify requests or responses, log, […]
3Spring Boot 3 integrates mybatis-plus+druid+mysql
Directory 【3】Spring Boot 3 integrated components: Druid + Mybatis Plus + Mysql integration solution 1. Hikari + jdbc + mysql integration solution increase dependency Add configuration Spring Testng test cases 2. Druid + Mybatis Plus + Mysql integration solution 2.1 Configure Druid Add dependencies Configuration Start Spring Boot Web Starter Spring Testng test cases 2.2 […]
Design and implementation of information technology knowledge contest system based on SpringBoot
Table of Contents Preface 1. Technology stack 2. Introduction to system functions User information management Learn video management Announcement type management Announcement information management 3. Core code 1. Login module 2. File upload module 3. Code encapsulation 4. Conclusion Foreword Firstly, it takes a lot of time to manage information using traditional methods. Secondly, the […]
SpringBoot integrates Ldap–super detailed method explanation
LADP Overview LDAP (Lightweight Directory Access Protocol) is a protocol for accessing and maintaining distributed directory information services. Directory service is a service for storing and retrieving information. It is usually used to store user information, organizational structure, network equipment and other data within an organization. LDAP is a lightweight protocol designed for lookup and […]
SpringBoot 2 ways to quickly implement sub-database and sub-table
This article is the third article in the series “Principles and Practice of ShardingSphere5. In code> environment, sub-database and table can be quickly realized through JAVA encoding and Yml configuration. 1. What is ShardingSphere? shardingsphere is an open source distributed relational database middleware and is the top-level project of Apache. Its predecessor was two independent […]
Summary of all aspects of getting started with SpringCloud Alibaba components (Part 1): registration center-nacos, load balancing-ribbon, remote calling-feign
Article directory Nacos Ribbon Feign FeignExpansion Nacos Concept: Nacos is a new open source project launched by Alibaba. It is a dynamic service discovery, configuration management and service management platform that makes it easier to build cloud native applications. Nacos is committed to helping users discover, configure and manage microservices. It provides a simple and […]
SpringBoot distributed verification code login solution
Foreword In order to prevent the verification system from being violently cracked, many systems have added verification code verification. The more common one is the picture QR code. The safer one in the industry is the SMS verification code. Of course, there are also some puzzle verification codes and QR codes with artificial intelligence. Wait, […]
Spring transaction AOP causes transaction failure problem
Situation Description First, AOP was enabled, and transactions were enabled at the same time. The TransactionAspect below is a simple AOP aspect with an Around notification. @Aspect @Component public class TransactionAspect {<!– –> @Pointcut(“execution(* com.qhyu.cloud.datasource.service.TransactionService.*(..))”) // the pointcut expression private void transactionLogInfo() {<!– –>} // the pointcut signature /** *Title: around<br> * Description: This Around […]