Java
-
IO related demo
I reviewed IO related knowledge these days Just for record, a good memory is better than a bad pen Please correct any …… -
Springboot publishes the WebService service and invokes (hutool yyds)
preface Recently, the company's projects need to connect with third-party services. This service provider uses the int…… -
Java daily side (Part1: computer network) [19 / 11 / 13]
1.1 introduction to http HTTP protocol, namely hypertext transfer protocol, belongs to the application layer protocol.…… -
Springboot reads the properties custom configuration file
Why choose to update today, because it's on a whim. Don't ask why. Asking is that I forgot Then I spent more time toda…… -
Transfer the jar package of springboot to war and put it into Tomcat
1. Modify the POM file and change the packaging form to war war 2. Remove the embedded Tomcat module, but we ne…… -
Storage of variables in Java notes
1. Java variable storage domain The storage areas of Java variables are mainly placed in the following places: (1) Reg…… -
File replication of IO stream in Java
O (∩ ∩) O ha ha~ 1. Overview A mature language must have several modules: IO, communication, thread, UI As a mature pr…… -
Java implementation of Huffman tree
O(∩_∩)O~~ summary I think everyone who has studied data structure must know Huffman. The great God invented the famous…… -
Java implementation of Huffman tree
O(∩_∩)O~~ summary I think everyone who has studied data structure must know Huffman. The great God invented the famous…… -
Elimination of big data by bit mapping
The problem is: m (such as 1 billion) int integers, only n of which have been repeated, read them into memory and dele…… -
A simple small bookkeeping program (Java)
I feel that I have learned a lot of basic knowledge, but I haven't been able to figure out the actual development proc…… -
Java parsing XML file encounters special symbols & Solutions for exceptions
Wen / Zhu Jiqian During the development of Java parsing XML files, when Sax parsing is used, such an exception message…… -
Soul torture: do you really understand the system out. Does println () work?
Original / Zhu Jiqian Soul torture, this Duxiu classmate, can you solve this problem? Please talk about the principle …… -
Strategy enumeration: eliminate the elegant gesture of mass use of if else in the project
Wen / Zhu Jiqian When I first came into contact with java object-oriented programming, if I encountered a large number…… -
Summary of java reflection mechanism development experience
I often use the reflection mechanism in practical projects, so I will take some summary notes on the learned reflectio…… -
Java programming skills: summary of if else Optimization Practice
Wen / Zhu Jiqian To tell you the truth, I hate to use if else in my code. Firstly, the execution method of this kind o…… -
Java source code analysis: source code analysis of guava’s immutable set immutable map
1、 Case scenario I have encountered such a scenario. When defining a static modified map, a large number of put () me…… -
Simple thoughts on the implementation of wechat code scanning login Technology
Wechat code scanning login is a common operation. However, many people may not have thought about the idea of its impl…… -
Spring IOC principle
Container initialization The initialization of the container is first performed in the corresponding constructor. In t…… -
Access rights in Java
There are four access permissions in Java, from large to small: public – > protected – > Default (friendly) – &g…… -
Java multithreading – thread pool
The cost of starting a new thread is relatively high. When a large number of threads with short lifetime need to be cr…… -
Lock expansion
If a series of continuous operations repeatedly lock and unlock the same object, or even the lock operation occurs in …… -
Get the file character set with jchardet
Some time ago, when learning Lucene, I encountered the problem of reading TXT documents and encountering coding errors…… -
Java multithreading – the life cycle of threads
The life cycle of a thread is divided into five stages: new, runnable, running, blocked and dead. After the thread is …… -
Serialization and deserialization of Java objects
The goal of object serialization is to save the object on disk or transfer it over the network. The implementation mec…… -
Java multithreading – control thread
Join thread When the join () method of another thread is invoked in the execution stream of a thread, the calling thre…… -
Java simulates HTTP get and post requests
As shown in the title, use java to simulate get and post requests. Get can be used to capture web pages, and post can …… -
Servlet and thread safety
Let's start with the conclusion: servlets are not thread safe. Servlet running process The servlet program is called b…… -
TCP shakes hands three times and waves four times
TCP header The source port and destination port determine the processes of both sides at the TCP layer. The serial num…… -
TIME_ Wait and close_ WAIT
First look at the state changes of three handshakes and four waves: There are usually two situations: Because Linux al…… -
A novel collection program implemented in Java
Don't scold me if you are attracted by the title. It's just a simple implementation. I wrote it to download a favorite…… -
I use java to realize flying pigeon Book transmission 2 – realize file transmission
Step 2: realize file transfer. In the previous step, only a string was passed from the server to the client. This time……