Maven pom.xml add local jar package dependency and packaging method

When packaging Maven project, if you need to add local jar package dependency, you can choose two methods: 1. Install to local warehouse The first method is more conventional, which is applicable to the jar package to be added when it is exported by maven project and contains pom files. Just install the jar package into the local maven reposito ...

Posted by MadnessRed on Tue, 17 Mar 2020 11:13:01 -0700

Ribbon load balancing of spring cloud microservices

What is microservice? What is spring cloud? Microservice is a kind of architecture pattern, which advocates to divide an application into many tiny services. Services and services coordinate and cooperate with each other. Each service running is an independent process, and lightweight communication mechanism is adopted between services and serv ...

Posted by lplatz on Tue, 17 Mar 2020 08:32:39 -0700

spring mvc import resource path problem [the simplest but also the most deadly]

There are two ways to write in the import resource path A classpath, a classpath* So what's the difference between the two? 1.**classpath: * * only find files in your class path; 2. * * callsspath *: * * not only includes class path, but also includes jar file (class path) for searching, * * * classpath *: * * * is very important for multi ...

Posted by superdezign on Tue, 17 Mar 2020 08:25:54 -0700

Flume implements writing es

Flume customized elasticsearch sink source code Recently, we tried to write messages to elasticsearch through flume, but flume did not provide support for each es version, only kept support for version 0.9. It may be because the ES version changes frequently and there are big differences between different versions, so it is impossible to develo ...

Posted by saikiran on Sun, 15 Mar 2020 22:02:52 -0700

spring integrates cxf to develop rest style web service interface (client & Server)

The previous article recorded how to integrate cxf to develop web service client and server in spring. In fact, compared with the native development method, there have been many optimizations. rest style development, as a very popular development specification, can help us more concise and efficient pu ...

Posted by tenaki on Sun, 15 Mar 2020 00:02:09 -0700

layout mode of Ozone Block Chunk file

Article directory Preface Original layout of zone datanode chunk file Ozone Datanode Chunk Layout: File > per > chunk and file > per > block The actual storage comparison between the old and new layout s of Chunk Quote Preface In zone, the file object data of zone is organized in th ...

Posted by giovo on Sat, 14 Mar 2020 22:58:45 -0700

[Enjoy Netflix] 38, Ribbon Core API Source Parsing: ribbon-core

There are two ways to design software: one is to make the software too simple and obviously free from defects; the other is to make the software too complex and free from obvious defects. ->Return to Column Directory <- Code download address: https://github.com/f641385712/netflix-learning Catal ...

Posted by blacksmoke26 on Sat, 14 Mar 2020 17:34:45 -0700

Install SSL certificate on Apache server and configure http jump https tutorial

Specific reference: Alicloud tutorial This paper is a summary of pit falling 1. In the section of modifying httpd.conf configuration file, you need to make the following settings #Loadmodule SSL ﹣ module modules / module ﹣ ssl.so ᦇ delete the comment symbol of configuration statement at the beginnin ...

Posted by uknowho008 on Sat, 14 Mar 2020 02:45:29 -0700

Flume installation deployment and cases

1. Installation address 1) Flume official website address http://flume.apache.org/ 2) Document view address http://flume.apache.org/FlumeUserGuide.html 3) Download address http://archive.apache.org/dist/flume/ 2. Installation and deployment 1) Upload apache-flume-1.7.0-bin.tar.gz to the / opt/softwa ...

Posted by The14thGOD on Fri, 13 Mar 2020 19:40:57 -0700

Special symbols commonly used in Scala

1. = > anonymous function In Spark, a function is also an object that can be assigned to a variable. Format of Spark's anonymous function definition: ==(parameter list) = > {function body}== Therefore, the function of = > is to create an anonymous function instance. For example: (X: int) = > x + 1 2. < - (set traversal) Loop trav ...

Posted by ctimmer on Thu, 12 Mar 2020 04:54:52 -0700