[Tomcat source code analysis] build Apache Tomcat source code debugging environment in Eclipse

Many articles on the Internet are recommended to download and compile with Ant, but in local practice, they fail repeatedly and cannot be downloaded. Later, refer to https://blog.csdn.net/xiongyouqiang/article/details/78941077 to finally build the debugging environment. The following article almost completely copies the above website, but sli ...

Posted on Thu, 12 Dec 2019 14:50:22 -0500 by skurai

Course handout of Java product purchase

Product purchase - payment log 5.1 demand analysis At present, there are two problems to be solved in the system: (1) payment record cannot be found in the system (2) order status does not change after payment Let's solve these two problems now. Implementation ideas: (1) when the user places an order, it is judged that if the payment is made v ...

Posted on Thu, 12 Dec 2019 14:17:57 -0500 by nca

Source code analysis Kafka message pull flow (two flow charts at the end of the article)

This section focuses on Kafka's message pulling process. @TOC 1. Detailed explanation of KafkaConsumer poll The main message pull-up entry is: kafkaconsumerාpoll method, which is declared as follows: public ConsumerRecords<k, v> poll(final Duration timeout) { // [@1](https://my.oschina.net/u/1198) return poll(time.timer(timeout), tru ...

Posted on Thu, 12 Dec 2019 12:08:28 -0500 by Allen4172

java reads CPU, memory and other information of computer (used by Sigar)

Sigar is the basic package of Hyperic HQ products and the main data collection component of Hyperic HQ. It is used to collect system and process information from many platforms, including Linux, Windows, Solaris, AIX, HP-UX, FreeBSD and Mac OSX.Sigar has C, C, Java and Perl API s. The Java API is sigar.jar sigar.jar, which is w ...

Posted on Thu, 12 Dec 2019 10:41:02 -0500 by Scrumpers

zookeeper (12) source code analysis - request processing chain

SyncRequestProcessor, which stores the request to disk in batches to improve efficiency. The request will not be forwarded to the next processor until it is written to disk. Core properties of class SyncRequestProcessor maintains ZooKeeper server instance, which is used to obtain ZooKeeper database and other information; maintains a queue for ...

Posted on Thu, 12 Dec 2019 10:23:23 -0500 by heshan

Glide4.x load app Icon

Loading an app icon is very simple: ApplicationInfo applicationInfo = packageManager.getApplicationInfo(pkgName.getPkg(), 0); Drawable drawable = applicationInfo.loadIcon(packageManager) It's just a time-consuming process to load the application icon. You need to open a sub thread to load it. Previously, you either used the t ...

Posted on Thu, 12 Dec 2019 09:55:08 -0500 by ayj

Spring boot project to track log links

1. Background Depending on the original log4j2 configuration, it is difficult to find all logs of an API call from the miscellaneous logs of a service. In this paper, we print a unique traceId in the log to track every call. 2. Key ideas 2.1.MDC The log tracking target is at each request level, that is, each request of the same interface ...

Posted on Thu, 12 Dec 2019 07:56:41 -0500 by daok

Source file PF4J cannot be deleted after class uninstallation

background We have a Plugin management system that enables hot loading of Jar packages based on a Plugin management class library PF4J , similar to OSGI, is now a thousand Star project on GitHub. The following is an official description of the library > A plugin is a way for a third party to extend the functionality of an application. A plug ...

Posted on Wed, 11 Dec 2019 21:51:30 -0500 by gateway69

Activity leaks the initially added window

What was this error and why did it happen? 05-17 18:24:57.069: ERROR/WindowManager(18850): Activity com.mypkg.myP has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@44c46ff0 that was originally added here 05-17 18:24:57.069: ERROR/WindowManager(18850): android.view.WindowLeaked: Activity ccom.mypkg.myP has leaked window ...

Posted on Wed, 11 Dec 2019 20:51:22 -0500 by coinmagnate@com

Related applications of Android controls

Design an interface, the interface contains a Spinner, a Button, a TextView, the Spinner drop-down content includes computer science and technology, Internet of things engineering, software engineering, network engineering, intelligent science and technology. The default setting for the drop-down box is network engineering. Whe ...

Posted on Wed, 11 Dec 2019 16:06:20 -0500 by schris403