Can you say all the design patterns used in Spring?
This is the first article in the Spring interview question series. The theme of this article is: the design patterns involved in Spring and how to answer in the interview as comprehensively, accurately and deeply as possible.
This article only answers one question:
What design patterns are used in Spring? How are the differences realized?
...
Posted by AcidCool19 on Sat, 29 Jan 2022 05:41:07 +0100
Spring interview must learn - AOP/IOC
SpringIOC/AOP
There are two unavoidable contents in each interview:
Pre knowledge: dynamic agent, static agent, singleton mode, factory mode and singleton lock
IOC: inversion of control
Description: OOP is a design principle and the core of Spring framework Reason for use: A B two types attract each other to call B in A. Traditional: A ac ...
Posted by mastermike707 on Sat, 29 Jan 2022 04:07:26 +0100
9 - Spring5 learning notes - JDK dynamic proxy, AOP operation terms
JDK dynamic agent
1. Use JDK to dynamically create Proxy objects by using the methods in the Proxy class
(1) Call the newProxyInstance method
Static object newproxyinstance (classloader, class <? > [] interfaces, invocationhandler h) Returns an instance of the proxy class of the specified interface that dispatches method calls to th ...
Posted by Sorrow on Fri, 28 Jan 2022 04:42:48 +0100
My new colleague asked me, what is spring AOP aspect oriented programming? After my first wave of operation, he said to invite me to dinner!
Spring AOP aspect oriented programming
AOP (aspect oriented programming), one of the three core ideas in Spring:
In the software industry, AOP is the abbreviation of Aspect Oriented Programming, which means: Aspect Oriented Programming, a technology to realize the unified maintenance of program functions through precompile and runtime dynam ...
Posted by webmazter on Thu, 27 Jan 2022 12:29:23 +0100
From 0 to 1, build spring cloud alibaba micro service large application framework (Mini cloud) and build authentication service (authentication / resource separation version) oauth2 0 (medium)
This paper follows the above Build spring cloud alibaba microservice large application framework from 0 to 1 (III) (Mini cloud) build authentication service (authentication / resource separation version) oauth2.0 (Part I)
It still introduces the construction details of the certification center
1. Process introduction
The overall process is ...
Posted by vponz on Wed, 26 Jan 2022 18:37:40 +0100
Mybatis prints the complete SQL and presents it to the front end
survey
In the recent report writing function, when the data is inaccurate, you need to check the SQL running on the current interface and compare whether there is a problem with the SQL. Then you need to get the SQL statement running on the interface on the business side. The realization of this function is mainly considered from two aspects. ...
Posted by zampu on Wed, 26 Jan 2022 08:28:20 +0100
Interface permission control (springboot)
Principle: first, call login, and a token will be passed to the front end. Later interfaces need to use this token. The front end needs to put the token into the request header and pass it when calling the interface. After the back end obtains the token, compare the obtained token with that in the database. If it is the same, it means that it h ...
Posted by Develop_Sake on Wed, 26 Jan 2022 03:15:03 +0100
Service the method in this class calls another method, and the transaction does not take effect & the AOP log service does not generate problems
[question]
I don't think I need to introduce Spring's declarative transactions more. In a word, "since using Spring AOP, transaction management is really easy, really easy; transaction management code is gone, brain is not sour, hands are not painful, and transactions are fully equipped at one time; lightweight, easy to test, hey!". ...
Posted by btfans on Tue, 25 Jan 2022 08:32:46 +0100
First knowledge of Spring framework
Getting to know Spring
Spring is a lightweight application framework with strong reusability and super adhesion. It provides IOC, AOP, ORM integration, WEB integration, etc
The main core is: control inversion, face section
IOC: it means to reverse resources to other threads. It is an object-oriented design idea
AOP: aspect oriented programm ...
Posted by spectacularstuff on Sun, 23 Jan 2022 23:34:50 +0100
Android AOP programming -- Javassist Foundation
What is Javassist
This is Javassist official website Description on:
Javassist (Java programming assistant) makes Java bytecode operation simple. It is a class library for editing bytecode in Java; It enables Java programs to define a new class at run time and modify it when the JVM loads the class file. Unlike other similar bytecode editors, ...
Posted by rkeppert on Fri, 21 Jan 2022 15:44:00 +0100