Solving jar package dependency: Spring IO platform launches bom

Spring IO Platform Origin: at first, spring only focuses on ioc and aop, and now it has developed into a huge system. For example, security, mvc, etc. In this way, when different modules or external integration, the dependency processing needs corresponding version numbers. For example, the integration of the newer spring and the older quartz ...

Posted by msimonds on Mon, 03 Feb 2020 09:39:55 -0800

Rabbit MQ practice [topic switch]

spring boot version: 2.1.10.RELEASE This article involves two projects, rabbitmq topic provider and rabbitmq topic consumer, with the same dependency and configuration. Dependent dependence <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot ...

Posted by lbraine on Mon, 03 Feb 2020 06:44:42 -0800

Spring: register beanDefinition with Spring IOC annotation method

Article directory 1. beauties 2. overview 3. cases 3.1 case 1 4. Container initialization 5.AnnotationConfigApplicationContext 5.1 registerBean 5.1.1 class file registration 5.1.2 AnnotationBeanDefinitionReader#doRegisterBean 5.2 scanBean mode 5.2.1 ClassPathBeanDefinitionScanner#doScan 1. b ...

Posted by LoStEdeN on Mon, 03 Feb 2020 04:20:53 -0800

Transaction Delivery Properties for SpringBoot Series Tutorials

Transaction Delivery Properties for the 200202-SpringBoot series of tutorials For mysql, there may be several main points of knowledge about transactions at the isolation level; in the Spring system, there is also a transfer property of knowledge point transactions that is equally important when using transactions. This article will focus on ...

Posted by andy666 on Sun, 02 Feb 2020 20:01:59 -0800

Personal notes for learning Java enumeration and annotations

1. Enumeration public class TestSeason { public static void main(String[] args) { Season spring = Season.SPRING; System.out.println(spring); spring.show(); System.out.println(spring.getSeasonName()); } } //Enum Class class Season{ //1. Provide the properties of the class and declare it private final private final ...

Posted by mwalsh on Sun, 02 Feb 2020 10:34:17 -0800

EurekaServer startup error solution

The latest version of Spring Cloud Finchley.M9 is used. When starting EurekaService, the system will report an error after starting. The prompt is as follows: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.cloud.netflix.eureka.serve ...

Posted by mdannatt on Sun, 02 Feb 2020 09:15:45 -0800

Exception handling of spring MVC

One way try....catch...finally, catch and handle exceptions in catch       Mode two Set the default global exception handler.   In case of any abnormality, throw upward one by one, In this process, if the exception is caught and handled by catch, it will be OK; If there is no corresponding catch to catch and handle exceptions, they will be fin ...

Posted by Eric T on Sun, 02 Feb 2020 05:56:25 -0800

Simple example of using Hystrix in Spring cloud (Spring cloud learning Note 6)

1, Analysis of current architecture problems 1.1 problem analysis Our current architecture is shown in the figure below. Eureka is used for service discovery service registration, and Ribbon is used for load balancing. Now let's assume that if the service provider's response is very slow, the servic ...

Posted by srfdriver22 on Sun, 02 Feb 2020 05:01:29 -0800

A series of highlights of Spring official documents: lookup method

There are different scope s between beans For example, when bean A is a singleton, if bean B is relied on, it is a prototype rather than a singleton. Since beanA has been assembled in the container, when beanA's method a is called to get the bean B object, it is the same object. Does not meet the prototype requirements of bean B. One of the imp ...

Posted by mpharo on Sat, 01 Feb 2020 22:35:50 -0800

SPI (Service Provider interface) mechanism

1, Loading mechanism of class The loader loading of classes in Java comes from files, networks, source files, etc. By default, the class loader of the jvm uses the parent delegation mechanism, Bootstrap ClassLoader, Extension ClassLoader, and attachment classloader (system classloader). Each class l ...

Posted by xXx_Hobbes_xXx on Sat, 01 Feb 2020 09:01:24 -0800