spring boot -- startup configuration principle

spring boot – how the boot configuration works 1, @ SpringBootApplication annotation When we create a new project, the springboot application startup portal will appear, as shown below: @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); ...

Posted by waltonia on Wed, 04 May 2022 23:05:10 +0300

Introduction to Java architecture and dubbo

1. Evolution process of software architecture The development of software architecture has experienced the evolution process from single architecture, vertical architecture, SOA architecture to micro service architecture. Let's learn about these architectures respectively. 1.1 single structure Architecture Description: All functions are con ...

Posted by Xproterg^vi on Wed, 04 May 2022 09:36:50 +0300

Spring boot + mybatis + spring technology integration to realize CRUD operation of commodity brand module

Business description Requirement description There is a commodity subsystem in any e-commerce system, and there will be a brand information management associated with commodities. In the current business system design, we want to design and implement the management of commodity brand information Business architecture analysis In brand informati ...

Posted by wobbit on Wed, 04 May 2022 07:44:41 +0300

Spring learning notes - concepts and IOC - based on xml

I. Spring concepts and learning notes (IOC) - based on xml concept The core of lightweight java development framework is IOC (inversion of control) and AOP (aspect oriented programming) The function is to decouple, object decouple and module decouple, which can only reduce the coupling Container to place java objects tomcat is also a containe ...

Posted by simon71 on Tue, 03 May 2022 23:36:30 +0300

Are @Schedule scheduled tasks executed in parallel?

@Schedule is a common timed task annotation. It is generally used in business logic that needs to be executed regularly. It is mostly used for single-machine tasks. If it is used in distributed tasks, it is necessary to ensure data consistency through distributed locks. If there are multiple scheduled tasks defined by the @Schedule annotatio ...

Posted by ssailer on Tue, 03 May 2022 20:21:48 +0300

spring aop unified daily and exception handling

AOP is a technology that achieves unified maintenance of program functions through pre-compilation and runtime dynamic agents. AOP reduces the coupling of various parts of the business logic and improves the reusability of the program. Why use AOP? The code we write will inevitably have some running errors. Usually, we need to wrap the error ...

Posted by gplaurin on Tue, 03 May 2022 15:34:20 +0300

Spring Cloud overview and writing service provision and service consumption

1spring cloud getting started overview 1.1 what is spring cloud SpringCloud, based on SpringBoot, provides a set of microservice solutions, including service registration and discovery, configuration center, full link monitoring, service gateway, load balancing, fuse and other components. In addition to the highly abstract encapsulation of o ...

Posted by dasmon777 on Tue, 03 May 2022 08:04:33 +0300

[Java advanced camp] Java concurrency -- CountDownLatch + CyclicBarrier

// There are unreconciled orders while (existUnreconciledOrders()) { // Query unreconciled orders pOrder = getPOrder(); // Query dispatch order dOrder = getDOrder(); // Perform reconciliation Order diff = check(pOrder, dOrder); // Write difference to difference Library save(diff); } Performance bottleneck [ ...

Posted by genesysmedia on Tue, 03 May 2022 06:57:07 +0300

Spring source code: a preliminary understanding of the construction and use of spring projects

Official website address: https://github.com/spring-projects/spring-framework Chinese documents: https://github.com/DocsHome/spring-docs/blob/master/SUMMARY.md Family list: https://spring.io/projects 1, First spring project (Xml mode) 1. Import pom file <dependency> <groupId>org.springframework</groupId> <art ...

Posted by nyfael on Mon, 02 May 2022 23:07:48 +0300

Day133. Exception handling - spring MVC

exception handling 1. Overview of exception handling Spring MVC handles exceptions of the program through HandlerExceptionResolver, including Handler mapping, data binding and exceptions occurring during the execution of the target method. Implementation class of HandlerExceptionResolver provided by spring MVC 2. HandlerExceptionReso ...

Posted by marknt on Mon, 02 May 2022 18:17:07 +0300