Take you hand in hand to build spring cloud and build a complete micro service architecture from public modules

Today, let's start with the public module and build the spring cloud architecture. If you happen to be doing this, I hope it can help you Common module encapsulation In a complete microservice architecture, the processing of string and date is often the most. In some security application scenarios, encryption algorithms will also be used. In ...

Added by aeafisme23 on Wed, 09 Feb 2022 13:53:09 +0200

Use of asynchronous call Async

Basic case, synchronous call and execution 1. Create a new springboot project <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> ...

Added by domainshuffle on Wed, 09 Feb 2022 13:06:42 +0200

Spring IOC series learning notes 10: createBean method

Original address programmer Jiong Hui boss preface Go ahead Explanation of getBean Enter the createBean method. Code block 1: createBean @Override protected Object createBean(String beanName, RootBeanDefinition mbd, @Nullable Object[] args) throws BeanCreationException { if (logger.isDebugEnabled()) { logger.debug("Creating ...

Added by exeterdad on Wed, 09 Feb 2022 09:49:53 +0200

Structured mode-01 agent mode

1, Agent mode ①. concept For some reason, an object needs to be provided with a proxy to control access to the object. At this time, the access object is not suitable or cannot directly reference the target object. The proxy object acts as the intermediary between the access object and the target object ②. structure Abstract Subject c ...

Added by ramtulasi on Wed, 09 Feb 2022 06:43:44 +0200

Implementing distributed system authorization with Spring Security

1 demand analysis The technical solutions reviewed are as follows: 1. The UAA authentication service is responsible for authentication authorization. 2. All requests arrive at the microservice through the gateway 3. The gateway is responsible for authenticating the client and forwarding the request 4. The gateway parses the token a ...

Added by daedalus__ on Wed, 09 Feb 2022 06:08:18 +0200

Difference between static folder and templates folder in springboot (solution to css style loss after page Jump)

springboot had just learned a little. Now it has been driven to the shelves to do a big innovation project. It also encountered many difficulties. Among them, it encountered static and templates folders to store static resources. After jumping, it found that there was only html code. It took a long time to check many big guys' blogs. Here ar ...

Added by ss32 on Wed, 09 Feb 2022 05:51:28 +0200

@The difference between RequestBody and @ RequestParam is comprehensive and detailed

@RequestParam The parameter received by annotation @ RequestParam comes from the requestHeader, that is, the request header. RequestParam can accept properties of simple types or object types. @RequestParam has three configuration parameters: Required indicates whether it is required. The default value is true and must be. defaultValue to s ...

Added by maca134 on Wed, 09 Feb 2022 04:54:20 +0200

The second day of spring study

The second day of spring study Using spring's IoC to implement user's crud (based on xml) Note that three techniques are used in this case : 1,c3p0 2,dbassit 3. Implementing ioc management with spring Environment construction <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmln ...

Added by nuttycoder on Tue, 08 Feb 2022 23:50:21 +0200

5, Annotation for automatic assembly

(the notes of the article are from the video of station b. when you meet the crazy God, you can carry the notes as a study for your reference and study together) Automatic assembly instructions Automatic assembly is a way to use spring to meet bean dependenciesspring will find the bean that a bean depends on in the application context. There ...

Added by spetsacdc on Tue, 08 Feb 2022 23:36:52 +0200

Detailed analysis of Servlet

First of all, let's talk about why we should learn Servlet. The reason is that when learning Spring MVC, I learned that Servlet is its core, and not knowing its principle will cause obstacles to learning Spring MVC, so I decided to write this article for learning. 1. What is a Servlet Servlet (Server Applet), the full name of Java Servlet, ha ...

Added by gtanzer on Tue, 08 Feb 2022 22:06:01 +0200