Talk about how to integrate JSP view technology in Spring Boot
Some projects are old, and the view technology used is still JSP. Now it is required to turn these old projects into Spring Boot projects, so that they can be packaged into Docker images and then deployed to containers for management.
For convenience of explanation and verification. We created a new Spring Boot project. Then integrate JSP ...
Added by joePHP on Sat, 20 Nov 2021 15:55:08 +0200
SpringSecurity microservice permission scheme
1. What is micro service
1.1 origin of microservices: Microservices were first proposed by Martin Fowler and James Lewis in 2014. Microservice architecture style is a way to use a set of small services to develop a single application. Each service runs in its own process and uses lightweight mechanisms to communicate, usually HTTP API s. These ...
Added by berridgeab on Sat, 20 Nov 2021 10:45:44 +0200
Source code analysis of dependency injection in Spring
Underlying schematic flow chart of dependency injection: https://www.processon.com/view/link/5f899fa5f346fb06e1d8f570
1, How many dependency injection methods are there in Spring?
First, there are two types:
1. Manual injection 2. Automatic injection
1. Manual injection
When defining beans in XML, it is manual injection, because progr ...
Added by Danno13 on Sat, 20 Nov 2021 08:04:44 +0200
Handwritten spring Chapter 5 - simplify user operations and complete bean container initialization based on xml
preface
Through the previous article, we completed the initialization of the bean container, but we can observe that the steps of completing one container initialization are very cumbersome. It's better to inject only a few beans. Once there is a scenario where dozens or hundreds of beans need to be injected, so that users need to add bean ...
Added by dotwebbie on Sat, 20 Nov 2021 07:25:28 +0200
You must understand and can understand microservice series 3: service invocation
After understanding the service registration and de registration, it's time to go to the service invocation phase.
Before calling the service, you need to assemble the request header and request body, build the client object, and call the remote service through the url address of the service provider. Although this method can realize remote ca ...
Added by tgh on Sat, 20 Nov 2021 06:22:27 +0200
SpringBoot auto assembly
What is SpringBoot auto assemblyHow does SpringBoot implement automatic assembly
Note: the source code analysis part is based on spring 5.0.4, and the springboot version is 2.0.0.RELEASE
What is SpringBoot auto assembly
When using SpringBoot to develop applications, we can build a smooth running engineering code very quick ...
Added by quecoder on Fri, 19 Nov 2021 23:25:59 +0200
spring security Learning Notes
spring security Learning Notes
1. Introduction to spring security
The core functions of spring security mainly include
Certification (who are you)Authorization (what can you do)Attack protection (against identity forgery)
Its core is a set of filter chains, which will be automatically configured after the project is started. The core is the ...
Added by iamtheironman on Fri, 19 Nov 2021 20:20:39 +0200
Component injection in container
@Configuration+@Bean
Front
Create User and Pet classes
public class User {
private String name;
private Integer age;
public User(){
}
public User(String name, Integer age) {
this.name = name;
this.age = age;
}
public String getName() {
return name;
}
public void setName(String n ...
Added by brandon99999 on Fri, 19 Nov 2021 16:31:29 +0200
Java foundation 05 (program flow control)
Scanner: get different types of variables from the keyboard
Specific implementation steps
① Guide Package
import java.util.Scanner;
② Instantiation of Scanner:
Scanner scan = new Scanner(System.in);
③ Call the relevant methods of the Scanner class to obtain the specified type
int age = scan.nextInt();
System.out.println(age);
...
Added by nexgen_x on Fri, 19 Nov 2021 11:03:53 +0200
Circuit breaker function of Spring Cloud Gateway
Welcome to my GitHub
https://github.com/zq2599/blog_demos
Content: classification and summary of all original articles and supporting source code, involving Java, Docker, Kubernetes, DevOPS, etc;
Overview of this article
Learn more about the circuit breaker function of Spring Cloud Gateway:
Let's talk about theory first
Then dete ...
Added by oneofayykind on Fri, 19 Nov 2021 06:47:56 +0200