Spring cloud part of the source code: Eureka Client registration

1: use SpringCloud Framework procedures, in addition to Eureka Other services are Eureka Client. By default, the Eureka Register your own service instance and Eureka The server obtains registration information periodically. Introduce in application spring-cloud-starter-eureka Dependent packages can be imported Eureka Clinet:spring-cloud-netflix ...

Posted by Cronje on Wed, 04 May 2022 01:39:08 +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

Common configuration of Maven's setting.xml and pom.xml

What is Maven: The official definition of Maven is: Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project’s build, reporting and documentation from a central piece of information. Translation: Apache Maven is a software project management and ...

Posted by ChibiGuy on Tue, 03 May 2022 20:15:50 +0300

Can JAVA configuration and annotation configuration in spring completely replace XML configuration?

preface Spring boot is a new framework provided by pivot team. It is designed to simplify the initial construction and development process of new spring applications. The framework uses a specific way to configure, so that developers no longer need to define a templated configuration. Spring boot adopts the method of agreed configuration, whic ...

Posted by hothientuan on Tue, 03 May 2022 12:38:34 +0300

Springboot mini - Solon details - use, customization and extension of Solon's verification framework

Springboot min -Solon explain series: Springboot mini - Solon details (I) - quick start Springboot mini - Solon details (II) - the core of Solon Springboot mini - Solon details (III) - Solon's web Development Springboot mini - Solon details (IV) - Solon's transaction propagation mechanism Springboot mini - Solon explanation (V) - Solon Plugin o ...

Posted by DepretioN on Tue, 03 May 2022 08:42:04 +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

I didn't expect that Springboot can format the global date like this. It's a little fragrant!

Say in front Recently, several colleagues in the Department have been wronged and left one after another. After three years of working together, they were reluctant to part with each other. After all the formalities were properly handled, they were sent out of the company after greeting. Several elder brothers smiled at me when they left. I imm ...

Posted by oops73 on Mon, 02 May 2022 04:57:44 +0300

SpringBoot multi-data source transaction solution

backgroundA previous article provided an integration scheme for springboot multi-data source dynamic registration switching. In the subsequent use process, it was found that there were various bug s in transaction control, and it was decided to analyze and solve this problem.RecapThe multi-data source switching process structure diagram is show ...

Posted by ravi_aptech on Sun, 01 May 2022 18:35:48 +0300

Spring boot integrates Spring Security

Introduction to spring security Spring Security is a powerful and highly customizable authentication and access control framework. It is the de facto standard for protecting spring based applications. Spring Security is a framework that focuses on providing authentication and authorization for Java applications. Like all spring projects, the ...

Posted by Rose.S on Sun, 01 May 2022 12:00:28 +0300