Background: Deploy two projects at the same time as Tomcat, launch java.lang.OutOfMemoryError: PermGen spaceCause: Because there are too many jar packages for two items, the JVM explodes the default memory when loading the class file.Workaround:(1)
Overview
The Java Collection class is primarily derived from two interfaces: Collection and map,collection and map are the root interfaces of the Java Collection framework, which in turn includes sub-interfaces or implementation classes. As a
1. Identifiers are used to identify the names of variables, constants, methods, classes, or interfaces. (The place where you need to name yourself is called a marker!!) )Can only be made up of numbers, letters, _, or $Must be preceded by a letter, _,
/*list Basic Operation** List A=new list ();* Increase* A.add (index,element); add by specified position, the remaining elements move back* AddAll (index,collection); Adds a series of elements starting at the specified position, and the remaining
String, StringBuffer, use of StringbuliderString: non-changing sequence of Unicode charactersIn memory, a string pool is created automatically (placing common data), and if strings are created using literals , Java looks in the secondary
Note: A recent work encountered a problem, wrote a log processing module, now needs to be used for third-party customers, but the module relies on our own write or modify some of the jar package, you can choose the scenario: 1. All jar packages are
Public list comparatorscoreasctest (list jfAuctionList) {Collections. Sort (jfauctionlist, new comparator () {/* * int compare (Student O1, Stud ENT O2) Returns an integer of the base type, * Returns a negative number indicating: O1
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, 4, 200, 1, 3, 2] ,The longest consecutive elements sequence is [1, 2, 3, 4] . Return its length: 4 .Your algorithm should run
[Switch] Hibernate and ibatis comparison, hibernateibatis
1. Introduction
Hibernate is currently the most popular O/R mapping Framework. It was born in sf.net and has become a part of Jboss. IBATIS is another excellent O/R mapping Framework, which
Struts2-generation history step by stepStruts2 step by step generation History 1 JSP:
In earlier web applications, html static pages were used. jsp embedded java scripts in HTML files to achieve page dynamics. HTML tags are used to layout and
JSP page connection and submission methods (web basic learning notes 6) and web Learning notes
1. GET request New Page 1.1 and hyperlink request New Page
link to page2 link to page2 in the window relative path link to page2 link
Quartz task scheduling first use record, quartz task scheduling record
Recently, the data exchange system developed by the company is embedded with the quartz task scheduling function, which roughly describes the entire process of task scheduling.
One of the methods to use ActionBar
When you encounter the need to use ActionBar during the project, you can write it down so that you can understand this method and use it later. Of course, there are other methods that will be studied later:
Write
AJAX (ii) AJAX frameworkI have made a detailed introduction to the ajax asynchronous request server and made some basic applications. It can be seen that some ajax processes remain unchanged. It is not necessary to write the sending code every time
Sequential search algorithm and Binary Search AlgorithmSequential Search Algorithm
Int lin_Search (const int array [], int size, int key) {int index; for (index = 0; index
Binary Search Algorithm
Int bin_Search (const int array [], int low,
@ RequestBody in springMVC
Recently, it's okay to help students build a graduation project using SpringMVC. Project development has been useful but has never been built on their own. Many problems have arisen in the use of @ Request.
@
Array form submissionI encountered a problem today. I had to save a lot of form information. After a long time, I finally found a good method to submit the data in the form to the background in the form of arrays for storage. In fact, the
The Activity transmits parameters to Fragment.
This afternoon, I had a hard day to figure out how to pass parameters to Fragment. In fact, there are a lot of information on the
Ajax allows you to add Forum sections to favorites and return prompt information asynchronously.
I. Description
On the forum page, you can click this hyperlink to add the forum to favorites. However, to prevent repeated collections and collection
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