Feign client realizes remote call

1 Introduction Spring Cloud supports two ways of remote calling Resttemplate method Feign client tool, which will be used most in actual development in the future. 2. code Spring cloud Eureka registry project Spring cloud product membership service, that is, the producer Spring cloud, feign, c ...

Posted on Fri, 18 Oct 2019 12:01:22 -0700 by vichiq

File upload and download of FTP server in Java

Preface Due to the business requirements, it is necessary to realize the file upload and download functions of ftp server. So I used apache's Toolkit commons net. It's very simple to use, but some details are quite poor, so it's explained here. Use The core tool class of the third-party package is FTPClient. Whether it is file upload or file do ...

Posted on Fri, 18 Oct 2019 01:59:54 -0700 by aiwebs

Eureka of Spring Cloud Netflix: service registration and discovery

Introduction to Spring cloud Spring Cloud provides developers with tools to quickly build distributed systems (such as configuration management, service discovery, circuit breaker, intelligent routing, micro agent, control bus, one-time token, global lock, leadership election, distributed session, cluster state, etc.). Developers can use Spring ...

Posted on Thu, 17 Oct 2019 03:52:25 -0700 by HGeneAnthony

Android-5 minutes integrated online customer service [shredded radish]

5-minute integrated online customer service Demo Preparation reach Radish silk official website Register the administrator account and log in to the management background. Go to all settings - > Application Management - > Add app, fill in the relevant information and click OK. You can see t ...

Posted on Wed, 16 Oct 2019 13:09:13 -0700 by chris1

Learning of mybatis

(this case is listed under maven project:) 1. Establishment of experimental environment: (a student table, a teacher table) CREATE TABLE `teacher` ( `id` INT(10) NOT NULL, `name` VARCHAR(30) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=INNODB DEFAULT CHARSET=utf8 INSERT INTO teacher(`id`, `name`) VALUES (1, 'Teacher Qin'); CR ...

Posted on Wed, 16 Oct 2019 11:11:58 -0700 by brighton

Springboot+MyBatis+JPA Integration

1. Preface Springboot has been very popular recently, and I have also tasted the sweetness of the project. I have been using Springboot+JPA for a long time, and found that JPA is not too flexible, or maybe I am not proficient in JPA. In sum, in order to learn more about Springboot, I decided to try the integration of Springboot+MyBatis+JPA. ...

Posted on Sat, 12 Oct 2019 12:29:49 -0700 by ScubaDvr2

Spring Framework Learning Notes - SSM Integration and Maven Custom Template Creation

Spring+Spring MVC+MyBatis+Maven The core of SSM integration is Spring+MyBatis integration. Looking back on MyBatis operation database process, we use a SQL Session Factory object to get the SQL Session, and then CRUD operation. Now, with spring, we load and manage the SQL Session Factory through spring. If you want to use it directly, please go ...

Posted on Fri, 11 Oct 2019 22:44:20 -0700 by NArc0t1c

Java Agent, the Key Technology of Java Call Chain Tracking

I. Java agent There are many introductions about Java agent on the internet. Please find Du Niang and Gu Brother. The only point to mention is that byte code injection is more useful than byte buddy, which is highly encapsulated and easy to use. Code Samples The following is a sample of key code that can be adapted by itself. 1. Writing agent ...

Posted on Thu, 10 Oct 2019 10:02:34 -0700 by jwer78

Java adds hyperlinks to Word documents

After adding hyperlinks to specific elements, users can activate these links by clicking on the linked elements, usually with underlines under the linked elements or by displaying them in different colors. According to the different objects used, links can be divided into text hyperlinks, image hyperlinks, E-mail links, anchor links, multimedia ...

Posted on Thu, 10 Oct 2019 00:24:56 -0700 by j_70

Can Kafka asynchronous messages also block? Record a Dubbo Frequent Overtime Investigation Process

On-line service A calls service B interface to complete a transaction. After a production change in the evening, system monitoring finds that service B interface frequently timeouts, and then even returns Thread pool is EXHAUSTED, which is a thread pool depletion error. Because service B relies on external interfaces, it was initially mistaken ...

Posted on Tue, 08 Oct 2019 16:08:59 -0700 by jestercobblepot