Interviewer: what design patterns does Spring use? Just say three

With regard to design patterns, if used properly, it will make our code more concise and extensible. This article mainly explains how to use policy pattern, factory method pattern and Builder pattern in Spring. 1. Strategy mode The usage of policy pattern is actually relatively simple in Spring. In essence, policy pattern is that there are mu ...

Posted by bucfan99 on Wed, 05 Jan 2022 16:17:49 +0100

Still curd? Encapsulate your own spring boot starter

Reading harvest 👍🏻 Learn to customize spring boot starter👍🏻 Understand the principle of SpringBoot auto configuration Download the source code of this chapter ❤️Development starter❤️Test starter What is Starter Starter is a very important concept in Spring Boot. Starter is equivalent to a module. It can integrate the dependencies require ...

Posted by nimbus on Wed, 05 Jan 2022 15:44:52 +0100

Use Jasypt to encrypt the application s of the SpringBoot project

Use Jasypt to encrypt the application s of the SpringBoot project This article focuses on why to encrypt sensitive information in SpringBoot's application, how to use jasypt spring boot project to encrypt application * and suggestions on encryption strategies. Record some experience of application encryption. What's in the application To ...

Posted by frist44 on Wed, 05 Jan 2022 13:19:34 +0100

Spring AOP source code learning (AOP portal)

preface  how the logic of AOP starts after the AOP function is enabled.1, Bean life cycle  to talk about AOP, you must understand the life cycle of spring beans. The logic of AOP starts at this stage after Bean initialization. The life cycle of Spring Bean is simple, as shown in the figure above:  2, AOP(1) @ EnableAspectJAutoProxy&em ...

Posted by RobertSubnet on Wed, 05 Jan 2022 11:09:01 +0100

Swagger knowledge summary

1, About Swagger In short, Swagger is a tool to help background developers dynamically generate interface documents in front and back-end separated projects, so that background developers do not have to write interface documents, which greatly saves the time of background developers. 2, Swagger quick start Swagger is generally integrated ...

Posted by willc on Wed, 05 Jan 2022 10:55:42 +0100

BeanPostProcessor interface of Spring extension

catalogue 1, Definition 2, Implementation class of custom BeanPostProcessor 3, Registration process analysis of BeanPostProcessor 4, Analysis of execution process of BeanPostProcessor 5, Common subclasses and implementation classes of BeanPostProcessor 6, Summary 1, Definition BeanPostProcessor is an extension interface provided to u ...

Posted by jnewing on Wed, 05 Jan 2022 09:15:17 +0100

It is said that 90% of people don't really understand Spring's dependency injection

preface Spring is certainly no stranger to everyone. It is a barrier that every java developer can't get around. Spring framework provides a complete set of solutions for Java based enterprise applications, which facilitates developers to quickly carry out business development on the basis of the framework. On the official website, we found t ...

Posted by seenu_vas80 on Wed, 05 Jan 2022 07:53:31 +0100

spring learning notes

spring project construction Create a new spring folder in the workspace, then open the folder with IDEA, and create the required module with mavenTo create a webapp folder, you need to click file - > project structure, and then operate according to the following photos spring quick start Use the process (goal: let spring help us ...

Posted by james2010 on Wed, 05 Jan 2022 07:51:39 +0100

SPRING05_BeanFactory overview, hierarchalbeanfactory, listablebeanfactory, DefaultListableBeanFactory archive details

①. What is a bean factory? ①. According to the above schematic diagram of Spring, the whole framework of Spring is actually the process of making things in the factory. If you analyze what the factory does, the whole framework of Spring will be clear ②. When you enter BeanFactory, you can see the core words: Summarize the words in the s ...

Posted by kooper on Wed, 05 Jan 2022 05:39:11 +0100

Spring__ Interpretation of circular dependence

What is circular dependency The creation of class a depends on class B, and the creation of class B depends on class A There are four simple cases DependencyDependency injection modeAre circular dependencies resolvedAB interdependence (cyclic dependency)setter method is used for injectionyesAB interdependence (cyclic dependency)All are inje ...

Posted by Pointybeard on Wed, 05 Jan 2022 01:33:17 +0100