Advanced route for Java programmers, [Spring annotation driven development]

In fact, we have used the XxxAware interface before. For example, the Employee class we created earlier implements the ApplicationContextAware interface. The source code of the Employee class is as follows. package io.mykit.spring.plugins.register.bean; import org.springframework.beans.BeansException; import org.springframework.context.Applica ...

Posted by phpconnect on Mon, 27 Dec 2021 21:29:49 +0100

Java Concurrent multithreading programming, Java architects teach you how to break through the bottleneck

import java.util.concurrent.Callable; /** @description: create a computing task class, implement the Callable interface, and rewrite the call method @author: xz @create: 2021-06-02 22:06 */ public class ComputeTask implements Callable { private String taskName;//Task name //Task constructor public ComputeTask(String taskName) { ...

Posted by ducey on Mon, 27 Dec 2021 20:25:05 +0100

Those things about Java reflection mechanism can solve the data structure and algorithm series you doubt in one step

Class object and reflection mechanism. After understanding the concept of reflection mechanism, it can be seen that if you want to use java reflection mechanism to do something, you need to use Class object, so Class object is the premise of reflection. So, how to get the Class object? There are three ways to obtain Class objects in java: ...

Posted by Lee W on Mon, 27 Dec 2021 15:54:41 +0100

Ten thousand words! After in-depth analysis of HashMap, he is worthy of being the technical officer of Alibaba

Summary: HashMap adopts the chain address method. When there is a conflict, it will be transformed into a linked list. When the linked list is too long, it will be transformed into a red black tree to improve efficiency. HashMap limits red and black trees so that red and black trees can only withstand pressure in a few extreme cas ...

Posted by Krash on Mon, 27 Dec 2021 12:53:46 +0100

[Vue summary of basic knowledge 6, my Alipay 3 face + US group 4 faces + lots of four faces.

js runs inside the js engine in the browser's kernel Node.js is a JavaScript program that runs out of the browser environment and is based on the V8 engine (Chrome's JavaScript engine) 3. Server side application development (understand) Create 02 server app js const http = require('http'); http.createServer(function (request, response) { ...

Posted by ksp on Mon, 27 Dec 2021 09:32:47 +0100

MySQL does not have RowNum, so how can I press Tencent background development

However, in MySQL, there is no keyword rowNum. If my table does not have a self incremented primary key id, or the primary key I use is an unordered UUID. And I have a requirement: how to delete the data in rows 6 to 10? In daily development, I wonder if you have ever encountered a time when the query condition is "line"? In fact, th ...

Posted by bulrush on Mon, 27 Dec 2021 08:01:34 +0100

[Java technology exploration, naked speech of a 34 year old java programmer

for (TreeNode<K,V> x = b, next; x != null; x = next) { next = (TreeNode<K,V>)x.next; //The next value of the incoming node is assigned to the next node of the current treebin node, which is used for data synchronization x.left = x.right = null; //null both the left subtree and the right subtree if (r == null) { ...

Posted by php_blob on Mon, 27 Dec 2021 05:09:56 +0100

What is HikariCP? Two years of experience from Jungben graduate

</resource-ref> ## Write jsp Because you need to web Use in environment, if you write directly from a class main Method testing, will always be wrong, currently there is no good way. It's easy to use here jsp Take a test. <% String jndiName = "java:comp/env/jdbc/druid-test"; InitialContext ic = new InitialContext(); // Get ...

Posted by blawson7 on Mon, 27 Dec 2021 04:00:21 +0100

[Java object oriented, the last Java interview in 2021]

After using static import, you can omit the class name to access static members (member variables, methods, nested classes) Classic usage scenarios for static import: import static java.lang.Math.PI; public class Main { public static void main(String[] args) { System.out.println(2 * PI * 10); System.out.println(2 * PI * 20); } ...

Posted by lill77 on Mon, 27 Dec 2021 00:10:56 +0100

What is spring cloud and what knowledge points need to be mastered

If you understand the above, you can understand the most basic configuration of Zuul. See below. server: port: 9000 eureka: client: service-url: # Just register Eureka here defaultZone: http://localhost:9997/eureka Then add the @ EnableZuulProxy annotation to the startup class. Yes, it's that simple. 2) Uniform prefix This ...

Posted by alevsky on Sun, 26 Dec 2021 21:14:36 +0100