Reference: http://weistar.iteye.com/blog/1744871Preparatory work:1. Download the JDBC Driver package: http://www.microsoft.com/zh-cn/download/details.aspx?id=215992. When the download is complete, click Run and you will be prompted to select the
Today made the Java file read and write, oneself also summed up a bit, but not all, only two ways, first directly look at the code: Public Static voidMain (string[] args)throwsIOException {io (); Buffer ();}/*** Read and write as a stream can use
In the table that stores the records, add a column that controls the properties of the record, such as adding a kind columnThe meaning of each value: 1 Normal 3 topWhen the administrator is pinned, set the value of the corresponding record's kind
This must be written in Basedaoimpl if you want to be public. Because this is to inherit the Hibernatedaosupport, and then in the DAO and other related to inherit, implementSession= gethibernatetemplate (). Getsessionfactory (). Opensession
This method can handle the case that the file name contains Chinese, the contents of the document contain Chinese (test environment: Win8-chinese), the code is very short, reserved for later useUsing the Ant.jar package, you need to download and
From the most general hierarchy, the system hierarchy is from top to bottom:Presentation layer: The main client display.Service layer: A service or function that is directly provided to the client. It is also the function that the system can provide
principle: binary search is also called binary search, the advantages are less than the number of comparisons, fast search speed, good average performance, the disadvantage is that the unknown origin table is ordered table, and insert delete
Spring annotations static variables
To inject static variables
@ ResourcePrivate static ITecharchService techarchService; // The injection is empty. spring annotation injection does not support static variable injection.
Find the information and
Design Pattern (2) combination pattern Composite (expression evaluate)
Purpose of the combination mode: Combine objects into a tree structure to represent the relationship between the entire part. Composite makes the use of a single object and a
Date computing implemented in javaThe date calculation here is relatively biased and rarely used (for example, obtaining the Monday or Sunday of the week where today is the week of the month ...), these methods are left over from previous projects.
Structs2 Chinese garbled SolutionTo sum up, Chinese characters are garbled. First, you must identify whether the page is garbled, the action is garbled, or the database is garbled. The general principle is that java uses unicode encoding --> window
Set ActionBar menu text attributes
Some time ago, I used ActionBar as an application and used the support v7 package. This package is much more powerful than the original support v4. I will not explain how to reference the support v7 package here,
Design Pattern-Observer Pattern and state pattern[Observer mode] multiple observers listen to a topic at the same time. Once the topic object changes, all observer objects are notified and their own update events are updated accordingly!
Precautions for high concurrency in java SE Program
Recently I made a java SE program. Use the thread pool to process highly concurrent tasks. Database query operations are performed during task processing, resulting in slow task processing. So I
Struts2-struts2 learning Summary
I. Case study: the learning of struts2 has come to an end from this chapter. I just want to end my blog post on struts2, rather than saying that your learning is coming to an end. If you dare to say that you are
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