Spring Boot Operating Principles - Core Annotations

3 Core Notes Open any * AutoConfiguration file, there are generally the following condition annotations, in the spring-boot-autoconfigure-1.5.3.RELEASE.jar package org.spring framework.boot.autoconfigure.condition conditions annotations are as follows: @ Conditional OnBean: The current container has a specified Bean condition. @ Conditio ...

Added by linus on Sat, 06 Jul 2019 00:16:56 +0300

Multithreading in Java (4) Using synchronized locks to synchronize threads

This chapter mainly introduces how to synchronize threads and how to communicate among threads. Why Thread Synchronization Let's first look at the results of this code: package com.Dan; public class TestRunnable { public static void main(String[] args) { MyThread myThread = new MyThread(); Thread t1 = new Thread( myThread, ...

Added by rbudj on Tue, 02 Jul 2019 21:35:33 +0300

java Concurrent Programming (1) cancelling concurrent programs from closing

1. Mission cancelled and closed 1. Interrupt Thread 1. Each thread has a boolean interrupt state. true is in the interrupt state Interrupt: issue interrupt request; isInterrupt: return interrupt status; interrupted: clear interrupt status 2. The blocking method in JVM checks the interrupt status of threads. Its response method is: clearing the ...

Added by scnjl on Fri, 28 Jun 2019 03:39:24 +0300

final modifier for Java Basics

Catalog Q1:final modifies the basic type domain Modification of Q2:final Q3:final modifier class Q4:final modification parameter Q5:final modifier object @author: Tobin The level is limited. If there are any mistakes, please correct them. Refer to "Java Core Technology Volume - ...

Added by sastro on Mon, 24 Jun 2019 23:25:35 +0300

Java needs to learn the basics again (11) WeakHashMap in detail

Overview of WeakHashMap WeakHashMap is a map that stores mapping data based on hash table implemented by weak keys. When the JVM cleans up and reclaims the objects pointed to by these weak keys, WeakHashMap automatically and effectively removes the reclaimed maps from the map. Relevant knowledge cited There are four kinds of references in J ...

Added by bostonmacosx on Mon, 24 Jun 2019 21:47:04 +0300

Dynamic Proxy Agent

Preface Dynamic proxy is actually Java The. lang.reflect.Proxy class dynamically generates a class byte based on all the interfaces you specify, which inherits the Proxy class and implements all the interfaces you specify (the array of interfaces you pass in parameters); then loads class byte into the system using the classloader you specify, ...

Added by StormTheGates on Fri, 21 Jun 2019 04:21:16 +0300

Different String, StringBuffer and StringBuilder from the Bytecode Perspective

Oracle official note: javap Decomposition one or more class files. Brief description of use javap [options] classfile... options Command-line options, see Options later in detail classfile One or more Class files (separated by multiple spaces) can use file paths or files under classPath or enter URL s Description The javap command decom ...

Added by rbudj on Tue, 18 Jun 2019 23:07:50 +0300

Packet Analysis

A data dog background produces five kinds of data packets, in which collectd produces a package with an intake url, including metrics, event and service checks, and a series of global key-value s. statsd accepts a UDP packet and emits three http packages: series,intake and check_run. series is metric, intake is event checking, and check_run is ...

Added by ZachMEdwards on Sat, 08 Jun 2019 22:55:08 +0300

Deep Understanding of Java Type Information (Class Objects) and Reflection Mechanism

Related articles: Deep Understanding of Java Type Information (Class Objects) and Reflection Mechanism Deep Understanding of Java Enumeration Types (enum) Deep understanding of Java annotation types (@Annotation) Understanding the synchronized implementation principle of Java concurrency Deep understanding of Java Memory Model (JMM) and vo ...

Added by Goafer on Fri, 24 May 2019 00:51:07 +0300

Common Operating Methods of Java Threads

Introducer At the beginning, multithreading development is very important, so it is necessary to understand the common operation methods of threads and use multithreading more conveniently. In fact, the sleep() method is enough. primary coverage Common methods of thread operation concrete content Multithreading has many method definitions, ...

Added by JDBurnZ on Tue, 21 May 2019 20:38:04 +0300