[Spring cloud for ad system step by step] 11. Use Feign for micro-service invocation

In the previous section, we used Ribbon (Http/Tcp-based) to make microservice calls. Ribbon's calls are simple, intercept the requested service through the Ribbon component, get the IP:Port of the service instance through Eureka Server, and then invoke the API.In this lesson, we use a simpler way, using a declarative Web service client Feign, w ...

Posted by SQL Maestro on Sun, 04 Aug 2019 09:16:01 -0700

mybatis develops DAO layer and SqlMapConfig.xml configuration file

Primitive development mode Implementation process Write SqlMapConfig.xml configuration file and mapper.xml configuration file <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> <configuration> <!--Loading conf ...

Posted by erika_web on Sun, 04 Aug 2019 00:02:37 -0700

Linux System: Build ZooKeeper 3.4 Middleware under centos7, Summarize Common Commands

I. Download and Unzip 1. Introduction to Zookeeper As a distributed service framework, Zookeeper is mainly used to solve the consistency problem of application systems in distributed cluster. It can provide data storage based on directory node tree similar to file system. But Zookeeper is not used to store data exclusively. Its function is main ...

Posted by dhcrusoe on Sat, 03 Aug 2019 06:14:03 -0700

The back end receives the files uploaded by the front end, constructs the post request, and calls the external interface of the uploaded files.

This article outlines:There may be some requirements for services deployed internally or in a separate environment to provide rest services. These interfaces are invoked by sending http requests from the back end. That requires constructing http requests at the back end. The scenarios to be solved in this paper are as follows:Front-end multipar ...

Posted by ironside82 on Fri, 02 Aug 2019 23:07:11 -0700

Soft Load Balancing of Client in Eureka Learning

Client Soft Load Balancing for Eureka Learning (3) This article mainly introduces how Eureka Client achieves soft load balancing (Demo demo demonstrates non-source level). My personal habits, first run a whole Demo, and then study the source code. Source code is placed in the final learning while reco ...

Posted by Saphod on Fri, 02 Aug 2019 04:45:59 -0700

Apache Spark Progressive Learning Tutorial: Spark Cluster Deployment and Running

Catalog First, Preface 1.1 Cluster Planning 1.2 Pre-condition 1.3 Installation Pack Download II. Installation and deployment 2.1. Unzip and modify configuration files 2.2 Copy files to two other machines 3. Operation and testing 3.1 Start Cluster 3.2 Start spark-shell connection cluster 3. ...

Posted by zuhalter223 on Fri, 02 Aug 2019 02:32:40 -0700

Initializing Bean, init-method and PostConstruct initialized by Spring Bean

InitializingBean knows from the name of the interface that its function is to perform customized operations after the bean is initialized. Beans in Spring containers have a life cycle. Spring allows specific operations to be performed after Bean initialization and before Bean destruction. There are ...

Posted by IsmAvatar on Thu, 01 Aug 2019 02:46:06 -0700

Alibaba Recommends Thread Creation

Thread pool tool class package com.shuige.business.train.util; import org.apache.poi.ss.formula.functions.T; import java.util.concurrent.Callable; import java.util.concurrent.Future; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.uti ...

Posted by bugz-2849 on Tue, 30 Jul 2019 14:35:44 -0700

Mybatis Source-datasource Summary

How do the main functions of this package get data source objects, and indirectly get Connections to manipulate databases 1. There are two ways to get a DataSource 1.1. Obtain from JNDI (InitialContext context), jndi's lookup method, get configuration from somewhere to generate a DataSource 1.2. ...

Posted by shantred on Tue, 30 Jul 2019 11:37:42 -0700

Implementing Universal excel Export--Application and Pit Mining of poi-ooxm

Editor of xl_echo, welcome to reprint, reprint please declare the source of the article. Welcome to add echo Wechat (micro signal: t2421499075) for communication and learning. Never lose a hundred battles, never claim to win, never fail, and always strive to move forward. —— This is the real strength!! Read Suggestions: If the syst ...

Posted by akx on Tue, 30 Jul 2019 03:51:02 -0700