Recent Posts
-
Explanation of Java ArrayList implementation example
ArrayList overview: ArrayList is implemented based on array. It is a dynamic array. Its capacity can grow automaticall…… -
Talk about java reflection
The java reflection mentioned this time involves a lot of code. Because reflection is often used in work, a lot of abs…… -
JSON for Java quick start summary
1、 JSON introduction JSON (JavaScript object notation), similar to XML, is a data exchange format. For example, if Ja…… -
A simple example of Java reading and writing txt files
When writing Java programs, we often encounter the situation of reading TXT or writing txt files. However, because we …… -
A practical example of exporting word with freemaker in Java
In a recent project, I had to export word documents for a long time. I found that it was more convenient and easy to u…… -
Classification module of Java Web Book Mall Design (2)
This article is brief and mainly introduces the classification module in Java Web Book Mall. The specific contents are…… -
Construction and validation of Java and Ceylon objects
When transforming java code into Ceylon code, I sometimes encounter situations where some Java class constructors conf…… -
Summary of seven common uses of Java enumeration (must see)
Usage 1: constant At jdk1 Before 5, we defined constants as: public static fianl. Now, with enumeration, you can group…… -
Summary of wechat development agreement
1. The published message corresponds to an ID (as long as a single direction is unique, the server may judge repeated …… -
Detailed explanation of calling MySQL stored procedure in Java implementation
preface Stored procedure is stored in the database and called again after the first compilation. It does not need to b…… -
Summary of experience and experience of calling wechat cash red envelope interface with Java
After reading the blog about wechat payment written before these days, many people still read it. After reading the me…… -
java. util. concurrent. Solution to executionexception problem
java. util. concurrent. Executionexception error message. The solution is given here. You can change it according to s…… -
Java Web realizes online payment function
1. Overview of online payment What is online payment? Yes, it's spending money online! You must have had such an exper…… -
Method for deleting specific elements in ArrayList loop of Java collection class
In project development, we may often need to dynamically delete some elements in ArrayList. One wrong way: The above m…… -
Detailed explanation of MySQL storing Java object instances
MySQL stores Java objects MySQL sets the field to blob To save an object, first serialize the object as byte [] and us…… -
Sending mail for JavaMail tutorial (3)
The JavaMail API defines a Java mail. Transport class, which is specially used to perform mail sending tasks. The inst…… -
Method for converting object bean and dbobject to each other when operating mongodb with Java (recommended)
As follows: The above is all the contents of the method (recommended) of mutual conversion between object bean and dbo…… -
Implementation of mybatis Oracle autoincrement sequence
The code of mybatis Oracle autoincrement sequence is as follows: Resulttype = "int" returns an int type Keyproperty as…… -
Output an instance of JSON data in action in the form of struts 2
The following is the complete code of the whole action: Complete struts The XML configuration file is as follows: The …… -
Summary of three rounding functions in Java
As follows: 1. Rounding off decimals: math floor(3.5)=3 2. Rounding: math rint(3.5)=4 3. Rounding: math ceil(3.1)=4 Th…… -
How to use embedded MySQL in Java
This document mainly introduces the use of embedded MySQL in Java. For some application projects, it is necessary to p…… -
The imitation of Java Web development knows the complete code of the home page
Having nothing to do, I wrote down the simulation with reference to some materials according to the home page of Zhihu…… -
Spring reports an error: the prefix “context” of the element “context: component scan” is not bound. Solve the problem
An error is reported in the spring configuration file: the prefix "context" of the element "context: component scan" i…… -
Java query all tables of Oracle database databasemetadata usage (detailed explanation)
I Get an instance of this object II Method gettables usage Prototype: This method can return the result set resultset,…… -
Spring type conversion conversionservice converter parsing
Take string to date as an example: Define converter: To configure spring: The above is the spring type conversion conv…… -
Java converts the effective length in byte into string instance code
Generally, we use byte to receive the read data. If the data does not reach the size defined by byte, we will directly…… -
Detailed explanation of singleton pattern in Java
Concept of singleton mode: Singleton pattern is a common design pattern in Java. There are three kinds of singleton pa…… -
Java WeChat payment official account payment, scan code payment example
Wechat payment has become more and more popular, and then there are many products that can quickly access wechat payme…… -
Method of realizing Base64 encoding and decoding in Java
Base64 and other similar coding algorithms are usually used to convert binary data into text data, which is designed t…… -
Handling method of exception when gson parses empty string
preface In actual development projects, the server often uses the empty string "" as the return result to represent th…… -
Log4j implementation method of outputting logs to different files by level
As follows: The above is all about the implementation method of log4j outputting logs to different files by level. I h…… -
Reflection mechanism and application scenario of java learning
preface: *** Version x or retrofit, and the early view annotation framework all use java reflection mechanism more or ……