Recent Posts
-
Explain the file file class and filedescriptor file description class in Java
File File is an abstract representation of "file" and "directory pathname". File directly inherits from object and imp…… -
Method of obtaining absolute path of file in Java
This paper describes the method of obtaining the absolute path of file in Java. Share with you for your reference. The…… -
Detailed explanation of the differences between wait and notify in Java multithreaded communication
The following is a code to introduce the difference between wait notify in Java multithreading communication. The spec…… -
Java processing method for reading file path spaces, “+” and Chinese
Sometimes the file is read in Java code. If the path of the file contains spaces ”+In case of "No. or Chinese", becaus…… -
Detailed analysis of spring MVC startup process source code
Today, Xiaobian tries to analyze the initialization process of spring MVC from the source level and uncover the real v…… -
Java reads files by line, writes files by line, and splits strings with spaces
The first is to read the string by line Split strings by spaces and reassemble them into new strings Null is "\ s", wh…… -
On the conversion between binary, decimal, hexadecimal and string
1. Byte to decimal Use (int) type conversion directly. 2. Hexadecimal to byte Use (byte) type conversion directly. 3. …… -
Mutual conversion method between Java binary data and hexadecimal string
The general input formats of binary data are 0x45, 0x3a and 0xc3. This data format looks like a hexadecimal string, bu…… -
Explain the wait notify mechanism of Java program concurrency in detail
Wait notify scenario a typical wait notify scenario is generally related to the following two contents: 1 State variab…… -
On the problem of reading resource file path in resources by java project
When reading a file under a certain path in a java project, you can use absolute path and relative path. There is noth…… -
Explain spring @ Autowired injection tips in detail
When discussing spring automatic injection with my colleagues today, I found that such a piece of code is particularly…… -
Java implementation method for obtaining project file path
this. getClass(). getResource("/"). getPath(). Substring (1) gets the path e: / MyEclipse / test / Webroot / WEB-INF /…… -
Simple chat applet of Java network communication technology
This example shares the specific code of simple chat applet in Java for your reference. The specific contents are as f…… -
Java is the simplest way to calculate the number of days between two dates and times
There is a low way, that is, you change the two times into seconds, divide them by the number of seconds of a day, and…… -
Java solves the problem of Chinese garbled code in reading and writing local files
Java solves the problem of Chinese garbled code in reading and writing local files preface: When using Java programs t…… -
Solution to @ Autowired dependency injection failure caused by spring AOP
Problems found: Previously, I used springaop to make an operation log record. This time, when I used it on other class…… -
On the problem of reading file and relative path in Java
1、 For reading files in Java projects 1. Use system or system properties object ① Directly use string relativeypath =…… -
Java reads a line of numeric strings separated by spaces and finds the and methods of these numbers
As follows: The above article on how to read a line of numeric strings separated by spaces and find out these numbers …… -
Various methods of Java to obtain paths (summary)
(1)、request. getRealPath("/");// Getting the root path of the project is not recommended (2)、request. getRealPath(re…… -
Common operation methods of Java string (find, intercept and split)
As follows: Output results: The above common operation methods of Java string (search, interception and segmentation) …… -
Solve the problem of java web reading local JSON files and garbled code
Recently, I encountered a problem when developing a project. I successfully read the JSON file in the project using Go…… -
Spring boot implementation filter and interceptor demo
Sort out the documents, search out a demo of spring boot implementation filter and interceptor, sort it out a little a…… -
Two implementation methods of binary to hexadecimal conversion in Java
Two implementation methods of binary to hexadecimal conversion in Java Convert each byte to hexadecimal, method 1 Conv…… -
Analyze java thread wait and notify in detail
Wait () and notify () are directly subordinate to the object class, that is, all objects have this pair of methods. At…… -
Java calculates the number of days before two dates (excluding holidays and weekends)
As mentioned in the question, calculate the number of days before two dates, excluding holidays and weekends. The type…… -
Implementation of three ways of writing Java string to file
Implementation of three ways of writing Java string to file 1. Using filewriter 2. Using fileoutputstream 3. Use fileo…… -
The method of writing and reading data in TXT text with Java
Write data to the text. Generally, these data are used for automatic testing. Through some rules for generating data, …… -
Two ways to separate Java strings with spaces
There are two ways: 1. String str = "123 456 789 111"; String [] strArray = str.split("s"); 2.String str = "123 456 78…… -
Java implementation reads txt files and takes data with spaces in each line
A simple example. Where regular is to cancel redundant spaces or tab keys Java reads and writes txt files line by line…… -
Java implementation reads TXT text data and takes values line by line in the form of array
First, read the contents of TXT text, output it on the console, and directly the code: In this way, we read out the da…… -
How spring boot adds interceptors
Build a spring boot project. Adding an interceptor requires adding a configuration To facilitate the scanning location…… -
Android dynamic display and hide status bar details and examples
Android dynamically shows and hides the status bar The view class provides setsystemuivisibility and getsystemuivisibi……