Spring session integrates redis principle to find out the cause of failure

After a spring session is configured on the Internet and redis is integrated as a session, it is found that the session acquisition fails and there is value in redis. The login module can also be obtained, but other services cannot be obtained. Record it and follow the source code to find out why it failed auth service configuration Introduce ...

Posted by Kunax on Sun, 03 Oct 2021 13:29:31 -0700

2. Bottom Notes

2. Bottom Notes 2.1 Container function 2.1.1. @Configuration 2.2.1.1.Basic Use User.java package cn.com.springboot.demo.bean; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import lombok.ToString; /** * User information. * * @author J */ @Setter @Getter @ToString @NoArgsConstructor public class User ...

Posted by a.beam.reach on Sun, 03 Oct 2021 10:16:25 -0700

Section IV - Interpretation of configuration files

1, scope interpretation scope has two values, singleton and prototype single is the default value, which means that the UserDaoImpl class retrieved from the xml is the only one each time, and the class is created when the app object is created //Test code ApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml"); u ...

Posted by w00kie on Sat, 02 Oct 2021 16:49:34 -0700

spring boot configuration file encryption, plaintext password encryption, properties and yml conversion

1. Introduce maven <dependency> <groupId>com.github.ulisesbocchio</groupId> <artifactId>jasypt-spring-boot-starter</artifactId> <version>3.0.3</version> </dependency> <dependency> <groupId>org.jasypt</groupId> <artifactId>jasypt</artifactId> <version> ...

Posted by metin on Sat, 02 Oct 2021 15:27:21 -0700

Bi set up a sharp tool to teach you to build a standardized spring boot project from scratch [5] - user identity verification

Continued "Bi set up a sharp tool to teach you to build a standardized spring boot project from zero [4] - parameter verification" The problem of user authentication is a cliche. After a user logs in, many interfaces need to do user information verification. First, let the server know who the user is, and second, for data security r ...

Posted by gtibok on Sat, 02 Oct 2021 15:18:12 -0700

Learn spring 5 architecture from scratch -- explain AOP in detail

What is AOP AOP (Aspect Oriented Programming) means: Aspect Oriented Programming, which realizes the unified maintenance of program functions through precompiled mode and runtime dynamic agent. AOP is the continuation of OOP, a hot spot in software development, an important content in Spring framework, and a derivative paradigm of functional p ...

Posted by shamil on Fri, 01 Oct 2021 18:02:25 -0700

Summary of Health Project day7

Chapter 7 System Administration-Permission Settings 1.Privilege Control, Getting Started and Advanced with SpringSecurity [Goal] Understanding the concepts of certification and authorization [Path] 1: The concept of certification and authorization Authentication: Login (username and password)Authorization: Permissions to access system fun ...

Posted by AliceG on Fri, 01 Oct 2021 16:23:18 -0700

Learn spring 5 architecture from scratch -- the underlying mechanism of AOP: proxy mode

Proxy mode: Static proxyDynamic agent Before learning AOP, we need to understand the agent pattern Static proxy Static agent role analysis Abstract role: generally implemented using interfaces or abstract classes Real role: the role represented Agent role: agent real role; After representing a real role, you usually do some ancillary ...

Posted by Tyree on Fri, 01 Oct 2021 16:06:30 -0700

Learn spring 5 architecture from scratch -- declarative transactions

affair Transaction is very important in the project development process. It involves the problem of data consistency, which should not be careless!Transaction management is a necessary technology in enterprise application development to ensure data integrity and consistency. Transaction is to treat a series of actions as an independent unit o ...

Posted by danwguy on Fri, 01 Oct 2021 14:24:27 -0700

Spring Cloud integrates Spring Security OAuth2 (the strongest across the network)

Preface This article combs and integrates SpringCloud and SpringSecurity OAuth2 building process! Long time no SpringSecurity OAuth2 series of codes, forget, close-up this article comb the thread! Get dry!!! Maven Version Microservice Version <spring-boot.version>2.3.2.RELEASE</spring-boot.version> <spring-cloud.version ...

Posted by mydownfall on Fri, 01 Oct 2021 09:16:09 -0700