Java
-
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…… -
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 …… -
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 =…… -
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…… -
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…… -
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…… -
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 implementation method for obtaining project file path
this. getClass(). getResource("/"). getPath(). Substring (1) gets the path e: / MyEclipse / test / Webroot / WEB-INF /…… -
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…… -
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 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…… -
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…… -
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. …… -
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…… -
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 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 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…… -
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…… -
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…… -
Spring implements AOP using AspectJ annotations and XML configuration
This article demonstrates how to implement AOP in spring by using AspectJ annotation and XML configuration The followi…… -
Explain in detail the voice of spring learning and explicit transaction management
preface In the previous section, we learned about the concept of transaction and the importance of transaction managem…… -
Implementation principle of volatile in Java high concurrency
Implementation principle of volatile in Java high concurrency Absrtact: synchronized and volatile play an important ro…… -
Zuul implementation of API gateway and request filtering in spring cloud introductory tutorial
brief introduction Zuul is Netflix's JVM based router and server-side load balancer. The most common scenario is to re…… -
The Java implementation terminates the running scheduled task in the thread pool
Recently, a new requirement in the project is to realize a function that can dynamically add scheduled tasks. At this …… -
Rxjava + retro fit + MVP to realize shopping cart
This example shares the specific code of rxjava retro to display the shopping cart for your reference. The specific co…… -
Java 8 functional interface and functional interface examples
A functional interface is an interface that has only one abstract method, but can have multiple non abstract methods. …… -
spring boot 1.5. 4. Integrate Shiro + CAS to realize single sign on and permission control
1. Add Maven dependency (install cas-server-3.5.2 first. Please refer to the article for the installation steps) 2. Ad…… -
Detailed explanation of the use and parsing of property placeholder in spring
When we develop applications based on spring, we usually put the database configuration in the properties file Summary…… -
Java method example for reading files in the resource directory
This article mainly introduces the method of Java reading files in the resource directory. For example, this is the st…… -
Java uses delimiters to connect instances of each element in an array
As follows: The above example of Java using separators to connect each element in the array is all the content shared …… -
How to solve instant high concurrency in Java Web
1. Any high concurrency request will always have an order 2. The data structure of Java queue is the value order of fi…… -
Several methods of writing user information to database with high concurrency in Java
Suppose such a situation exists Multiple users write to the database. Our business logic stipulates that each user can……
