Analysis of RPC and WebService

Although SpringCloud and Dubbo(x) are the main technologies in the popular RPC technology, some more traditional technologies cannot be avoided if interface calls are made.I happened to use WebService's technology the other day when making interface calls (Sections 8,9 are real development), which is exactly what I wrote here. 1. RPC-related ...

Posted by horseatingweeds on Fri, 10 May 2019 16:33:10 +0200

AOP Explanation of Spring

outline Introduction to AOPII. Actual Operations of Spring3. Common labels of AOPIV. Project Source Code and Reference Download5. Reference Articles     Introduction to AOP 1. What is AOP In the software industry, AOP stands for Aspect Oriented Programming, which means: AoP Through precompile A technique of unified ...

Posted by Seamless on Fri, 10 May 2019 15:41:33 +0200

Cache — — get and set of Cache instances

Ehcache is configured in Spring, created by EhCache Manager FactoryBean and enabled a Cache Manager instance to manage Cache. How does Cache Manager manage Cache? Who created Cache? Org. spring framework. cache. CacheManager: source code public interface CacheManager { @Nullable Cache getCache(String var1); Colle ...

Posted by stebut05 on Fri, 10 May 2019 06:28:03 +0200

Reasons for BindingException in SSM with maven Integration

Reasons for generating org.apache.ibatis.binding.BindingException When I was doing SSM integration, I made this mistake: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): jgsu.clong.mapper.SpuMapper.insert_spu at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:18 ...

Posted by vbnullchar on Fri, 10 May 2019 02:16:02 +0200

Spring Cloud Alibaba Integrated Sentinel Flow Control

Previously, we used to integrate sentinel dependencies directly, configure rules by encoding, and so on. Ali already has an open source framework spring-cloud-alibaba for integration into Spring Cloud, which is used to successfully integrate a series of frameworks into Spring Cloud. My version of Spring Cloud is Finchley.SR2, and Spring Boot is ...

Posted by maheshb on Thu, 09 May 2019 23:50:03 +0200

Java Mail Sender of SpringBoot 2.X Kotlin Series Sends Emails

In many services, I often need to use the function of sending email. Fortunately, SpringBoot can use the framework spring-boot-starter-mail quickly. As long as we introduce the framework, we can complete the function of sending email quickly. Introducing mailJar <dependency> <groupId>org.springframework.boot</groupId> ...

Posted by bocasz on Thu, 09 May 2019 20:50:02 +0200

AOP Unified Printing Log of SpringBoot 2.X Kotlin Series

In development projects, we often need to print logs, so that developers can understand the interface invocation and locate errors. In many cases, we need to print logs for the entry and exit of Controller or Service, but we do not want to use logger printing in each method repeatedly. At this time, we hope to have a unified manager to print. ...

Posted by baronmask on Thu, 09 May 2019 06:39:05 +0200

Spring Boot Learning Tutorial: Beginning the First Spring Boot Application

This article is originally written by the author. Please indicate the source for reprinting. SummarySpring Boot can easily create independent production-level Spring-based applications. It follows the principle of "convention is greater than configuration", uses the least configuration, and automates everything as much as possible, ma ...

Posted by matthew_ellis24 on Tue, 07 May 2019 08:35:04 +0200

Eliminate if-else/switch-case in code

In many cases, there will be many branches in our code, and the code below the branches has some complex logic, I believe that many people like to use if-else/switch-case to achieve. If you don't do well, you will put the implementation code directly under the branch of if-else/switch-case: switch ( type ) { case case1: ... ...

Posted by mightymouse on Tue, 07 May 2019 07:35:04 +0200

SpringBoot Actual Warfare | Unified Handling of Exceptions

Wechat Public Number: An Excellent Abandoned PersonIf you have any questions or suggestions, please leave a message in the background. I will try my best to solve your problems. Preface For example, today we introduce how SpringBoot handles global exceptions in a unified way. The two main annotations for global exception handling in SpringBoot ...

Posted by niwa3836 on Mon, 06 May 2019 16:45:04 +0200