Spring cloud project restart gracefully: tomcat closes the process

This article mainly talks about the process of tomcat "rough stop" and several key information in the solution. The detailed solution steps will be in the following articles. Overall structure Let's take a look at the overall architecture of Tomcat to get a general understanding of the relationship between Tomcat components:Source:&lt ...

Posted on Sat, 06 Jun 2020 22:58:32 -0700 by HalfaBee

Spring resource loading

In Java, resources from different sources are abstracted into URL s, and the read logic of resources from different sources is processed by registering different handlers (urlstreamhandlers). However, the URL does not have a default definition of a handler relative to resources such as Classpath or ServletContext, although you can register your ...

Posted on Fri, 05 Jun 2020 23:20:24 -0700 by phpfreakjav

Spring obtains single instance process

After reading this article, you will get How to do circular dependency detection for prototype type bean s in Spring How to do circular dependency detection for singleton type bean s in Spring preface Follow up on the previous article Spring obtains single instance process (1) Let's continue to analyze the following process this time As we ...

Posted on Fri, 05 Jun 2020 22:40:07 -0700 by jini01

Spring's injection methods of Bean

catalog Registration method Bean to register Specific implementation 1. Register through configuration XML 2. Register through @ Bean 2. Dynamic injection through Beanfactory summary appendix Registration method Register via configuration XML Register with @ Bean Injection through Beanfact ...

Posted on Fri, 05 Jun 2020 22:14:16 -0700 by Grant Holmes

aop implementation of spring framework

1. What is AOP AOP(Aspect Oriented Programming) means: face-to-face programming, a technology to realize the only maintenance of program functions through precompiling and runtime dynamic agent. AOP is the continuation of OOP, a hot spot of software development, an important content of spring framewor ...

Posted on Fri, 05 Jun 2020 21:49:15 -0700 by jmgrhm

What is the difference in the observer pattern in a master's eye?

The Observer mode is one of the many modes used. For the first time, I just write an example based on the introductory demo, but I don't know where to use it, how to use it, it's a textbook. Individuals like blogs or materials that are more practical. Recently I was hungry to make up for it. I feel a l ...

Posted on Fri, 05 Jun 2020 10:05:18 -0700 by wilku

MyBatis integrates dual data sources

Sometimes in a project, there are situations where you need to connect two databases. This article will talk about how to use dual data sources (or multiple data sources) in combination with Spring and Mybatis. Background introduction The key to implementing multiple data sources in this article is the AbstractRoutingDataSource provided by Spri ...

Posted on Thu, 04 Jun 2020 11:09:39 -0700 by smallflower

ZTree tool class summary, including: add, edit and delete nodes, and submit to the background

Related reading: Listen to switch switch switch in X-admin2.2, get attribute value and change status When Spring Boot integrates X-admin2.2, the Layui Font Icon fails to display normally or the solution to the problem of garbled code X-admin2.2 form submission method and precautions Error resolving template of Spring Boot ...

Posted on Tue, 02 Jun 2020 07:52:08 -0700 by genecide

Analysis of Spring Boot Autoconfiguration Principle for Springboot Series

Articles have been included in Github.com/niumoo/JavaNotes Welcome to Star and Instructions. Welcome to my attention Public Number , articles are updated weekly. Note: This Spring Boot series of articles is based on Spring Boot version v2.1.1.RELEASE for learning analysis, which may vary slightly from version to version. Preface About what ...

Posted on Mon, 01 Jun 2020 18:20:40 -0700 by atoboldon

Thread pool continued: you must know the FutureTask of the implementation principle of thread pool submit()!

preface In the last article, I wrote the implementation principle and source code analysis of the thread pool in Java. It is said that it is a real big satisfaction. I want to let you have a thorough understanding of the thread pool through an article, but what are the shortcomings of the article? The previous article only mentioned the execut ...

Posted on Sun, 31 May 2020 20:23:03 -0700 by mattw