Java
-
Solve the problem that the project JDK becomes 1.5 after Maven update project
1、 Problem description Create a maven project in eclipse, and then change the JDK version to 1.7. As a result, the JD…… -
Java uses regular expressions (regex) to match Chinese instance code
Only Chinese can be entered PS: let's take a look at the regular expressions to match Chinese in Java. There are two w…… -
Mybatis stored procedure, mybatis paging, mybatis one to many addition, deletion, modification and query
1、 The entity classes used are as follows: Student. java Group. Java 2、 Table structure corresponding to entity Stud…… -
MyEclipse8. 6. How to solve the problem that there is no small m logo on the icon of Maven project for the first time
myeclipse8. 6. After importing Maven project, it is recognized as an ordinary java project, that is, there is no small…… -
Eclipse installation SVN online plug-in tutorial
Eclipse installs the online plug-in for SVN Svn is very helpful for developing Java language with eclipse. Different p…… -
Implementation method of uploading and receiving files using httpurlconnection
As follows: The above implementation method of uploading and receiving files using httpurlconnection is all the conten…… -
Calculator implementation code of simple practical case of Java object
For the use of objects, attributes and methods in Java, a simple case is written Here are some effects on the console:…… -
There is a problem with Java. Javax servlet. http. Httpservlet was not found solution
javax. servlet. http. HttpServlet was not found: Recently, I found this javax servlet. http. The problem of httpservl…… -
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 …… -
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…… -
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…… -
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…… -
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…… -
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 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…… -
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 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 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…… -
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…… -
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…… -
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…… -
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 …… -
Implementation of mybatis Oracle autoincrement sequence
The code of mybatis Oracle autoincrement sequence is as follows: Resulttype = "int" returns an int type Keyproperty as…… -
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…… -
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…… -
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…… -
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…… -
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…… -
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…… -
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…… -
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 wechat development agreement
1. The published message corresponds to an ID (as long as a single direction is unique, the server may judge repeated ……
