Java
-
How to solve mybatis — Java lang.IllegalArgumentException: Result Maps collection already contains value for X
In the past two days, the project needs to integrate the three frameworks of spring, struts 2 and mybatis, but this er…… -
Example of conversion between JSON and objects and collections
Conversion of JSON string and Java Object [JSON lib] During the development process, it is often necessary to exchange…… -
Example of AES secret key generation algorithm implemented in Java
This paper describes the AES secret key generation algorithm implemented in Java. Share with you for your reference, a…… -
Java JDBC connection and use details
Java JDBC connection and use jdbc Import driver //Jar is a packaged set of class files that can be referenced in other…… -
The most complete usage summary of for loop, a new feature of Java
1. Overview of enhancements Enhanced for loop, also known as foreach loop, is used to traverse arrays and containers (…… -
JAVA memory structure and data type
JAVA memory structure Memory is a temporary storage of data. Its storage speed is very fast, but it is temporary stora…… -
Detailed explanation of the difference between Java array and ArrayList
The difference between Java array and ArrayList 1) Incisive exposition: You can think of ArrayList as an "array that a…… -
Redis of Java (spring data redis integration)
1. Integrate with spring data redis POM used in the project xml: Except for the log part, there is only one spring co…… -
Instance resolves the Java date format tool class dateutil java
If you don't have much to say, please see the code: DateUtil. java Test use DateUtilTester. java The above is the whol…… -
Wechat public account development – example of creating custom menu and menu event response
The user-defined menu of wechat development public platform needs to spend money for authentication. If you don't want…… -
Play with spring boot MVC application (2)
How to quickly build an MCV program? Refer to the official example of spring: https://spring.io/guides/gs/serving-web-…… -
A case study of using spring AOP to realize read-write separation of MySQL database (with demo)
1、 Foreword The read-write separation strategy of database in distributed environment is a key solution to solve the …… -
Analysis of Java method for counting the number of string words
In some projects, it may be necessary to count the words in a string. I wrote a simple demo here, which can be taken b…… -
Summarize ten practical but paranoid Java programming techniques
preface When you immerse yourself in coding for a period of time (for example, I have invested nearly 20 years in prog…… -
Comparison between Java abstract class and interface
Comparison between Java abstract class and interface preface Abstract class and interface are both used by java to des…… -
Explain the implementation of Java websocket and spring websocket in detail
Start learning websocket, and prepare to use it to realize a log that outputs log4j in real time on the page and the l…… -
Spring integrates TimerTask to realize scheduled task scheduling
I preface Recently, timed tasks have been used in the company's projects. This blog will summarize the timed tasks of …… -
Method of dynamically adding view in Java
In general, most of us write the layout directly in XML files, but sometimes we need to add the layout dynamically wit…… -
After the Java date is installed as an English string, the solution to date cannot be switched back
This is a problem encountered by colleagues. The date in the code is placed on the page in the format of "fri Mar 21 0…… -
Detailed explanation of spring MVC interceptor to realize session control
If you are not logged in, you are not allowed to access the page in the background folder. How do you determine whethe…… -
Java paging tool class and its use (sample sharing)
Pager. java Use pagertester java The above is the whole content of this article. I hope the content of this article ca…… -
The example explains in detail the conversion between java image and Base64 string
There's no more nonsense. I'll directly post the conversion code between java image and base84 string. The specific co…… -
Rules for Java data types
Rules for data types Select the appropriate data type to store. For example, it is used to store the age. Its value ca…… -
Detailed introduction and simple example of Java base64encoder
Detailed explanation of Java base64encoder Base64 is one of the most common encoding methods for transmitting 8bit byt…… -
Method of mutual conversion between Java object and JSON object
The jar package required in the project is not easy to find on the Internet, so I put it in my network disk and downlo…… -
Quick sorting example of Java sorting algorithm
This paper describes the implementation method of Java quick sorting. Share with you for your reference, as follows: I…… -
JavaMail Getting Started tutorial receiving mail (4)
In the third part of the previous introduction to JavaMail, we learned how to send mail using the transport class prov…… -
Java export method for generating CSV file
First of all, we need to have a basic understanding of CSV files. CSV files are similar to excel and can be opened wit…… -
Comparison of several methods for judging the same elements in HashMap, HashSet, treemap and TreeSet in Java
Comparison of several methods for judging the same elements in HashMap, HashSet, treemap and TreeSet in Java 1.1 HashM…… -
Facade of Java design pattern
summary External and internal subsystems must communicate through a unified appearance mode object, that is, appearanc…… -
Instance method of java image clipping and thumbnail generation
1、 Thumbnail When browsing the album, you may need to generate corresponding thumbnails. Direct code: Directly run th…… -
JDBC addition, deletion, modification, query and unique complete code analysis
Part I code (entity class) Part II BaseDao (addition, deletion, modification, query and unique query) Part III hehedao……