Java Thread Foundation, Start with this
Threads, as the smallest dispatching unit in the operating system, generally have multicore processors in the current operating environment. In order to make better use of CPU, master its correct use, and make the program run more efficiently.It is also an extremely important module in Java interviews.
Introduction to Threads
A program that ...
Posted by bradymills on Mon, 20 Apr 2020 18:52:20 -0700
StackOverflow Weekly - Are you going to have all these high-profile questions?
I found some high-profile and high-profile questions from Stack Overflow.These questions may not normally be encountered, but since the highly focused questions and highly praised answers are generally accepted, they will be more handled in the future, whether at work or in interviews, if we learn in advance.This article is the first week's con ...
Posted by sandrob57 on Thu, 16 Apr 2020 23:01:11 -0700
JDK source code analysis of java Dynamic agent
According to the Convention on the Internet, first give an example of static agent to dynamic agent; otherwise, the following theory and source code analysis are not well prepared, and everyone is a bit confused.
Static agent:
/**
* Voice interface for proxy interface
*/
public interface IVoice {
void song();
}
/**
* Singers
*/
pu ...
Posted by sareejoh on Wed, 15 Apr 2020 00:53:02 -0700
About register aspect jannationautoproxycreator if necessary of AopNamespaceUtils
About this method
public static void registerAspectJAnnotationAutoProxyCreatorIfNecessary(
ParserContext parserContext, Element sourceElement) {
//1. Register or upgrade creator definition beanname
BeanDefinition beanDefinition = AopConfigUtils.registerAspectJAnnotationAutoProxyCreatorIfNecessary(
...
Posted by Grizzzzzzzzzz on Mon, 13 Apr 2020 09:50:16 -0700
Deep analysis of five "black magic" in Java
Nowadays, programming languages are becoming more and more complex. Despite a large number of documents and books, these learning materials can only describe the tip of the iceberg of programming languages. Many of the functions in these programming languages may be hidden in the dark forever. This article will explain the secrets hidden in fi ...
Posted by Warz on Mon, 13 Apr 2020 00:19:32 -0700
Best practice of springboot + aop, no longer afraid to double-click 666
Talk nineteen to the dozen
During the crazy overtime work less than a month after returning to work, I haven't had much time to write blog recently, which is a little bit slow. Fortunately, in the projects I do, not all are business logic of addition, deletion and modification, or some more interesting and practical technical points, so I sorte ...
Posted by betportal on Sun, 12 Apr 2020 04:25:05 -0700
Use of Spring Timer QuartzJobBean (work class inherits QuartzJobBean)
1. Introduction to the use of QuartzJobBean:
Timer functions are often used in project development, such as batching in the evening, processing accounts regularly, etc. jdk also provides Timer to implement timer tasks, a brief introduction to Timer implementation.The use of Timer is roughly divided into two steps:
First, write a task class th ...
Posted by cirene on Fri, 10 Apr 2020 20:55:11 -0700
In those years, we stepped on the Java pit
Preface
There is an old saying in China that "nothing is more than three times". It means that a person who has made the same mistake can be forgiven twice and three times at a time, and can't be forgiven more than three times. It has been pointed out that this "three" is an imaginary number, which is used to refer to many t ...
Posted by Grunt on Thu, 09 Apr 2020 23:44:14 -0700
Lambda expression, one of the new features of jdk8
Introduction
Java 8 (also known as jdk 1.8) is a major version of Java language development. There are many new features in java8. This article focuses on Lambda expressions.
Lambda expressions, also known as closures, are the most important new feature driving the java 8 release.
Lambda allows functions to be passed as parameters to a method. ...
Posted by adzie on Wed, 08 Apr 2020 00:32:21 -0700
Design Mode-Proxy Mode JAVA Implementation
The proxy model is simply a design pattern for pre- and post-intervention on Methods in existing classes to modify an existing business at the class or method level without modifying an existing business class.
There are currently two implementations, one is a static proxy, implemented purely through code based on design patterns.The other is ...
Posted by mwasif on Sun, 05 Apr 2020 20:15:41 -0700