Reflection and Dynamic Agent

1. Reflection 1. Reflection Details [Img-jhHXJ0rY-156524215 (C: Users root Desktop Summary assets Reflection Principle-156574510.png)] 1. Definition Reflection: Dynamic acquisition of class bytecode files and abstraction of their members The whole meaning is that you want to create objects directl ...

Posted on Thu, 08 Aug 2019 00:18:39 -0700 by Merdok

Tomcat uses thread pools to configure high concurrent connections

1: Configure executor properties Open the / conf/server.xml file and configure a thread pool before Connector: <Executor name="tomcatThreadPool" namePrefix="tomcatThreadPool-" maxThreads="1000" maxIdleTime="300000" minSpareThreads="200"/> Important parameter description:Name: The name o ...

Posted on Wed, 07 Aug 2019 19:28:16 -0700 by MikeUK

Summary of Simple Design Patterns

1. Design Patterns 1. Single case 1. Role Singleton mode can save objects for a long time. Singletons can transfer values: they can transfer values without any relationship between two objects, which reduces coupling and improves cohesion. Note: Static methods are acquired through class calls, ...

Posted on Wed, 07 Aug 2019 03:00:23 -0700 by Panthers

Common Class 1, such as Object, String, Regular Expressions

1.object 1.equals Compare addresses, String overrides methods, and compares values. 2.toString Print object attribute information (class name and hexadecimal hascode) 3.hasCode The hash code value of the acquired object can be used as the identity card (unique identifier) of the current object in ...

Posted on Wed, 07 Aug 2019 02:46:41 -0700 by HA7E

Comments under Java/Android

Links to the original text: https://www.jianshu.com/p/8b4f801bff10 What is annotation? java.lang.annotation, interface Annotation, introduced in JDK 5.0 and later versions. Annotations are special tags in code that can be read at compi ...

Posted on Tue, 06 Aug 2019 03:38:41 -0700 by mikeglaz

Spring cache annotations @CachePut, @CacheEvict, @CacheConfig are used

Links to the original text: https://www.cnblogs.com/OnlyCT/p/7845660.html#t1 ** This article reproduces: https://www.cnblogs.com/OnlyCT/p/7845660.html#t1 Catalog @Cacheable @CachePut @CacheEvict @CacheConfig @Cacheable @ Cacheable i ...

Posted on Tue, 06 Aug 2019 03:24:18 -0700 by drtanz

SSM Framework Learning-Spring MVC

SSM Framework Learning (3) - Spring MVC I. MVC Model II. Sring Web MVC Brief Introduction and Work Flow 2.1 Introduction to Spring Web MVC 2.2 Spring Web MVC workflow 3. Building Spring Web MVC working environment 4. Annotation-based spring development V. Receiving and Passing Page Value 5.1 Page ...

Posted on Tue, 06 Aug 2019 02:16:50 -0700 by flycast

Look! Idle Fish Open Source Another Flutter Development Tool

Ali Mei Guide: With the rapid development of Flutter framework, more and more businesses begin to use Flutter to reconstruct or build new products. But in our practice, we found that on the one hand, Flutter has high development efficiency, excellent performance and good cross-platform performance, on the other hand, Flutter is also facing ...

Posted on Mon, 05 Aug 2019 20:54:22 -0700 by daydreamer

The Specific Time for Link List of HashMap Underlying Data Structure to Turn Red-Black Tree

Preface This paper explores the specific time when HashMap's linked list turns to red-black tree from three parts: 1. Statement on the threshold of "Link List to Red-Black Tree" in HashMap;2. Parse the source code of HashMap.put(K key, V value);3. Testing; First, from the statement of HashMap about the threshold value of "link ...

Posted on Mon, 05 Aug 2019 20:37:33 -0700 by kof20012

zookeeper--Implementing Distributed Lock

1: Multithreading The characteristic of java language is multithreading, of course, there will be corresponding challenges under the advantages. In multithreading environment, thread security becomes a problem that developers must avoid. When a thread shares a variable, according to the memory model, each thread has its own local memory, and t ...

Posted on Mon, 05 Aug 2019 19:47:44 -0700 by ph3n0m