spring boot default single thread queuing run timing task problem record

**Problem Description: when using the default scheduled tasks of springboot, if there are multiple tasks, the framework will only start one thread for execution by default, which will cause some tasks cannot start execution at the specified time** **In addition, a separate record will be written about the synchronization lock of timed tasks un ...

Posted by anakadote on Sat, 14 Dec 2019 16:03:57 +0100

Spring boot extends URLClassLoader to implement nested jar loading

To: https://segmentfault.com/a/11900013532009 In the last article Spring boot application startup principle (1) embedding startup script into jar The principle of how springboot integrates the startup script and Runnable Jar into Executable Jar is introduced in so that the generated jar/war file can be started directly This article will show h ...

Posted by greywire on Fri, 13 Dec 2019 10:57:49 +0100

Enterprise spring boot tutorial spring boot integrates mongodb

Preparation Install MongoDB jdk 1.8 maven 3.0 idea Environmental dependence Introduce spring boot starter data mongodb dependency in pom file: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-mongodb</artifactId> </depen ...

Posted by penguinmasta on Mon, 09 Dec 2019 06:08:11 +0100

Spring Cloud Alibaba:Nacos Used as Registry and Configuration Center

SpringBoot e-commerce project mall (20k+star) address: https://github.com/macrozheng/mall abstract Spring Cloud Alibaba is dedicated to providing one-stop solutions for microservice development. As one of its core components, Nacos can be used as a registry and configuration center. The usage of Nacos is described in detail in this article. In ...

Posted by nicephotog on Sat, 07 Dec 2019 10:57:33 +0100

SpringBoot Source Text: Deep analysis of how SpringBoot eliminates web.xml

1. Preface Start with this blog post and officially start the Spring and SpringBoot Source Analysis journey.This may be a long process, because I have read the source code before is very one-sided, Spring source does not have a systematic understanding.From the beginning of this article, I will keep updating and strive to have a systematic und ...

Posted by xeelee on Fri, 06 Dec 2019 12:36:19 +0100

Getting started with SpringBoot 16, adding support for tymeleaf template

Project basic configuration reference article Getting started with SpringBoot 1. Create a new SpringBoot project with myEclipse , use myEclipse to create a new SpringBoot project. Now let's add a log4j2 support to the project. The way of adding is very simple. It only needs two steps. The specific content is as follows: 1. Add thmeleaf suppo ...

Posted by RosieisSweet on Sun, 01 Dec 2019 22:16:09 +0100

RocketMQ quick start

How to use 1. Introduce rocketmq client   <dependency> <groupId>org.apache.rocketmq</groupId> <artifactId>rocketmq-client</artifactId> <version>4.1.0-incubating</version> </dependency> 2. Write Producer   DefaultMQProducer producer = new DefaultMQProducer("producer_demo"); //Specify the Name ...

Posted by latvaustin on Fri, 29 Nov 2019 17:02:05 +0100

[SpringBoot]Springboot+mybatis multi-data source configuration scheme

There are many demand scenarios for multiple data sources, while springboot only provides a single data source configuration, so when we need to configure multiple data sources, we need to do it by ourselves. The configuration of multiple data sources described in this article distinguishes different data sources by subcontracting, that is, co ...

Posted by webren on Thu, 28 Nov 2019 03:58:21 +0100

Springboot Series Do you really know Swagger documentation?

Preface At present, it is quite popular to build a microservice using Springboot in Java. When building a microservice, most of us choose to expose a REST API for invocation.Or the company uses a separate front-end and back-end development model where front-end and back-end work is developed by completely different engineers.Maintaining a compl ...

Posted by tristanlee85 on Tue, 26 Nov 2019 02:42:03 +0100

maven creates spring boot project

There are several ways to create a spring boot project with maven. Using spring boot starter parent and spring boot dependencies, you can also use two ways to create a spring cloud project. It is recommended to use dependency management and use IDEA to create a spring boot project directly! I. using spring boot starter parent <! ...

Posted by outpost on Mon, 25 Nov 2019 21:39:30 +0100