3. Understand the principle of automatic configuration (SpringBoot2)
1.SpringBoot features
1.1 dependency management
Dependency management of parent project
Dependency management
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.4.RELEASE</version>
</parent>
His p ...
Posted by vishal99 on Fri, 28 Jan 2022 14:54:36 +0100
Spring security -- a common method of HttpSecurity
Common methods and descriptions of HttpSecurity
Usually, when using spring security, we will follow the WebSecurityConfigurerAdapter to configure security controls such as what URL to intercept and what permissions to set through the following methods.
/**
* Copy this method to configure {@ link HttpSecurity}
* Typicall ...
Posted by mirana on Fri, 28 Jan 2022 13:07:15 +0100
Java Cglib dynamic agent principle source code analysis
Environment: Java 8
Cglib agent usage
System.setProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY, "E://cglib");
Enhancer enhancer = new Enhancer() ;
enhancer.setSuperclass(PersonDAOImpl.class) ;
enhancer.setCallback(new MethodInterceptor() {
@Override
public Object intercept(Object obj, Method method, Object[] args, MethodProxy pr ...
Posted by Chesso on Fri, 28 Jan 2022 05:51:53 +0100
Let's take a look at the implementation principle of spring MVC core components
In spring MVC, if we need to open the annotation, that is, @ RequestMapping, which we often use, and the @ Controller annotation needs to take effect, we usually use the label "< MVC: annotation driven / >" provided by the spring MVC framework to complete it. So how does this tag complete annotation driven to make annotations ef ...
Posted by Muses on Fri, 28 Jan 2022 05:15:49 +0100
SpringBoot-06 employee management system
SpringBoot-06 employee management system
1, Environment construction
1. Create a new SpringBoot project
The specific steps are shown in the figure:
After that, the project name is given, and then the creation is completed.
The in the red box can be deleted by yourself. It's OK not to delete it.
2. Import static resources
**Sta ...
Posted by meow on Fri, 28 Jan 2022 04:50:38 +0100
Spring5 from entry to grave 01
Spring framework overview
Spring makes it easy to create Java enterprise applications. It provides everything needed to use the Java language in the enterprise environment, supports Groovy and Kotlin as alternative languages on the JVM, and can flexibly create a variety of architectures according to the needs of applications. Starting with Spr ...
Posted by NSW42 on Thu, 27 Jan 2022 16:03:34 +0100
SpringBoot source code analysis
SpringBoot source code analysis (2) automatic assembly demo
preface
The Spring Framework focuses on how to make the management of beans easier and how to let developers manage some configurations generated by beans as little as possible; When we reference beans in other modules, we can automatically create beans and hand them over to sp ...
Posted by geetakhurana on Thu, 27 Jan 2022 15:24:31 +0100
[es] three query usages: from size, search after and scroll
1, The difference between the three
from size:
deep pagination occurs when the page is deeply paged or the size is very large. And the self-protection mechanism of es is max_result_window is 10000. When the number of queries exceeds 10000, an error will be reportedThe implementation principle of this query is similar to the limit in mysql ...
Posted by biopv on Thu, 27 Jan 2022 10:08:15 +0100
Logback Usage Summary
preface
Sorted out the common functions of logback, and recorded some questions in the process of use and the troubleshooting process of problems, so as to prevent yourself from making similar mistakes again. I hope it will be helpful to you passing by.
1, How to use logback
The use of any framework is a three-step process: 1. Impo ...
Posted by RIRedinPA on Thu, 27 Jan 2022 08:10:18 +0100
Spring Boot Web preparation
Spring Boot Web preparation
Import static resourcesCustom home pagejspAssembly extension spring MVCAdd, delete, modify and checkInterceptorInternationalization (switching between Chinese and English)
Import static resources
Static resources under the five paths in the figure can be read
/**,classpath:/WEB-INF/resources/,classpat ...
Posted by drranch on Thu, 27 Jan 2022 07:16:29 +0100