IV. Java API s in Common Use
IV. Java API s in Common Use
Can switch work on byte, on long and on String?
Before Java 5 switch(expr), expr could only be byte, short, char, int. Since Java 5, enumeration types have been introduced into Java, and expr can also be enum types. S ...
Added by Peter on Mon, 26 Aug 2019 12:29:56 +0300
How to cooperate with OpenFeign's elegant record requests and returned information
Combine the previous article How to cooperate with RestTemplate's elegant record requests and returned information We can easily use the Interceptor record information provided by restTemplate. For empirical reasons, can we also find its Interceptor ...
Added by Dark[NSF] on Mon, 26 Aug 2019 10:59:12 +0300
AbstractAdvisorAutoProxyCreator for Springboot Source Analysis
Summary:
Spring's proxies are mainly divided into ProxyCreatorSupport s and ProxyProcessorSupport in the upper level, the former based on the proxy factory, the latter based on the postprocessor, or think of the postprocessor as the automatic proxy.When there are more beans in the spring container that require aop weaving, simply using ProxyFac ...
Added by env3rt on Sun, 25 Aug 2019 08:43:57 +0300
Enable Aspect JAuto Proxy for Springboot Source Analysis
Summary:
The two core technologies of Spring Framwork are IOC and AOP. AOP is widely used in Spring's product line. If reflection is the basis for your access to advanced level, then the agent is the base for you to stabilize the advanced level. The essence of AOP is also known as CGLIB dynamic proxy technology. It must have been used more or l ...
Added by lepass_7 on Thu, 22 Aug 2019 17:44:19 +0300
Buffer and Channel in NIO
NIO (New IO) concept:
Since version 1.4 of JDK, JDK has provided a new IO operation API. NIO provides non-blocking, non-blocking, highly scalable network I/O, which improves efficiency. NIO has three main core components: Channel, Buffer and Select ...
Added by ginginca on Thu, 22 Aug 2019 13:58:03 +0300
Java Container Source Analysis-Concurrent HashMap
ConcurrentHashMap
I. Overview
Definition of Concurrent HashMap
2.1. Class Definition
2.2. Definition of member variables
2.3. Definition of paragraph: Segment
2.4,HashEntry
Concurrent HashMap Concurrent Access
3.1 JDK 1.7 put(key,value)
3.2 JDK ...
Added by imagineek on Wed, 21 Aug 2019 08:44:31 +0300
Detailed explanation of JVM_class loading mechanism
Class File Loading Process (Class Loading Process)
Load - > Connect (Verification - > Prepare - > Resolve) - > Initialization - > Use - > Unload
Load
In the loading stage, the jvm obtains such bytecode files (. class files) by the class name.
The data structure in the file is then transferred to memory (converted into data str ...
Added by $Three3 on Sun, 18 Aug 2019 18:11:01 +0300
How to use thread pool correctly
1. jdk creates thread pool
Executors Tool Class itself provides us with several ways to create threads
2.Executors.newCachedThreadPool();
public static ExecutorService newCachedThreadPool() {
return new ThreadPoolE ...
Added by beeman000 on Sat, 17 Aug 2019 15:35:35 +0300
Single-machine distributed, pseudo-distributed and fully distributed hadoop
1. Haoop Single Computer Distribution
1. Establish hadoop user and set hadoop user password
[root@server1 ~]# ls
hadoop-3.0.3.tar.gz jdk-8u181-linux-x64.tar.gz
[root@server1 ~]# useradd hadoop
[root@server1 ~]# id hadoop
uid=1000(hadoop) gid=1000(ha ...
Added by tidou on Sat, 17 Aug 2019 11:21:07 +0300
Spring Series: Spring AOP Details
I. What is AOP
AOP (Face Oriented Programming) is a kind of programming thought, in which Spring AOP and AspectJ are both realistic programming ideas.In contrast to OOP (process-oriented programming), there is another way to program. For the cross-cutting problems that arise during OOP, these cross-cutting issues are business-independent and c ...
Added by jackiw on Fri, 16 Aug 2019 21:03:15 +0300