How is slf4j bound to a specific log framework

SLF4J is a Simple Logging Facade for Java, which is a facade (appearance) interface or an abstraction of various logging frameworks, such as java.util.logging, logback, log4j, etc. with this product, we can not care about the specific implementation, that is to say, we can switch the logging framework at any time. The latest version of slf4j 1 ...

Posted by lovelf on Tue, 07 Jan 2020 04:02:05 -0800

Spring boot configuration Servlet, Filter, Listener

Spring boot configuration Servlet, Filter, Listener In spring boot applications, the embedded Servlet 3.0 + container will not directly use the ServletContainerInitializer and WebApplicationInitializer, that is, the Servlet, Filter and Listener configurations implemented through the above two interfaces are invalid, which is to prevent the desi ...

Posted by srikanth03565 on Thu, 02 Jan 2020 09:29:34 -0800

Kubernetes+docker-DIY-kafka+zookeeper+manager cluster deployment

Foreword: Recent project of combining kafka and zookeeper containerization with rancher, I consulted related websites and books and found that there are many reasons why I chose to customize it if it is relatively strong to standardize the company. Let me briefly talk about the reasons why I chose to customize it finally: (Because k8s+kakfa te ...

Posted by harty83 on Fri, 20 Dec 2019 09:48:27 -0800

Another new feature of the ApiBoot interface service framework

What is the concept of global logging? It's easy to understand. Like one of the parts of the logging framework we've always used like logback and log4j, the minbox-logging distributed logging framework is now independent of api-boot-plugins and has joined the minbox-projects open source organization. The blog has a series of articles explainin ...

Posted by xSN1PERxEL1TEx on Tue, 17 Dec 2019 18:12:12 -0800

MyBatis3.x Idea building

MyBatis was apache An open source project of iBatis In 2010, the project was migrated from apache software foundation to google code and renamed MyBatis. Moved to Github in November 2013. As an excellent orm framework, MyBatis is often compared with Hibernate. As a popular MyBatis, it avoids almost all JDBC code, manual parameter s ...

Posted by johnie on Sun, 08 Dec 2019 19:46:40 -0800

brew installation path under mac, with kafka as an example

Huge buildings are always made of one wood and one stone. Why don't we make them? I often do some odd things, that's why. That's right, but I didn't say that! ——Lu Xun brew is the installation package tool of mac system. Similar to yum or apt get. What is the package path of brew installation. The following is an exam ...

Posted by geus on Sun, 01 Dec 2019 22:37:23 -0800

Spring boot reads the folder in resource under jar package

Some time ago, in the development process based on springboot, we encountered a problem: the program needs to read all the files of a directory under resource, and it needs to be able to read them in the form of file. However, after packaging, the springboot project becomes a jar package. When reading the file, an error will be rep ...

Posted by jfourman on Sat, 30 Nov 2019 09:51:35 -0800

[Flume] - collect Log4j log and send it to Kafka

Flume collects Log4j logs and sends them to Kafka for storage Environmental preparation Download Flume: http://flume.apache.org/ Install: extract the download package to the custom path Configure agent # Function: filter json information storage kafka agent.sources = s1 agent.channels = c1 agent.sinks = k1 agent.sources.s1.type = avro agen ...

Posted by mirana on Fri, 29 Nov 2019 12:57:00 -0800

Big data environment building series - zookeeper cluster building

Summary This blog builds a cluster environment based on zookeeper-3.4.9. 1. Download zookeeper Edition: http://zookeeper.apache.org/releases.html#download Download version: zookeeper-3.4.9.tar.gz 2. Host 192.168.8.21, 192.168.8.22, 192.168.8.23, 192.168.8.24 and 192.168.8.25. 3. Decompression tar -zxvf zookeeper-3.4.9.t ...

Posted by andreea115 on Tue, 26 Nov 2019 07:28:59 -0800

The arrangement and use of jar package in Java development

This article collates the jar packages and API records that I often use in Java development. <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 --> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <ve ...

Posted by ramli on Mon, 25 Nov 2019 05:46:52 -0800