Struts2+ibatis+json realization of Fast Java web2.0 program development
With Struts2 basically finished a company project, the program is always summed up after the development, the previous scheme is STRUTS2+SPRING+DWR these three kinds of
arrays.aslist ()
list list = Arrays.aslist (arr);
Arrays.aslist (ARR) returns an inner class in the list-java.util.arrays.arraylist instead of-java.util.arraylist This class contains set (), Get (), contains () method, but adding and removing
Kudu 0.8.0 version support scan to query the data in a region, currently does not support according to the primary key get API, can be concerned about issueKUDU-1235, millet ice brother is doing. Query by Range
Examples
Kuduclient client = new
Solving Method
Recently doing the Hadoop cluster test, with the hadoop1.0.2, encountered such a problem, will be a written jar package, put on Linux, after the implementation of the Hadoop jar Hadooptest.jar test. After Xxxcount input output,
At
The code is as follows:
private static test [] test = null;
public static void Test (int count) {
if (count
Note: This article assumes that the code is not problematic. 1: Memory overflow on the Java stack 1.1:java.lang.stackoverflowerror
This
Problem 1, inheritance and runtimeexception because it is a uncheck type of error, you can reduce the amount of code in the future program and ease of use. And exception is a must check the type of error, the program must add try,catch processing,
11. When adding elements to TreeSet, only the first element does not need to implement the comparable interface, and the objects added later must implement the comparable interface, which is not a good practice, because when an attempt is made to
Required: JDK Download Address:1. Get Jdk:http://pan.baidu.com/s/1bp9gfirAfter downloading the decompression can be remembered after the extracted address configuration environment variables need to use This is the green version of the JDK (directly
Original address: Click on the Open link
String OS = System.getproperty ("Os.name");
if (Os.tolowercase (). StartsWith ("Win")) {
System.out.println (OS + "can ' t gunzip");
}
System class
public static Properties getProperties()
Returns the
(1) Final: variables, methods, and classes can be modified as modifiers, the final-modified variable can only be assigned one time, and the final-modified method cannot be overridden in subclasses (override); The final-decorated class cannot be
Several ways to package Web applications as war files:
(1) using the jar command at the command line
Suppose you have a Web application: C:/myhome
myhome/web-inf/...Myhome/files/...myhome/image/...myhome/src/...myhome/index.jsp
Under the Command
Apply for Java, did not expect to go after, said is to make Erlang, a new thing, equivalent to the original Java knowledge all abandoned, learn a new set of Dongdong, had to do. No. 50th Bo Xia Road
Specific pen test can refer to:
For example, when I start a frame1, a second frame2 is started by an event response, and when I click on the X button on the window to close, just exit the second frame and the first frame does not close.
The default is to use Exit_on_close, change
Java Stringbuffer.delete () method Java stringbuffer.delete () method usage tutorial, deletes characters from one substring of this sequence. The sequence at which the character index of a substring begins at the specified start and extension end-1
development environment: Myeclipse+jboss
problems encountered: In the running process, the console error Java.lang.OutOfMemoryError:Java heap space
The workaround is as follows:
1. Modify from intalled JREs,
1. Generic type of collection class
generics are a security mechanism that occurs after JDK1.5. To specify the type of elements in a container
Benefits: 1. Transfer problems that occur during the runtime to the compile time.
2. Avoid the hassle of
Import Java.io.BufferedReader; Import Java.io.File; Import Java.io.FileReader; Import java.io.IOException; /** * @description This class implements to read the contents of a file to memory in rows and print out the output of the operation * @time 201
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service