SpringBoot startup process and project creation

catalog Project creation Interpretation of spring boot project architecture SpringBoot startup process Execution entry SpringApplication instantiation Spring application running appendix Project creation Here we use IDE to create projects. When the scaffold is completed, I'm going to get anoth ...

Posted by Dilbert137 on Tue, 16 Jun 2020 09:28:26 +0200

A mongo Optimization -- Query stability check

Because an interface is too slow... Try to optimize (/ baldness) Spring data used- mongo:2.1.3 mongo driver: 3.8.2 You can see me First query sentence. Optimization ideas paging Original page query Due to the large amount of data, the query was slow, and it was later found that there was no need to use aggregation at all. With aggregate que ...

Posted by kat_jumper_33 on Tue, 16 Jun 2020 07:39:31 +0200

Spring Boot encrypts and decrypts configuration files at startup

Spring Boot Application events and listeners Find application.yml Read operation of. from spring.factories View in # Application Listeners org.springframework.context.ApplicationListener=\ org.springframework.boot.context.config.ConfigFileApplicationListener,\ ConfigFileApplicationListener this object pair application.yml Read operation Li ...

Posted by literom on Tue, 16 Jun 2020 05:41:14 +0200

Spring Boot Principle Deep-Dependent Management

2.2 Deep Principle The traditional Spring framework implements a WEB service, which needs to import various dependent JAR packages, then write corresponding XML configuration files, etc. Compared with Spring Boot, it is more convenient, fast and efficient.So how does Spring Boot really do that? 2.2.1 Dependency Management Question: Why doesn't ...

Posted by joshi_v on Mon, 15 Jun 2020 21:30:25 +0200

Spring Boot - In-depth Principles - Customize starter

2.2.3 Custom starter Spring Boot is made up of many Starters (a series of starter plug-ins that are automatically configured), and it is also because of starter that Spring Boot is popular. starter is a very important part of Spring Boot and can be understood as a pluggable plug-in because it allows developers who use a feature to ignore the p ...

Posted by moe on Mon, 15 Jun 2020 21:25:55 +0200

The first part of Spring source code is open and complete! How is the configuration file loaded?

Last week, I put my words out. It seems that all my friends are looking forward to it. In fact, SongGe can't wait to start a new series. However, the current Spring Security series is still in the process of serialization and has not been completed yet. It's a series of events. Keep your spirits up, and then you'll lose three times. It must be ...

Posted by one on Mon, 15 Jun 2020 05:11:04 +0200

Configuration and principle analysis of Spring Security Oauth2 SSO single sign on

  Single sign on (SSO) is a one-time authentication login by users. After a user logs in on the identity authentication server once, he / she can gain access to other associated systems and application software in the single sign on system. At the same time, this implementation does not require the ...

Posted by Jay on Mon, 15 Jun 2020 04:15:32 +0200

Spring Cloud notes - Hystrix circuit breaker

1. Overview 1. Problems faced by distributed system In the complex distributed architecture system, the failure of mutual service calls cannot be avoided. If the call link of A service is relatively long, the probability of such call failure will be higher. For example, if A calls B, B calls C, C c ...

Posted by pelleas1022 on Sun, 14 Jun 2020 10:11:18 +0200

Ordering system - Message 02 - websocket message push

1, What is WebSocket WebSocket: communication between client and server WebSocket makes the data exchange between the client and the server easier, allowing the server to actively push data to the client. In the WebSocket API, the browser and server only need to complete one handshake, and they can di ...

Posted by ttroy on Sun, 14 Jun 2020 10:02:44 +0200

Using AspectJ to implement AOP function in Spring 5 framework

1. Preface The most common way in development is to use Aspect to realize AOP function. Next, we will simply use @ Aspect to realize AOP Aspect oriented programming. For the usage of Spring native AOP, please refer to the previous blog post AOP proxyfactory underlying implementation of spring 5 frame ...

Posted by jerryroy on Sun, 14 Jun 2020 07:54:54 +0200