Spring MVC learning notes - (power node video) is constantly updated

catalogue 1. Basic concepts 1.1 spring MVC core: dispatcher servlet (central scheduler) 2. Create the first spring MVC project 2.1 create a web maven template 2.2 editing web XML file, configuring the central scheduler Version 2.2.1 is too low, replace with a higher version 2.2.2 declare and register the DispatcherServlet, the core objec ...

Posted by dkjohnson on Sat, 15 Jan 2022 08:47:24 +0100

Solve the problem of Spring transaction and lock conflict invalidation

background During business, it is necessary to ensure that a user can only insert one piece of data into the wallet table. When the service adds the synchronize lock and searches before insertion, one day it suddenly finds that multiple pieces of data appear in a short time. Through the log, it is found that there are multiple identical reques ...

Posted by gdure on Sat, 15 Jan 2022 02:47:52 +0100

Principle of automatic configuration in SpringBoot and making JAR package that can be assembled automatically

In SpringBoot, classes with certain conditions will be automatically assembled into a Bean in the container. Here, you need to know about configuration classes: the classes wrapped by the following three annotations are configuration classes: @SpringBootApplication@SpringBootConfiguration@Configuration Personally, the Configuration class ...

Posted by monkuar on Sat, 15 Jan 2022 02:29:47 +0100

Power node spring framework learning notes - King crane spring integration MyBatis

3, spring integrates MyBatis Official download address Power node spring data Video viewing address https://www.bilibili.com/video/BV1nz4y1d7uy Integrating MyBatis with Spring mainly solves the problem of handing over SqlSessionFactory objects to Spring for management You only need to register the SqlSessionFactoryBean, the object gener ...

Posted by dusty on Fri, 14 Jan 2022 10:14:03 +0100

Some understanding and implementation of spring AOP

Problem introduction (key points) 1 what is the target object? 2 how to find the method that the target object needs to be enhanced (modified)? 3 how to handle the methods to be enhanced (modified)? Spring AOP related concepts The bottom layer of Spring's AOP implementation is to encapsulate the code of the dynamic agent. After encapsu ...

Posted by bznutz on Fri, 14 Jan 2022 07:34:40 +0100

How to use MyBatis

What is MyBatis? MyBatis is an excellent persistence layer framework, which supports customized SQL, stored procedures and advanced mapping. MyBatis avoids almost all JDBC code and manually setting parameters and getting result sets. MyBatis can use simple XML or annotations to configure and map native information, and map interfaces and Java ...

Posted by webrajesh on Fri, 14 Jan 2022 03:30:50 +0100

Spring Security Learning Notes

SpringSecurity 1, Overview Official website: https://spring.io/projects/spring-security SpringSecurity official websiteSpring security is a security framework based on authentication and authorization developed by spring companyAuthentication: login processAuthorization: grant corresponding operation permissions during login General permi ...

Posted by Bill_Draving on Fri, 14 Jan 2022 02:16:47 +0100

6, Ribbon load balancing service invocation of SpringCloud microservice

8. Ribbon load balancing service call 8.1 general 1. What is ribbon Spring Cloud Ribbon is a set of client-side load balancing tools based on Netfix Ribbon. Ribbon is an open source project released by Netfix. Its main function is to provide software load balancing algorithms and service calls on the client. The ribbon client componen ...

Posted by thyscorpion on Thu, 13 Jan 2022 21:45:26 +0100

Learning Java generics

Although I have written Java code for some time, I still can't figure it out and give up selectively as long as I see generics. However, I found that generics are used in many places when looking at the code of the company leaders today, so I'll sort out the generics I understand today. What is generics generic programming is a style or pa ...

Posted by kjtocool on Thu, 13 Jan 2022 21:28:22 +0100

The Gaode interviewer asked me: can the service run after the JVM memory overflows? I have a smooth operation

At the beginning of the article, let's ask a question. If OOM occurs in one thread of a java program, can other threads in the process still run? Next, do an experiment to see if the six kinds of JVM programs can be accessed after OOM. Here I use a springboot program. /** * @author : charon * @date : Created in 2021/5/17 8:30 * @descripti ...

Posted by PrivatePile on Thu, 13 Jan 2022 21:07:50 +0100