Read about java spring framework tutorial for beginners, The latest news, videos, and discussion topics about java spring framework tutorial for beginners from alibabacloud.com
Location: http://www.mkyong.com/Start by just knowing some of the basic concepts of spring, and then always in how to access through code. Did not find a good template and tutorials to practice. Later on this site saw a lot of excellent tutorials, a lot of simple demo, can help me quickly understand and implement the demo practice.For example, how to make MySQL a simple connection and request in spring. The
Onecoder this weekend, and the new home does not have a network, the task of this week's translation has not been completed, the next Monday onwards, first on a comparison of Oio and NiO small research.Netty not only supports the NIO model in Java, but also provides support for the OIO model. (New io vs old io).First, in Netty, switching between the OIO and NiO two modes is very convenient, only need to initialize different channel works. serverboots
FindDups2 { public static void main(String[] args) { Set
The code execution result is as follows:
Unique words: [left, saw, came]Duplicate words: [i]
There is also a less common set algebra operation, that is, the symmetric set difference set-composed of elements in two sets, but the elements cannot contain in the intersection of two sets. The following code implements this effect:
Set
Array Operations of the Set Interface
The array operation of the Set interface is no different f
List.add (f); List.add (s);//To use a member specific to the object, the type conversion fatherf1= (Father) list.get (0) must be enforced; F1.work (); sons1= (Son) list.get (1); S1.play ();/******************* used a generic collection ************* /system.out.println ("-----------------------------");/** create generic collection objects, you can use ArrayList, You can also use linkedlist* Note: *1, generics can only use reference types, cannot use basic data types * such as:listGeneric SetPa
); List.add (s);//You must force type conversion Father f1 = (Father) When you want to use members that are specific to the object List.get (0); F1.work (); son S1 = (son) list.get (1); S1.play ();/******************* uses the generic collection ********************/system.out.println ("-------- ---------------------"); */* Create generic collection objects, you can use ArrayList, or you can use LinkedList * Note: * 1, generics can only use reference types and cannot use basic data types * For e
fileFile content FormatKey = valueExample: File name: Properties.txt file Contents: username=adminpassword=123456 File Address: src/map/properties/ Properties.txt where the file address is an instance starting from the project root directory:packagemap.properties;importjava.io.fileinputstream;import java.util.properties;/*** demonstrates some common methods in the Properties class * @author Genius Federation - Yukun * /publicclasspropertiesdemo{publicstaticvoidmain (String[]args) { Create a Pr
When clicking on a hyperlink or submitting an HTML form in the STRUTS2 Web application, the input collected is sent to a Java class called the Operation Controller. When the action is executed, the result selects a resource to render the response. A resource is usually a JSP, but it can also be a PDF file, an Excel spreadsheet, or a Java applet window.
Suppose you have a development environment in place. N
channel is created by ChannelFactory, and the newly created channel is automatically registered to a hidden I/O thread. 4.0 replaces the ChannelFactory with the new interface named Eventloopgroup, which is composed of one or more eventloop. A new channel is not automatically registered to Eventloopgroup, but the user can explicitly call Eventloopgroup.register () to register. In the server-side bootstrap parameter, there are two eventloopgroup, the first commonly referred to as ' Boss ', to rec
detailed process10th Chapter Netty Performance Optimization Tool class parsingDetailed analysis of the Netty inside the highest frequency use of the two performance optimization class fastthreadlocal and lightweight object pool Recycler11th Chapter Netty Design Pattern ApplicationAnalysis of common design patterns and their application in Netty12th Chapter Netty High Performance concurrency tuningHow to support millions of connections at the system level and how to improve application-level per
0. About HibernateHibernate is the meaning of hibernation, it refers to the hibernation of animals, but the hibernate discussed in this paper is not related to hibernation, but the next to discuss the SSH2 framework of a member. Hibernate is an Open-source project that is a framework for an object relational model and a very lightweight encapsulation of JDBC, which programmers can develop with object progra
Struts 2 is the next-generation product of Struts. It is a new struts 2 framework that is merged Based on Struts 1 and WebWork technologies. This video tutorial is based on Struts2. If you are still learning Struts1, stop learning and join Struts2. However, SpringMVC seems to be a good choice. Video content: 01_struts initial 02_struts action configuration 03_struts parameter transfer value 04_Struts Ognl d
= ChannelBuffers.buffer(msg.length());79.buffer.writeBytes(msg.getBytes());80.e.getChannel().write(buffer);81.}82.}83.84.}Unlike the "Hello World" sample code, the client does not print locally after the channel is connected, http://www.it165.net/pro/html/201207/3142.html Instead, the message is converted to Channelbuffer and passed to the server, which is decoded into a string after the server has received Channelbuffer.At the same time, by contrast can be found that the change is only handler
normally prints the result: Hello action.Simply comb your thoughts:
Pass through the Netty, all need to flow based, in the form of Channelbuffer. So, Object---Channelbuffer.
Netty provides a conversion tool that requires us to configure to handler.
Sample from the client-side server, one-way message, so the client configured the encoding, the service-side decoding. If you are sending and receiving two-way, you need to configure encoder and decoder.
It is important to note
following code traverses set a and deletes all its elements:
List
If ITER. Remove is put before ITER. Next (), a java. Lang. illegalstateexception is thrown.
Note that iterator. Remove is the only security method for modifying a set during collection traversal. If you use other methods to modify the set during the traversal of the Set, unexpected events will occur.
Use the iterator instead of the for-each when you need to do the following:-remove the
other words, he is here to control the distribution and delivery of channelevent events. Events in the pipeline flow, the first stop to where, the second stop to where, to where is the end, is to use this channelpipeline treatment. For example: development events. First give a design, then to b development. A flow chart, hoping to give you a more intuitive feeling.ChannelhandlerJust said pipeline responsible for the incident distribution to the corresponding site, the site in Netty, that is, re
Usage Environment: ECLIPSE+MAVEN+SPRING+QUARTZ1Use purpose: Perform the timer to complete the scan operation.Puzzle point: Using the QUARTZ2 version will appear inexplicable errors, similar to the interface and class definition of the difference. Look at the document and don't get it straight.
Use steps:
1. Configure the MAVEN profile (configured with the QUARTZ1 version), pom.xml add the code:
The code is as follows
Copy 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.