Log4j2 implements different levels of log output from different threads to different files

Java Logging Framework As a Java programmer, it must be inseparable from the log framework. Now the best Java log framework is Log4j2, not one of them. According to the official test, Log4j2's asynchronous log performance is better in multi-threaded environment. In asynchronous logging, Log4j2 uses separate threads to perform I/O operations, w ...

Posted by kristoff on Fri, 05 Jul 2019 14:07:46 -0700

Take you around Web Services [2] CXF in minutes

In practice, we have been using JAX-WS to build Web Service service, which is very stable and efficient. But I'm still curious about other open source frameworks such as CXF/Axis2/Spring WS. Because of the trust and love for Apache, the CXF Web Service will certainly not disappoint. So it took a little time to introduce CXF into the project ...

Posted by MichaelR on Fri, 05 Jul 2019 11:44:05 -0700

Spring MVC-Mapping Processor (Part I)

1. Brief Analysis of Mapping Processor In spring mvc, using a mapping processor can map web requests to the correct processor. Spring has many mapping processors built in, and We can also customize the mapping processor. The following examples show two of spring's most commonly used mapping processors: BeanNameUrlHandler Mapping and SimpleU ...

Posted by bigswifty on Thu, 04 Jul 2019 17:01:53 -0700

[Spring Source Analysis] AOP Source Analysis (Part II)

AspectJAware Advisor AutoProxy Creator and Analysis of Generating Agent Timing for Bean s As mentioned in the previous article, the class org. spring framework. aop. aspectj. autoproxy. AspectJAware Advisor AutoProxy Creator is the core class of AOP provided by Spring to developers. It is AspectJAware Advisor AutoProxy Creator that completes th ...

Posted by MattMan on Thu, 04 Jul 2019 16:25:36 -0700

Summary of Android animation implementation and collection of open source solutions

Summary of Android animation implementation and collection of open source solutions Friends recommend an open source animation library Lottie, touched by Yagi Mu, can not help but think of the face of a pile of complex animation needs in the chest of a scene of ten thousand horses galloping, so I want to summarize the way Android animation: ...

Posted by jocknerd on Thu, 04 Jul 2019 16:04:54 -0700

Implementing immersive status bar with toolbar

Design sketch: The first one is about three steps to modify the background color of the status bar, which can not be realized dynamically and has too many limitations. It can be implemented with toolbar. Now the mainstream APP, the home page is in the form of an activity + multiple fragment s, in addition to the personality center ...

Posted by jumpfroggy on Thu, 04 Jul 2019 15:22:50 -0700

Android takes you through event distribution

It has been a while since we worked. It is necessary to understand the mechanism of event transmission. Recently, we studied it and recorded our experience.1 Events in Android There are many touch events in android. In the MotionEvent class of encapsulation, clicking, touching and sliding are our common events. MotionEvent.ACTION_DOWN Motio ...

Posted by eirikol on Thu, 04 Jul 2019 15:03:02 -0700

ActiveMQ - spring integrated jms

Preface This article will realize the integration of spring and activemq, mainly demonstrating how to realize the point-to-point and publish-subscribe communication model, and how to send persistent messages and achieve persistent subscription. For an introduction to persistent messages and persistent subscriptions, please refer to:< ActiveM ...

Posted by dazz_club on Thu, 04 Jul 2019 14:31:59 -0700

[Spring Source Analysis]. properties File Reading and Placeholder ${...} Replacement Source Parsing

Preface We often encounter a scenario in development where some parameters in beans are fixed. In this case, we usually configure these parameters in the. properties file, and then use Spring to replace the parameters in the. properties file with placeholder "${}" when the beans are instantiated. Type read in and set to the correspond ...

Posted by onlyican on Thu, 04 Jul 2019 13:48:55 -0700

Servlet from entry to proficiency

Servlet from entry to proficiency Introduction to Servlet Servlet is a technology provided by sun Company for developing dynamic web resources. Sun provides a servlet interface in its API. Users need to complete the following two steps if they want to send a dynamic web resource (that is, to develop a Java program to output data to the bro ...

Posted by not_skeletor on Wed, 03 Jul 2019 18:11:59 -0700