Introduction to java mainstream log system

Preface In the daily development work, log is indispensable. There are many java log systems and log frameworks, so how should we choose and use them? The best practice suggests that the API in the log system (Log4j, Logback) should not be used directly in the application, but should rely on the SLF4J (Simple Logging Facade for Java) O ...

Posted on Tue, 03 Mar 2020 00:11:54 -0500 by nyfael

Multithreaded summary

There are two ways to implement multithreaded programming, one is to inherit Thread class, the other is to implement Runnable interface. The biggest limitation of creating threads by using the inherited Thread class is that multiple inheritance is not allowed, so in order to support multiple inheritance ...

Posted on Mon, 02 Mar 2020 23:53:20 -0500 by LexHammer

feign client feidnClient blown

Feign client has many advantages. nclient has many advantages, such as simple code, balanced call (built-in ribbon), simple code, balanced call (built-in ribbon), and so on....   But when using feignclient to call the external interface, most of the small partners will encounter the problem of fusi ...

Posted on Mon, 02 Mar 2020 01:30:28 -0500 by mbtaylor

Spring Boot apps start slowly for the first time

Reproduced from: https://yq.aliyun.com/articles/624112 Narration In a recent project, we encountered a strange phenomenon: after the spring boot application starts, there will always be a large number of ajax requests for pedding on the first visit to the page, then refresh the page, a large number ...

Posted on Sun, 01 Mar 2020 21:24:45 -0500 by bullchina

Learn Hystrix--Getting started with Hystrix

Catalog Get hystrix Library "hello world" Building hystrix Get hystrix Library In http://search.maven.org (Slower domestic access) Found hystrix binaries about Maven, Ivy, Gradle, etc. and dependent information.It is also available at http://mvnrepository.com (recommended). * An example of maven:] <!-- https://mvnrepository.com/a ...

Posted on Sun, 01 Mar 2020 11:45:09 -0500 by ctcp

Action action of Spark RDD operation

first def first(): T First returns the first element in RDD, without sorting. scala> var rdd1 = sc.makeRDD(Array(("A","1"),("B","2"),("C","3")),2) rdd1: org.apache.spark.rdd.RDD[(String, String)] = ParallelCollectionRDD[33] at makeRDD at :21 scala> rdd1.first res14: (String, String) = (A,1) ...

Posted on Sun, 01 Mar 2020 07:58:41 -0500 by amesowe

Chapter 1: build system environment and configure Token

  1. Build a spring boot development environment Reminder: about how to configure JAVA, Download IDEA, configure MAVEN, etc., this system will not explain any more. Next, enter the function module, which is supported by POM.xml file <dependency> <groupId>org.apache.httpco ...

Posted on Sat, 29 Feb 2020 01:21:20 -0500 by domineaux

Talk about skywaking's CommandService

order This paper focuses on skywalking's command service CommandService skywalking-6.6.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/commands/CommandService.java @DefaultImplementor public class CommandService implements BootService, Runnable { private static final ILog LOGGER = LogManager.getLogger(Comman ...

Posted on Sat, 29 Feb 2020 01:04:25 -0500 by djg_uk

MyBatis entry instance (select)

Development environment: Idea2018 Database: mysql 8.0.16 Purpose: to learn Mybatis Database preparation This instance uses mysql 8.0.16, user name root and password 123456 To create a database and create a test form: /*Create database*/ CREATE DATABASE tms default character set utf8; /*Create data ...

Posted on Fri, 28 Feb 2020 23:19:52 -0500 by egalp

Rocketmq? 03? Message sending

Article directory RocketMq message sending 1, Message consumption mode Cluster message Broadcast message 2, Message sending 1. Synchronous transmission 2. Asynchronous transmission 3. Single message 4. Bulk message sending 5. Delayed message sending Retry mechanism producer retry consumer retry ...

Posted on Fri, 28 Feb 2020 07:06:32 -0500 by kabucek