Detailed introduction to enumeration super
What is an enumeration class
There are only a limited number of objects in a class, which is uncertain
For example: week, season, payment method Order status: Nonpayment, Paid, Delivered, Return, Checked, Fulfilled Employment status Thread status:
BLOCKED the thread state of a thread is BLOCKED waiting for the monitor to lock Thread stat ...
Posted by bluedogatdingdong on Sat, 19 Feb 2022 01:52:53 +0100
Excel export in Java
The function of exporting Excel needs to be used in work. The traditional method is complex and difficult to modify. Here is an encapsulated tool class writing method. You only need to set the entity class, write the corresponding column name in the way of annotation, and then pass in the data set found from the database to export.
Let's intro ...
Posted by 4evernomad on Sat, 19 Feb 2022 01:19:47 +0100
SpringBoot integrates JDBC, Mybatis, springdata and JPA
1. Spring boot integrates JDBC
(1) In POM Import related dependencies in XML
<!--Inherit parent package-->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.4.1</version>
</parent>
<depen ...
Posted by Random on Sat, 19 Feb 2022 01:02:35 +0100
Bean management of IOC specific operations
Bean management of IOC specific operations (based on xml)
What is Bean management?
Bean management actually refers to two operations. The first is to create objects for us by Spring, that is, through bean tags, and then create objects. The second is property injection by Spring. For example, a java bean has a private String userName attribute ...
Posted by jaxxstorm on Sat, 19 Feb 2022 00:43:25 +0100
Solution to 2021 TIANTI competition
2021 program design TIANTI competition was held on April 24. This article is part of the solution of TIANTI competition. Some problems did not get full marks at that time. Because the school opened the reproduction competition of TIANTI competition, write again.
Note: the answer in this article is not the standard answer. The score of each que ...
Posted by devans on Sat, 19 Feb 2022 00:34:08 +0100
Java multithreading interview notes
Detailed explanation of multithreading
Learning route: thread introduction, thread implementation (key points), thread status, thread synchronization (key points), thread communication problems and advanced topics
The knowledge of thread implementation and thread synchronization should be mainly studied, and other parts are only required to b ...
Posted by zeus1 on Fri, 18 Feb 2022 23:24:34 +0100
Beginners can understand! The Java knowledge point manual compiled by Tsinghua Xueba makes you from 0 to 1
Today's sharing begins. Please give us more advice~
Today, let's introduce Java cache and dynamic proxy.
Caching can make the pages that originally open slowly become "second open". Almost all the apps and websites that you usually visit involve the use of caching.
Proxy mode is to provide a proxy for other objects to control acces ...
Posted by PhilGDUK on Fri, 18 Feb 2022 23:09:54 +0100
We can't let services be accessed so willfully anymore - distributed services fuse the current limiting weapon to Hystrix
Full text overview
Why need hystrix
hystrix official website address github
Hystrix is also netfix's contribution to distributed systems. Similarly, it has entered the non maintenance phase. Not maintaining does not mean being eliminated. It can only show that the new technology is constantly iterative. The brilliant design is still wor ...
Posted by troybtj on Fri, 18 Feb 2022 23:02:23 +0100
Netty source code analysis NioSocketChannel source code day reading
Opening words
I hope you can learn this article with questions. Here I put forward two questions for you. The first Netty is where a new connection is detected. How does the second new connection register with the nioeventloop thread.
netty new connection access processing logic:
To detect new connection access, poll the accept event thr ...
Posted by monkey72 on Fri, 18 Feb 2022 22:12:27 +0100
gateway built-in filter factory
Built in filter factory of Spring Cloud Gateway
Built in filter factory
Here, all filter factories built in Spring Cloud Gateway are simply sorted into a table. As follows:
Filter factoryeffectparameterAddRequestHeaderAdd Header for original requestName and value of HeaderAddRequestParameterAdd request parameters to the original requestParam ...
Posted by shawnplr on Fri, 18 Feb 2022 22:00:57 +0100