Spring Boot 2.X: use and configuration of Spring Boot Actuator for application monitoring

About activator Activator is the self-examination and monitoring function of the application system provided by Spring Boot. Through the activator, we can use the data indicators to measure the operation of the application, such as checking the disk, memory, CPU and other information of the server, the thread, gc, running status of the system, ...

Posted on Wed, 13 Nov 2019 04:59:22 -0500 by Kifebear

Spring5 source code analysis - container refresh - invokeBeanFactoryPostProcessors() method

Last article: Spring 5 source code analysis - container refresh - prepareBeanFactory() method  The main functions of this method are as follows: 1. Instantiate the ConfigurationClassPostProcessor, call the ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry method to complete the parsing of the configuration class, and perform ...

Posted on Tue, 12 Nov 2019 23:59:13 -0500 by tlchung

Source code analysis of spring learning -- refresh of AbstractApplicationContext

Source code analysis of spring learning -- register and scan of annotationconfiguapplicationcontext In, we talked about how to register bean definition in annotation form. After registration, we have bean definition information, of course, initialization container. refresh public void refresh() throws BeansException, IllegalStateException { ...

Posted on Tue, 12 Nov 2019 22:23:57 -0500 by nightowl

Spring Boot 2.x + myBatis full xml implementation CRUD and automatic table building

Blogger wrote an introduction before Spring Boot 2.x + myBatis full annotation implementation CRUD and automatic table creation This time, we will write a demo based on xml configuration. The main supported functions are the same as before:(1) the database automatically creates tables, such as the user table in this example.(2) database CRUD(cr ...

Posted on Tue, 12 Nov 2019 16:36:19 -0500 by emilyfrazier

java multithreading: the use of thread pool

The following is excerpted from Alibaba development manual Thread pools are not allowed to be created by Executors, but by ThreadPoolExecutor. Such a processing method makes the students who write about it more clear about the running rules of thread pools and avoid the risk of resource exhaustion Note: disadvantages of Executor ...

Posted on Tue, 12 Nov 2019 16:17:45 -0500 by Gruzin

#Spring exercises ioc, aop

Spring practice By learning the basic knowledge of spring, I learned that in order to reduce the complexity of Java development, spring adopted the following four key strategies: Lightweight and minimally invasive programming based on POJO; Loose coupling is realized by dependency injection and interface oriented; Declarative programming based ...

Posted on Tue, 12 Nov 2019 16:15:42 -0500 by atrum

spring learning source code analysis -- register and scan of annotationconfiguapplicationcontext

AnnotationConfigApplicationContext Annotationconfiguapplicationcontext inherits GenericApplicationContext. There is a very important instance in GenericApplicationContext-- DefaultListableBeanFactory. DefaultListableBeanFactory It is the implementation of default registration and loading in spring.The sacn and register methods register the scan ...

Posted on Tue, 12 Nov 2019 15:29:31 -0500 by blueway

XII. Spring IOC container initialization

IOC container initialization of Spring Preface In the previous section, we analyzed BeanFactory, the lowest IOC container, and then simply analyzed ApplicationContext, a high-level form container. In ApplicationContext, we know a core method, refresh, which is the IOC container initialization process. In the previous section, we did not directl ...

Posted on Tue, 12 Nov 2019 14:01:59 -0500 by manmanman

springboot with transaction operation mybatis four data sources oracle dream mysql sqlserver

springboot with transaction operation mybatis four data sources oracle dream mysql sqlserver Article directory springboot with transaction operation mybatis four data sources oracle dream mysql sqlserver 1. Preconditions 1. jar bag 2. pom files, not fancy, bring them all 3. properties 2. General configuration of data sou ...

Posted on Tue, 12 Nov 2019 13:18:24 -0500 by PromaneX

Four solutions for bean injection in springboot mq listening interface

In the project, mq is used for the first time. When a message is received in the listener interface of consumer and the relevant business layer interface is called, it is found that it cannot be injected. Several ways are summarized to solve this problem with the help of online materials and colleagues, for your reference: Mod ...

Posted on Tue, 12 Nov 2019 13:03:06 -0500 by kubis