Dubbo Principle and Label Resolution of Source Code Resolution

I. Dubbo Configuration Dubbo supports multiple configurations: XML Configuration: Implementation of Spring-based Schema and XML Extension Mechanism Property Configuration: Load dubbo.properties under the classpath root directory API configuration: Hardcoded configuration (not recommended) Annotation Configuration: Configuration by Annotat ...

Posted by tefflox on Wed, 15 May 2019 09:31:45 +0200

Start with declarative transactions based on @Transactional full annotation, and thoroughly understand the principles of Spring transaction management

Preface Previous article: Use of Spring-jdbc and 8 ways of managing Spring transactions (declarative + programmatic) Introduces many ways to use Spring transactions, including when it comes to the full comment @Transactional approach, so this article takes the @Transactional approach as a starting point to unravel the mystery of Spring ...

Posted by countcet on Wed, 15 May 2019 07:36:14 +0200

springboot reads custom profile nodes

Today, I share with you the reading of custom configuration information. Recently, there are plans to write blogs to write articles on spring boot and spring cloud separately, because there are many articles expected by spring boot, so cloud articles need to wait until very later to write. The main reason for sharing these two articles is to fa ...

Posted by iupme on Wed, 15 May 2019 07:35:49 +0200

SpringBoot 2.X Kotlin and Swagger 2 Generate API Documents

Here's a place to note that there are problems when testing WebFlux integration with Swagger 2. Looking at the official documentation, 2.9.2 is not yet integrated, so the jar introduced is spring-boot-starter-web, not spring-boot-starter-webflux. Purpose of this chapter Integrating document and interface testing platform in the project, using ...

Posted by carolin on Wed, 15 May 2019 03:07:38 +0200

SpringBoot Learning Diary 1 First SpringBoot Program

SpringBoot Learning Diary Simple Hello Word applet Configuring pom to introduce dependencies <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.9.RELEASE</version> </parent> <dependencies> <de ...

Posted by seek on Tue, 14 May 2019 15:24:09 +0200

Event actions when spring boot starts and closes:

Click back to the directory This chapter is not too important, but you need to know that there is this thing. Execution at destruction: Inherit from Disposable Bean and register it as a bean. import org.springframework.beans.factory.DisposableBean; import org.springframework.stereotype.Component; /** * Execution at the e ...

Posted by Scarum on Tue, 14 May 2019 14:55:51 +0200

Unit testing scheme of application based on spring-boot

Summary This paper mainly introduces how to write unit test and integration test code for web application based on spring-boot. The architecture of such applications is generally as follows: web-structure.png The program of our project corresponds to the web application section in the figure above. This part is generally ...

Posted by VinzC on Tue, 14 May 2019 14:46:10 +0200

idea mvn trampling pit using mvn packaging

Recently, I started learning Spring Cloud. One of the pitfalls in using mvn packaging is that it succeeded in packaging, but none of the dependencies were introduced. (I joined the spring boot mvn plugin). The jar package is only a few kb. I searched a lot on the internet, but all of them are saying that spring boot mvn plugin n ...

Posted by ruddyu78 on Sun, 12 May 2019 11:14:57 +0200

Six Appropriate Opening Ways of Spring Native Rpc Implementation

Preface When talking about Rpc in the Java ecosystem, many people may think of frameworks such as Dubbo, Motan, Grpc, etc. But you know what? Spring, as a Java programming family bucket, has built-in a variety of RPC implementations that can be used directly. Existence is reasonable. In some scenarios, heavy RPC components such as Dubbo and Grp ...

Posted by BigChief on Sun, 12 May 2019 09:43:28 +0200

springboot event listener, call methods across modules to achieve decoupling

Problems to be solved In the actual development process, many people will use multi-modular management code, so that the entire project code appears more concise, more convenient to manage. However, following the code modularization, there is a situation of circular reference in the code, that is, module A needs to refer to the met ...

Posted by szms on Sun, 12 May 2019 07:08:51 +0200