Java Web Learning RouteJava is divided into J2ME (mobile application development), J2SE (desktop application development), Java EE (Web enterprise application), so it is not a standalone version, but the object-oriented language. It is recommended
1, when the single-table query, the XML tag is written as followsWhen you make a multi-table query with no deterministic return type, the XML tag is written as follows:Because there is no corresponding type, the result of the HashMap type is
Recently looking at "Java Virtual machine concurrency Programming", here to record some important stuff.Determine the number of threads:1. Get the number of processor cores available on the system: int numofcores = Runtime.getruntime ().
PermGen space is the full name of permanent Generation space, refers to the memory of the permanent storage area Outofmemoryerror:permgen space from the surface is the memory benefits, the solution must be to increase memory. Tell me why memory
Java WEB Environment Setup Steps
Install the corresponding version of the JDK
Configuring Environment variables
I installed the path is C drive, add C:\Program files\java\jdk1.8.0_65\bin in PathTest configuration succeeded, cmd
Import java.util.arrays;/*** Dictionary full arrangement * string of full array * such as the word "too" its full array is "oot", "Oto", "too" * *, starting from the right side of the scan, if the previous one is smaller than the latter, Record the
Synchronization is required when multiple threads share a resource (otherwise an error occurs: such as negative numbers, repetitions), but excessive synchronization can cause deadlocks.Synchronized (This){}Non-synchronous condition:public class
Hierarchy of the Exception classAll exception classes are subclasses that inherit from the Java.lang.Exception class.The Exception class is a subclass of the Throwable class. In addition to the exception class, Throwable also has a subclass
1.String is more memory space than stringbuffer, when stitching stringsCause: String The actual amount of memory consumed by this object does not correspond to its own number of bytes.Conclusion: It should be used less string, especially the string "
There is a String.Split () method in the Java.lang package, which returns an arrayI use in the application of some, to summarize for you, for your reference only:1. If you use "." As a separate word, it must be written as follows, String.Split ("\ \"
Recently in a crawler project, the use of a read-write configuration file method, recorded in the future may be used.Properties Pro =NewProperties ();BooleanIsFirst =true;//Read the file from the class load path, so the file location requires lil
PrefaceWhy sometimes learn to learn will suddenly feel all the degree is so boring, the man's every month also have a few days? Haha, otherwise is what, I still want to insist, can do less, but cannot what degree does not do. It's always over.
MyBatis configuration, mybatis configuration file
Compile the MyBatis configuration file (the configuration file can be found in the PDF file downloaded from the compressed package root, which also contains the sample configuration)
Emp. xml
1 2 5
Java transient keyword, transient keyword
Each time a member variable modified by Volatile is accessed by a thread, the value of the member variable is forcibly re-read from the main memory. In addition, when the member variables change, the thread
Eclipse common shortcut keys and eclipse shortcut keys
On a deep open-source website, I saw a hardcore development post, summing up the Eclipse shortcut key combination. After reading it, I was shocked and excerpted some of it, which is effective
Mybatis ResultMap, mybatisresultmap
When you write complex ing statements, or the database column names and object names cannot be mapped, You need to configure a resing by using ResultMap.
It is also said on the official website that such a
Jav uses poi to read excel and javpoi to read excel
package com.taotaosou.core.zipcode;import java.io.File;import java.io.FileInputStream;import java.io.IOException;import java.io.InputStream;import org.apache.poi.hssf.usermodel.HSSFSheet;import org.
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