Analysis of SpringBoot Automatic Assembly Principle

This article contains: SpringBoot's automatic configuration principle and how to customize SpringBootStar, etc. We know that when using SpringBoot, we only need to start a Web program directly as follows: @SpringBootApplication public class DemoApplication { public static void main(String[] args) { SpringApplication.run(DemoApplic ...

Posted by howard-moore on Thu, 19 Sep 2019 18:52:49 -0700

Transaction Management Mechanism of SpringBook

What is a transaction? Database transaction refers to a series of operations performed as a single logical unit of work, either completely or not. Transaction processing can ensure that data-oriented resources will not be permanently updated unless all operations in the transactional unit are succes ...

Posted by auro on Thu, 19 Sep 2019 01:04:49 -0700

Nacos Configuration Service Principle

Nacos Client configuration mechanism spring Load Remote Configuration Before we understand the NACOS client configuration, let's see how spring loads the remote configuration. Spring provides an extended interface for loading remote configurations, PropertySourceLocator. Here's a simple example: Implementing Property Source Locator public class ...

Posted by ShiloVir on Mon, 16 Sep 2019 21:46:19 -0700

Order Module Database Table Resolution

SpringBoot e-commerce project mall (20k+star) address: https://github.com/macrozheng/mall abstract This paper mainly parses the function related tables of order return and the reason of order return, using the form of database table and function comparison. Order Return Related table structure Order Return Request Form Mainly used to store mem ...

Posted by brooky on Mon, 16 Sep 2019 19:38:32 -0700

Analysis of Commodity Module Database Table

SpringBoot e-commerce project mall (20k+star) address: https://github.com/macrozheng/mall abstract This paper mainly analyses the tables of three functions: commodity classification, brand management and commodity types, and adopts the form of comparison between functions and table structure. Table parsing can only annotate some fields that ne ...

Posted by benkillin on Sun, 15 Sep 2019 08:14:24 -0700

TypeFilter magic of Springboot source analysis

Summary: In normal development, I don't know if you've ever thought about it. Why do we use spring's native annotations when we customize annotations (in this case, like @Component, @Service.......)), or just make a comment and use your own facet programming to implement some business logic?This article focuses on sharing how to inject IOC out ...

Posted by limitedreality on Thu, 12 Sep 2019 21:40:37 -0700

Integrated SpringMVC for SpringBoot initial experience

As a developer, we all know that SpringBoot is based on Spring 4.0, which not only inherits the original excellent features of the Spring framework, but also further simplifies the entire process of building and developing Spring applications by simplifying the configuration.In addition, SpringBoot integrates a number of frameworks to resolve i ...

Posted by PHP_ColdFusion on Wed, 11 Sep 2019 09:58:59 -0700

SpringBook Profile Chapter

SpringBoot configuration file defaults to application.properties, but this chapter focuses on yaml file configuration, because the current trend is to use yaml, which is a data description language similar to the subset of standard generic markup language XML, and its syntax is much simpler than XML. The pom file is posted at the end: Custom ...

Posted by cody7 on Sun, 08 Sep 2019 23:51:11 -0700

SpringBoot integrates Netty + Websocket to realize NIO communication

Long-connection services are needed in recent projects to specifically integrate Netty+Websocket. Our system needs to actively push order messages to users, and the function of forcing users to go offline also needs long connections to push messages. ...

Posted by WakeAngel on Sat, 07 Sep 2019 03:38:53 -0700

SpringBoot Async asynchronous call

SpringBoot Async asynchronous call Asynchronous methods are sometimes needed in development. SpringBoot provides an asynchronous method that can be easily used with only two annotations, @Async and@EnableAsync annotations. SpringBoot version 2.x ...

Posted by bjdouros on Sat, 07 Sep 2019 01:46:21 -0700