java uses Ant script to generate war package
Preparation before using ant script (this part can be ignored by ant in eclipse)
1. Download an ant installation package. For example: apache-ant-1.8.4-bin.zip. Unzip to disk E.
2. Configure environment variables. Add ANT_HOME: E:\apache-ant-1.8.4; add PATH: E:\apache-ant-1.8.4\bin.
3. Check whether ant configuration is co ...
Posted by cairesdesigns on Mon, 09 Dec 2019 01:54:12 -0800
MyBatis3.x Idea building
MyBatis was apache An open source project of iBatis In 2010, the project was migrated from apache software foundation to google code and renamed MyBatis. Moved to Github in November 2013.
As an excellent orm framework, MyBatis is often compared with Hibernate. As a popular MyBatis, it avoids almost all JDBC code, manual parameter s ...
Posted by johnie on Sun, 08 Dec 2019 19:46:40 -0800
See source solution: org.apache.ibatis.binding.BindingException: Parameter '0' not found
Wrong information
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter '0' not found. Available parameters are [arg1, arg0, param1, param2]
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:77)
at org.mybatis.spring.SqlS ...
Posted by devil6600 on Sun, 08 Dec 2019 12:56:32 -0800
Remote call - getting started with HttpClient
Introduction:
HttpClient is a subproject under Apache Jakarta Common, which is used to provide an efficient, up-to-date and feature rich client programming toolkit supporting HTTP protocol, and it supports the latest version and suggestions of HTTP protocol.
usage method:
1. Create a client CloseableHttpClient
2. Create an instance of the r ...
Posted by Calvin770D on Sun, 08 Dec 2019 02:02:18 -0800
Tips for using Apache commons IO
Commons IO is a utility library that helps develop IO functions.
It mainly includes six aspects:
Utility class - perform common tasks using static methods
input - useful input stream and reader implementation
output - useful output stream and writer implementation
Filter Various implementations of file filter
c ...
Posted by melsi on Sat, 07 Dec 2019 23:35:13 -0800
Analysis of Mybatis plug-in
Preface
MyBatis provides a powerful extension function, that is, the plugins function of MyBatis. MyBatis allows you to intercept and call at a point during the execution of mapped statements. After interception, you can add some customized functions to existing methods, such as common page splitting functions. When you try to modify or rewrit ...
Posted by mayanktalwar1988 on Sat, 07 Dec 2019 10:25:58 -0800
Tomcat8 restricts specified domain name or IP access
Environmental Science: Tomcat8.0.53Objectives:Set to use the specified domain name or IP access
1. SET domain name access
1.1 open the server.xml file of the conf directory under Tomcat and find the following information
Modify Engineengine specifies the default host name to process the request, which is at least the same as the name at ...
Posted by weemee500 on Fri, 06 Dec 2019 20:26:20 -0800
Java bytecode 1-Agent easy to use
I. overview
Java Agent is introduced from JDK 1.5 and later. Its function is equivalent to an interceptor before your main function, that is, before executing the main function, execute the code in the Agent first.
The Agent code runs in the same JVM as your main method and is loaded by the same classloader and managed by the same security po ...
Posted by Azazeal on Fri, 06 Dec 2019 20:19:56 -0800
jdk1.8 Base64Util Illegal base64 character
Encoding and transcoding of jdk1.8 base64
Practical scenario
Recently, there is a need to download the image to the local according to its url, and the client cannot access the url and can only receive Base64 image code. Therefore, it is decided to use the base64 provided by jdk for encoding and transcoding storage.
Episode
Two tool classes a ...
Posted by justspiffy on Fri, 06 Dec 2019 05:35:25 -0800
Learning record remote call (HttpClient,RestTemplate, integrate custom connection pool, integrate SpringBoot test class)
Remote call
1. overview
One project wants to call the functionality of another
"User management system" calls "commodity management system",
We call it "remote call". At this time, "user management system" is equivalent to simulating "browser".
2. Call mode
RPC: the remote call mode of c ...
Posted by callmubashar on Fri, 06 Dec 2019 04:33:48 -0800