包含标签:Java 的文章
-
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) …… -
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…… -
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…… -
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 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 …… -
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…… -
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 =…… -
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…… -
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…… -
How spring boot adds interceptors
Build a spring boot project. Adding an interceptor requires adding a configuration To facilitate the scanning location…… -
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 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…… -
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 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…… -
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…… -
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 method for obtaining project file path
this. getClass(). getResource("/"). getPath(). Substring (1) gets the path e: / MyEclipse / test / Webroot / WEB-INF /…… -
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, …… -
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…… -
Implementation principle of volatile in Java high concurrency
Implementation principle of volatile in Java high concurrency Absrtact: synchronized and volatile play an important ro…… -
Java method for creating and deleting files and directories (recommended)
Methods for creating and deleting file classes commonly used in files / directories 1. Boolean exists(): judge whether…… -
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…… -
Quartz method for realizing dynamic configuration of Java timing task
Let's talk about some problems that have nothing to do with this article. This period of time is particularly uncomfor…… -
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 …… -
Explain bitwise operators in Java
The bit operator of Java is used to operate on a single "bit" in the basic data type of an integer, that is, the hexad…… -
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…… -
Detailed explanation of spring boot using thymeleaf template
preface Thymeleaf is a template engine similar to velocity and FreeMarker, which can completely replace JSP. Compared …… -
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. …… -
Explain spring MVC request forwarding and redirection
Comparison between request redirection and request forwarding, httpservletresponse Sendredirect method and requestdisp…… -
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…… -
Perfectly solve the problem that spring declarative transactions are not rolled back
The @ transactional annotation is added to the service as usual. Why is there data inconsistency when querying the dat…… -
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……