The story of love between sperm cells and egg cells -- a detailed explanation of Redis distributed lock (illustrated, hand-in-hand building service, detailed code explanation, recommended Collection)

This article involves many related articles. Please take it yourself if necessary (follow the blogger, let's go to big factory happy) VMware installation of CentOS (nanny tutorial, recommended Collection) VMware+CentOS 7 static IP setting method - Nanny level tutorial, recommended collection CentOS 7 turn off firewall CentOS installation ...

Added by kidestranged on Wed, 19 Jan 2022 11:21:18 +0200

Implementing log tracing with springboot

1, Introduction to MDC MDC (Mapped Diagnostic Context) is a function provided by log4j, logback and log4j2 to facilitate logging under multi-threaded conditions. MDC can be regarded as a hash table bound to the current thread, and key value pairs can be added to it. The content contained in MDC can be accessed by code executed in the same thre ...

Added by alexk1781 on Wed, 19 Jan 2022 09:38:44 +0200

Spring Boot quick start Thymeleaf template engine basic use

introduce Official website Introduction of Thymeleaf is a modern server-side Java template engine for both web and standalone environments. Thymeleaf's main goal is to bring elegant natural templates to your development workflow — HTML that can be correctly displayed in browsers and also work as static prototypes, allowing for stronger ...

Added by jayR on Wed, 19 Jan 2022 08:37:31 +0200

Simple project deployment of shiro for springBoot

springboot2. Use Shiro under 0 framework introduce Shiro is an open source project under Apache. It is an easy-to-use security framework that provides many functions, including authentication, authorization, encryption, session management and so on. Shiro uses a relatively simple and easy-to-use authorization method. Shiro is a lightweight fr ...

Added by pleek on Wed, 19 Jan 2022 07:32:43 +0200

docker - prometheus+grafana monitoring and integration into spring boot microservice

1, Prometheus introduction Prometheus, whose Chinese name is Prometheus, is inspired by Google's Brogmon monitoring system. It has been developed by former Google engineers in Soundcloud in the form of open source software since 2012. Version 1.0 was released in June 2016. Prometheus can be seen as an implementation of Google's internal mo ...

Added by Mr. R on Tue, 18 Jan 2022 21:03:55 +0200

SpringBoot integration task

1, Spring Boot and tasks 1.1 asynchronous tasks In Java applications, in most cases, interactive processing is realized through synchronization; However, when dealing with interaction with third-party systems, it is easy to cause slow response. Before, most of them used multithreading to complete such tasks. In fact, in spring 3 After X, ...

Added by michaewlewis on Tue, 18 Jan 2022 19:55:10 +0200

SpringBoot tutorial | configuration files in SpringBoot

4.1 writing of yml and properties As mentioned above, there are two commonly used configuration files in spring: yml and properties. Both are named after application and are usually placed in the resources folder. yml uses indentation to reflect hierarchical management, while properties uses indentation In the form of. There is no difference b ...

Added by lordrt on Tue, 18 Jan 2022 16:43:02 +0200

All JAR packages of JAVA project are packaged, run and deployed as a one-stop solution

1, Scene description The modular management of parent-child project can solve most scenarios and problems of module version and dependency between modules Using spring boot plug-in for project packaging and deployment can solve 90% of the problems of continuous project integration and deployment In the process of project development, wi ...

Added by jmcneese on Tue, 18 Jan 2022 11:47:18 +0200

Authority management in front end and back end separation

In the traditional front and back-end development, permission management is mainly carried out through filters or interceptors (the permission management framework itself also realizes the function through filters). If users do not have a role or a permission, they cannot access a page. However, in the separation of front and back ends, the pa ...

Added by jamesp on Tue, 18 Jan 2022 09:21:47 +0200

Talk about the global exception handling of the springboot project

prefaceIn the past, our business team added @ RestControllerAdvice+@ExceptionHandler to each business micro service to catch global exceptions when handling global exceptions. A leader once asked a question when walking through the code, why should each microservice project write a set of global exception code, why not draw the global exception ...

Added by (RL)Ian on Tue, 18 Jan 2022 08:27:18 +0200