Spring boot transaction related (druid+mybatis)

springboot transaction related 1. Enable global transaction support Enable @ EnableTransactionManagement in SpringbootApplication to support @Transactional Enable APO configuration support @ EnableAspectJAutoProxy (exposeProxy = true) to support automatic transaction configuration in aop mode Where exposePorxy defaults to false and is set t ...

Posted by vipul73 on Tue, 31 Mar 2020 21:32:20 -0700

docker+springboot+rabbitmq to implement dead letter queue

1. Download and start rabbitmq docker pull hub.c.163.com/library/rabbitmq:3-management docker run -d -p 5672:5672 -p 15672:15672 --name mymq hub.c.163.com/library/rabbitmq:3-management #web access path ip:15672 #User name: guest password: Guest 2. Introduce dependency into the project of springboot <dependency> < ...

Posted by Wolverine68 on Sat, 28 Mar 2020 07:31:46 -0700

Pretty boy, is spring boot still in Baidu search configuration? The old driver taught you a trick!!!

Guide reading Recently, chen company is busy, in order to ensure the high quality of the article, it may take two days to change, here Chen said sorry first!!! Yesterday, a friend asked me how to integrate Redis with SpringBoot. He said that Baidu Google search is not reliable. I was shocked. So you integrated spring boot with Internet sear ...

Posted by wilburforce on Sun, 22 Mar 2020 01:17:30 -0700

Auto configuration of spring boot

Spring boot auto configuration is mainly completed by @ EnableAutoConfiguration, @ Conditional, @ EnableConfigurationProperties or @ ConfigurationProperties.@EnableAutoConfiguration enables automatic configuration. Its main function is to call loadFactoryNames() in the spring core package to load the written automatic configuration in th ...

Posted by StateGuy on Fri, 20 Mar 2020 11:02:12 -0700

SpringBoot learning notes-009

4.7 error handling mechanism 4.7.1. Default error handling mechanism of SpringBoot 1. Default effect: 1) Return to an error page Request headers sent by browser: 2) If it is another client, it will respond to a json data by default. { "timestamp":"2020-03-14T15:56:48.897+0000", "status":404, "error":"Not Found", "message":"No ...

Posted by spaceknop on Thu, 19 Mar 2020 06:26:40 -0700

Spring Boot uses Aop for log global interception

Spring Boot uses Aop for log global interception 1 New Spring Boot Project Introducing aop dependency in 2 Pom 3Write processing code 3.1 Procedure Principle and Process 3.2 Custom Log Comment@log 3.3 Define IndexController for Testing 3.4 Define the aop class LogAspect and WebLogAspect 3.5 Test ...

Posted by hessodreamy on Sat, 14 Mar 2020 19:57:04 -0700

@EnableAutoConfiguration loads custom META-INF without scanning

In this paper, a simple simulation of auto-configuration is performed to understand the process of auto-configuration.And we wrote a small example to test it. Automatic assembly: The purpose is to load the required module components without the developer using @ComponentScan @EnableXXX. SpringBoot use ...

Posted by danesc on Thu, 12 Mar 2020 17:48:43 -0700

Integrating the use of spring boot interceptors and filters

Springboot 1: Interceptor (interceptor) Interceptors in Java are objects that dynamically intercept action calls. It depends on the web framework and the spring MVC framework in spring MVC. It is an application of AOP based on java reflection mechanism in implementation. It acts like a filter, but ...

Posted by AshtrayWaterloo on Thu, 12 Mar 2020 00:09:26 -0700

Startup Principle of SpringBoot Analysis-SpringApplication

Start with a simple SpringBoot demo package com.baojiong.demo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class DemoApplication { public static void main(String[] args) { SpringAppli ...

Posted by cute_girl on Wed, 11 Mar 2020 20:15:14 -0700

Serializable details: code validation Java serialization and deserialization

Note: This paper is a detailed explanation of Serializable (1). The last two paragraphs are ambiguous in translation (not translated for the time being), which will be supplemented in subsequent Serializable (2). Introduction: This article is translated according to JDK English document. This translation is not completely literal translation a ...

Posted by oldefezziwig on Tue, 10 Mar 2020 22:53:22 -0700