Spring learning record 2021-11-09 AOP

Components of AOP ■ crosscutting concerns: which methods are intercepted and how to deal with them after interception. These concerns are called crosscutting concerns ■ aspect: class is the abstraction of object features, and aspect is the abstraction of crosscutting concerns ■ join point: the intercepted method, field or construction method ■ ...

Posted on Tue, 09 Nov 2021 04:53:40 -0500 by vinodkalpaka

Spring a set of all in 3 - AOP programming

Baizhi Education - Spring series courses - AOP programming Chapter one: static agent design pattern 1. Why do you need agent design pattern 1.1 problems In Java EE layered development, which layer is the most important for us DAO ---> Service --> Controller JavaEE In layered development, the most important thing is Service layer W ...

Posted on Tue, 09 Nov 2021 02:10:34 -0500 by henrygao

spring container core principle -- Bean storage and Bean three-level cache

1, bean storage Usually we say that the spring container helps us manage beans, but what is a bean? For a simple example, if we provide an X.class class, the X.class at this time is called a class object. After a series of spring life cycle processing, it will become a bean object that can be placed in the spring container. We call the object ...

Posted on Mon, 08 Nov 2021 17:55:45 -0500 by Bobo the Bugbear

Spring Boot v2.4.4 source code analysis event mechanism part II

Spring Boot event publishing and listening mechanism 1, Event driven model 1. Practice of event oriented programming under Spring The event driven model can minimize the coupling, and Spring has a perfect event publishing and processing mechanism. To complete a complete event oriented programming in Spring, you need the following three steps ...

Posted on Sun, 07 Nov 2021 21:49:20 -0500 by .-INSANE-.

5, spring declarative transaction annotation configuration

1, Transaction overview: A transaction is a series of actions, which are treated as a single unit of work. These actions are either completed or ineffective; For example, users buy books; Before purchasing, you need to confirm ① whether the number of books is sufficient; ② Whether the user account balance is sufficient; If ① the conditions are ...

Posted on Sun, 07 Nov 2021 13:15:49 -0500 by hairyjim

Use and principle of spring MVC

preface Spring MVC is also called Spring web mvc. It is a built-in MVC framework in spring and will be released after spring 3.0. Spring MVC framework solves common problems in WEB Development (parameter receiving, file uploading, form verification, etc.), and is simple to use and seamlessly integrated with spring. Support RESTful style ...

Posted on Sat, 06 Nov 2021 23:23:02 -0400 by TechGuru

SSM2==springframework. Configure spring management data sources (. properties) and third-party jar packages (druid, mybatis) in pure XML, and compare them with those used alone before integration

         In“ SSM1==springframework. There are 4 ways to implement IOC with XML and 8 ways to implement DI. ”In, we know that the spring framework can give object A to IOC container management (creation) through IOC, and inject some attributes required by object A and object B into object A thr ...

Posted on Sat, 06 Nov 2021 19:46:33 -0400 by jabba_29

SpringSecurity OAuth2 custom token configuration (JWT)

catalog: Custom token configurationReplace default token with JWTExtended JWTParsing JWT in JAVArefresh token Spring Security allows us to customize the token configuration, such as different clients_ The ID corresponds to different tokens, the effective time of the token, the storage strategy of the token, etc; We can also use JWT to replace ...

Posted on Sat, 06 Nov 2021 13:15:43 -0400 by igorek

Learning and using spring security

Reference link: spring security - Basic Introduction (I): https://blog.csdn.net/qq_22172133/article/details/86503223 Take you to Spring Security!: https://www.cnblogs.com/lenve/p/11242055.html 1 Introduction The core functions of spring security mainly include: Certification (who are you) Authorization (what can you do) Attack protection (ag ...

Posted on Fri, 05 Nov 2021 01:21:58 -0400 by darga333

@ Pointcut pointcut expression in Spring AOP

Pointcut expression type The expression types of pointcut of standard AspectJ Aop are very rich, but Spring Aop only supports 9 of them, and a total of 11 (10 + 1) types of expressions are extended by Spring Aop, as follows. Execution: it is generally used to specify the execution of methods. It is used most. within: Specifies the execution of ...

Posted on Thu, 04 Nov 2021 17:22:51 -0400 by Khrysller