This article is still using a small example to illustrate, because I always feel that the case driven is the best, or only to see the theory, read also do not understand, but suggest that after reading the article, in retrospect to look at the
Use Java mail to send a message with a picture in HTML format, there are generally two ways to display a picture.
1. The picture exists on the server, we only need to put the picture in the server's link.
This hairstyle is simpler, but there are
Dom4j feels a bit like JS. Let's take a look at some basic usage of dom4j.
Basic usage
1. Gets the root node of the document.Element Rootelm = Document.getrootelement ();2. Get a single child node of a node.Element memberelm=root.element ("member")
Reprinted from: http://hellojava.info/?p=517 Alibi Xuan Troubleshooting In addition to the most important solutions and logical derivation capabilities, tools are an integral part of the tool, a good tool can be more effective, even in some cases,
Java's synchronization mechanism, presumably by:1.synchronized;Wait,notify in the 2.Object method;3.ThreadLocal mechanism, where synchronized is used in two ways:1. Modifying the method of a class2.synchronized (object) method for retouching in the
Good text reprint: http://blog.csdn.net/zhangjg_blog/article/details/21487287In an in-depth understanding of the Java class file format (a), this paper introduces the position and function of class file in the whole Java architecture, explains the
When Java needs to invoke the Windows system for interaction, it can be manipulated using runtime.Example:1, call the window to get information about Java-related Runtime RT = Runtime.getruntime (); = Rt.exec ("WMIC process where
Maven proxy settings and maven proxy settings
Set % MAVEN_HOME %/conf/setting. xml in the maven installation directory.
| Specification for one proxy, to be used in connecting to the network.| optional true http proxyuser proxypass
Java Basic _ Set List and Set interfaces, java Set listset
Several Methods for listing collections need to be mastered
AddFrist () adds an element to the first part of the set.
AddLast () adds an element at the end of the Set
RemoveFirst ()
[Sharing of dry goods] General tools and general tools for dry goods
In actual project practice, both business coding and general coding will always summarize some common tool classes.
Put it into the project once and for all, so that the brothers
All objects, all objects
1. abstract process:
1. All things are objects.A specific thing like a dog or a house is an object, and an abstract concept like "service" is also an object.You can use objects to store things. Dog objects can store dog
Java IO stream byte output stream OutputString (), output stream outputstring
One of the key points of Java learning: Use of the OutputStream byte output stream
FileOutPutStream: a subclass that specifies the channel for writing data.
Steps:
1. Get
This article mainly analyzes the plug-in mechanism of MyBatis, which is actually the implementation of the responsibility chain mode implemented by Java dynamic proxy.According to the official documentation. Mybatis can only intercept the following
1. The jdom. jar and rome. jar packages are required.2. Create a project. The content of web. xml is as follows: The code is as follows:Copy code Xmlns = "http://java.sun.com/xml/ns/javaee"Xmlns: xsi =
Requirement scenario description:You need to sort a Collection in some way. For example, we need to sort a collection of User objects by company and name. The User object is as follows: The code is as follows:Copy code Package com. guoweiwei.
Apache ant download address:Http://ant.apache.org/bindownload.cgiPut lib/ant. jar in the build path of our project. You only need ant. jar. In fact, ant's zip API is highly similar to jdk's. If it was previously written using jdk's api, basically
Random ()Create a new random number generator. The code is as follows:Copy code Random (long seed) Use a single long seed to create a new random number generator.We can specify the seed when constructing a Random object, for example: The code
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