A semi general echo method in Tomcat

Some time ago, I learned a wave of ideas about the way of deserialization echo based on file descriptors under Linux. In the process of its own implementation, it is found that the file descriptors of the current thread (or request) are filtered through IP and port number filtering, and then the echo c ...

Posted on Tue, 10 Mar 2020 04:22:43 -0400 by methyl_blue

Get the Mime type of the file in Java

I just want to know how most people get MIME types from Java files? So far, I have tried two JMimeMagic: JMimeMagic and mime util. The first gives me memory exceptions, and the second does not properly close its stream. I just want to know if other people have the methods / libraries they use and work with? #1 building I tried several ...

Posted on Tue, 10 Mar 2020 02:51:47 -0400 by karenn1

Spring MVC top skills to master

1, Top tips of Spring MVC Usually, in Spring MVC, we write a controller class to handle requests from clients. Then, the controller calls the business class to handle the business related tasks, and then redirects the client to the logical view name, which is parsed by Spring's scheduler Servlet to re ...

Posted on Mon, 09 Mar 2020 04:15:03 -0400 by mguili

Several ways to initialize resources in Spring Boot

Suppose there is a requirement to complete the initialization of thread pool, encryption certificate loading and other functions during project startup, what would you do? If you don't have a good answer, please look down. Today, I will introduce several ways to initialize resources in Spring Boot to help you solve and answer this question. Com ...

Posted on Mon, 09 Mar 2020 01:37:29 -0400 by ashishag67

SaltStack automation operation and maintenance practice

Latest release: 3000 (February 10, 2020) Refer to the official documents of saltStackON THE SALT MASTERRun these commands on the system that you want to use as the central management point. curl -L https://bootstrap.saltstack.com -o install_salt.sh sudo sh install_salt.sh -P -M Your Salt master can manage itself, so a Salt minion is installed ...

Posted on Mon, 09 Mar 2020 00:14:24 -0400 by worldworld

ELK+Kafka+Filebeat analyze Nginx logs

1, Basic structure host name IP application role nginx 10.1.1.3 Nginx nginx 10.1.1.3 Filebeat kafka1 10.1.1.4 zookeeper kafka1 10.1.1.4 Kafka1 kafka2 10.1.1.5 Kafka2 logstash 10.1.1.6 Logstash es1 10.1.1.7 ES1 data/master es2 10.1.1.8 ES2+Kibana data/master es3 10.1.1.9 ES3 d ...

Posted on Sun, 08 Mar 2020 05:19:25 -0400 by imagineek

Using apache-zookeeper-3.5.7 under Windows

ZooKeeper is a distributed and open-source coordination service designed for distributed applications. It is mainly used to solve some data management problems often encountered in distributed applications, simplify the coordination and management of distributed applications, and provide high-perform ...

Posted on Sat, 07 Mar 2020 23:09:37 -0500 by Anti-Moronic

Getting Started with Dubbo - Distributed and Clustered

What is Dubbo Dubbo is a high performance, lightweight, open source Java RPC framework that provides three core capabilities: Interface-oriented remote method calls, smart fault tolerance and load balancing, and automatic service registration and discovery. What is RPC RPC Full Name (Remote Procedure Call) Remote Procedure Call Procedures refer ...

Posted on Sat, 07 Mar 2020 12:06:16 -0500 by mattcairns

The pit using jsp in SpringBoot

The pit using jsp in SpringBoot Pit 1: Tomcat embedded Jasper package dependency External container (Tomcat) Embedded container (Tomcat) Pit 2: where to put the JSP file? Pit 3: running in jar package mode without access to jsp What if jsp is placed in dependent jar in addition ...

Posted on Sat, 07 Mar 2020 00:09:51 -0500 by Gary King

[Enjoy Netflix]28, Hystrix Event Counts and Execution Result

Say Easy, do har ->Return to Column Directory <- Code download address: https://github.com/f641385712/netflix-learning Catalog Preface text Execution order of doOnNext and doOnCompleted for RxJava EventCounts: Event Counters ExecutionResult: Execution results summary statement Preface T ...

Posted on Fri, 06 Mar 2020 23:23:45 -0500 by superhoops