The construction of virtual host -- Based on domain name, port and IP

Building a virtual host 1. Introduction to virtual host There are three types of virtual hosts commonly used in Enterprises: (1) based on domain name(2) port based(3) IP based Virtual web host Running multiple web sites in the same physical server, each of which does not occupy a real computer independently Types of virtual hosts supported by ...

Posted by wildncrazyath3rt on Wed, 23 Oct 2019 12:29:06 -0700

Spring cloud learning notes (VII. Service link tracking)

What is service link Check the call relationship. Like the previous microservices, only two microservices are OK. If there are too many, it's hard to read the code. So, we introduced one thing -- distributed system call tracing. At present, the most widely used open source implementation is Twitter's ...

Posted by xinnex on Wed, 23 Oct 2019 12:06:11 -0700

Apache Kudu cannot delete nonexistent data

Extend KafkaConnect Sink with Apache Kudu client. Java client of Apache Kudu used. Suddenly one day, I found that the job could not be submitted, and I kept reporting an error. Later, it was found that this is a verification mechanism of Kudu itself. In order to ignore this verification mechanism, and more in line with our SQL habits, I have ...

Posted by simmosn on Wed, 23 Oct 2019 07:02:25 -0700

HttpClient request URL character set transcoding

The problem is that I can send httpclient request with eclipse as follows. But I will return 400 in idea. Why not??? excuse me? package com.vol.timingTasks; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.auth.AuthScope; import org.apache.http.auth.Us ...

Posted by Bobo the Bugbear on Tue, 22 Oct 2019 09:08:38 -0700

MyBatis mapping file related operations

I. MyBatis mapping file 1, introduction The real power of MyBatis lies in its mapping statement and its magic. Because of its extraordinary power, the XML file of mapper is relatively simple. If you compare it with JDBC code with the same function, you will immediately find that nearly 95% of the code is saved. MyBatis is built for SQL and is ...

Posted by literom on Mon, 21 Oct 2019 00:45:11 -0700

Java Web Learning - how to upload files

Java Web Learning (12) - how to upload files 01 source code display Servlet source code: Preparation: need to import common IO and common file upload components package com.hooi.servlet; import org.apache.commons.fileupload.FileItem; import org.apache.commons.fileupload.FileUploadException; import ...

Posted by Cynix on Sun, 20 Oct 2019 12:34:23 -0700

Centos-7.4lamp architecture Discuz Forum

Linux-centos-7 lamp Architecture Forum page details Experiment purpose: to set up a forum web page on LAMP framework I. overview of LAMP architecture Three components are needed: Linux, Apache and mysql. Their source packages are private to me and I will send them to you. You don't need to go to the official documents again. 1. Understand th ...

Posted by wake2010 on Sun, 20 Oct 2019 11:50:29 -0700

[source code analysis] why? spring boot a jar can develop a web project

problem Why to develop a web project, spring boot starter web is done with a jar? What does this jar do? Through the spring boot project, we can see that all the boot modules spring boot starter XXX that are used out of the box are in the spring boot starters sub module, and all the spring boot starter XXX modules have no code, so they all com ...

Posted by first_lady_the_queen on Sat, 19 Oct 2019 05:43:20 -0700

Using maven compiler plugin and maven shade plugin to complete maven project packaging

Recently, I was in charge of a pure maven project (project requirements should be as light as possible), and I need to complete the packaging work by myself. Therefore, based on Maven compiler plugin and Maven shade plugin, the project packaging is completed. Among them: Maven compiler plugin is responsible for project compilation; maven-sha ...

Posted by cookiemonster4470 on Fri, 18 Oct 2019 13:15:26 -0700

Custom annotation - based on spring AOP

Hint forced routing custom annotation of ShardingSphere 1. Introduce dependency 2. Definition notes 3. Define the section procedure 4, configuration 4.1 enable AOP configuration 4.2 creating a Spring Bean 5, test Other 1. Introduce dependency <!--AOP--> <dependency> <groupId ...

Posted by nloding on Fri, 18 Oct 2019 12:32:40 -0700