SpringBoot foundation of microservice series: filter, interceptor and Aop aspect
SpringBoot filter, interceptor, Aop section
1, Filter
Add the following annotation to the startup class: @ ServletComponentScan. Filter is a Servlet container level filter. It can filter almost all requests based on function callback. The complete process of filter: filter preprocesses the user request, then sends the request to the Ser ...
Posted by apw on Wed, 02 Mar 2022 12:38:33 +0100
Spring Boot ------- employee management system
Spring Boot (IX) -- employee management system
18. Employee management system
18.1 preparation
18.1.1 front page
Place the html page in the templates folderPut css, js and img into the static folder
18.1.2 entity class preparation
Department
public class Department {
private Integer id;
private String departmentName;
public ...
Posted by arcticwolf on Wed, 02 Mar 2022 12:06:11 +0100
Four uses of static keyword
Among the keywords of java, static and final are two keywords that we must master. Different from other keywords, they have a variety of uses, and when used in a certain environment, they can improve the running performance of the program and optimize the structure of the program. Let's first learn about the static keyword and its usage.
stati ...
Posted by mark_nsx on Wed, 02 Mar 2022 11:31:26 +0100
JavaWeb learning notes (Servlet event listener)
Overview of Servlet event listener
In the development of relationship, it is often necessary to monitor some events, such as mouse click events and key press events. At this time, you need to use event listener. There are several important components in the listener: (1) Event: a user action (2) Event source: the object that generated the ...
Posted by reckdan on Wed, 02 Mar 2022 11:08:04 +0100
4 Java Foundation__ operator
Operator classification:
Arithmetic operator:
① Except (/):
class AriTest
{
public static void main(String[] args)
{
int num1=12;
int num2=5;
int result1=num1/num2;
double result2=num1/num2;
double result3=num1/num2+0.0;
double result4=num1/(num2+0.0);
double result5=(double)num1/num2;
System.out.println(result1); //2
...
Posted by stemp on Wed, 02 Mar 2022 10:05:18 +0100
The ability of silent living detection can effectively avoid the risk of user real name authentication
Silent living body detection is the face living body detection capability of Huawei HMS Core machine learning service, that is, without the user's cooperation to make mouth opening, head turning, blinking and other actions, it can capture the face in real time and quickly judge whether it is a living body. The user has convenient use process an ...
Posted by geo3d on Wed, 02 Mar 2022 08:05:26 +0100
How to customize Spring Boot Starter? I finally learned today~
Hello, I'm CodingLong~~
This article mainly describes the concept and naming specification of Spring Boot Starter and how to customize a Starter. Let's start today.
1 what is starter
The Starter of Spring Boot is a set of convenient dependency descriptors, which can be made into jar packages through Maven and directly referenced in your ...
Posted by khovorka on Wed, 02 Mar 2022 06:55:26 +0100
JVM tuning
1, Overview of tuning
1.1 purpose of tuning
Prevent the occurrence of OOM, and carry out JVM planning and pre tuningSolve various OOM problems in program operationReduce the frequency of Full GC and solve the problems of slow operation and jamming
2, Problems of production environment
2.1 heap overflow
reason: 1. There may be large object ...
Posted by Blob on Wed, 02 Mar 2022 06:37:29 +0100
Java learning notes
catalogue
1: List
II: set
1: List
1.1 overview and characteristics of list set:
List collection overview:
An ordered set (also known as a sequence), in which the user can accurately control the insertion position of each element in the list. Users can access elements through integer indexes and search for elements in the list.Un ...
Posted by Kryptix on Wed, 02 Mar 2022 05:19:17 +0100
Practice the design pattern of GoF 23: SOLID principle
Abstract: This paper will describe the interface isolation principle and Dependency Inversion Principle in SOLID principle.
This article is shared from the Huawei cloud community "practice the design pattern of GoF 23: SOLID principle (Part 2)", author: yuan Runzi.
In< Practice 23 design modes of GoF: SOLID principle (I) >In ...
Posted by Atanu on Wed, 02 Mar 2022 05:13:32 +0100