intCompare (user O1, user O2) {returno1.getage (). CompareTo (O2.getage ()); } }}Results:Hello! My Name is Jessica and I ' M 20;i am 1 and i 'm ordered by Name Deschello! My Name is Abobo and I ' M 30;i am 2 and I 'm ordered by Name Deschello! My Name is Abobo and I ' M 30;i am 1 and i 'm ordered by Name Aschello! My Name is Jessica and I ' M 20;i am 2 and I 'm ordered by Name Aschello! My Name is Abobo and I ' M 30;i am 1 and i 'm orderedby age Deschello! My Name is Jessica and I '
, beanpostprocessor will process it and automatically create a proxy object for the bean that satisfies the matching rule.http://blog.csdn.net/itomge/article/details/8861268http://uule.iteye.com/blog/894055Spring Weaving Concept Weaving (Weaving): The process of applying a facet (Aspect) to a target object to create a new proxy object, which generally occurs in the following time:
compile time : When a class file is compiled, this requires a special compiler to do so, such as AspectJ's
Applicationobjectsupport. Description: Abstract class Applicationobjectsupport provides the Getapplicationcontext () method, which can be easily obtained to ApplicationContext. When spring initializes, the ApplicationContext object is injected through the Setapplicationcontext (Applicationcontextcontext) method of the abstract class.
inherits from the abstract class Webapplicationobjectsupport. Description: Similar to the above method, call Getwebapplicationcontext () to get Webapplicat
IE vs FF CSS Compatibility essentials: DOCTYPE affects CSS processing Ff:div Set Margin-left, Margin-right is already centered when auto, IE not good ff:body set text-align, Div needs to set Margin:auto (mainly margin-left,margin-right) to center FF: Set padding, div will increase the height and width, but IE will not, it is necessary to use!important more set a height and width FF: Support!important, IE is ignored, can be!important for FF
.
If a class is final, all methods in the class are final.
Expansion and Promotion:
Static,final and abstract are not able to modify the construction method
Class loading
Concept: When the JVM uses a class for the 1th time, it first finds the corresponding. class file from the Classpath, reads all the contents of the file (Properties/Methods/class name/package structure/construction/static ...), and saves the process, called class loadin
A professional website to get the trust and confidence of most people, how can you get rid of your website rustic, to create a professional? Here is a 12 point design essentials, consider in a professional website design.
1. First Impressions
We all know that first impressions are very important. It has always been a big factor in retaining readers and attracting new users. If your site doesn't impress readers on your first visit, they don't want to
I. GENERAL forms1. The table is defined by the 2. If you want to define a border, add border="宽度">1 TableBorder= "1">2 TR>3 TD>Row 1, Cell 1TD>4 TD>Row 1, Cell 2TD>5 TR>6 TR>7 TD>Row 2, Cell 1TD>8 TD>Row 2, Cell 2TD>9 TR>Ten table>3. The table header uses TableBorder= "1">TR>th>Headingth>th>Another Headingth>TR>TR>TD>Row 1, Cell 1TD>TD>Row 1, Cell 2TD>TR>TR>TD>Row 2, Cell 1TD>TD>Row 2, Cell 2TD>TR>Table>4. Empty cells in the table if the border disappears, the space placeholder "" is the nbsp ap
to access pages that do not have permission to access.If the parameters in the URL of the normal user is l=e, the parameter in the URL of the advanced user is l=s, and the parameter E in the URL will be changed to the S to access the page without permission after logging in as a normal user.9. The non-modifiable parameters in the URL can be modified;10. After uploading an executable such as a file or EXE with the same extension as the server-side language (jsp,asp,php), confirm that it can be r
associations are in the middle tableCascade PropertyCascade has so many values:
None cascade operation, default value
Save-update Cascade Save or update
Delete Cascade deletion
Save-update,delete Cascade Save, UPDATE, delete
All ibid. Cascade Save, UPDATE, delete
What we may use often is: save-update this value, because the risk of cascading deletion is too great !
Cascade Save
Cascading is not set--if you save only one object and the object has
[Email protected] ~]# ls/tmp/File-2016-11-15-19-10-06.txt ssh-igeaz44692 testcp T.txtLost+found T1.txt Tmp.txt################################################15,bash Supported QuotesAnti-quote ': command substitutionDouble quotation mark "": Weak referenceSingle quote ': Strong reference################################################16, filename wildcard GLOBBISG*: Any character of any length? : Single arbitrary character[]: matches a single character within a specified range[Abc],[a-z],[a-z],[
PID.-u user: monitored process user.Iotop Common shortcut keys:Left and right arrows: Change the sorting method, by default, sort by IO.R: Change the sort order.O: Only processes with IO output are displayed.P: Switch the way the process/thread is displayed.A: Displays cumulative usage.Q: Exit.You can see the effect by executing iotop directly:Total DISK read:0.00 b/S | Total DISK write:0.00 b/STID PRIO USER disk READ disk WRITE swapin io> command1 BE/4 root 0.00 b/S 0.00 B/s 0.00% 0.00% init [
1. Print Network interface list[touch_more]# ifconfig | cut-c-10 | Tr-d ' | Tr-s ' \ n 'Eth0Lowww.qixoo.qixoo.com//cut-c-10; The first 10 characters of the output;Tr-d "; Delete all spaces;Tr-s ' \ n '; Compress repeated line breaks2. View Name server[touch_more]# cat/etc/resolv.conf# Generated by NetworkManagerDomain LocaldomainSearch LocaldomainNameServer 192.168.119.23. DNS Lookup[touch_more]# nslookup www.csdn.netserver:192.168.119.2address:192.168.119.2#53Non-authoritative Answer:Www.csdn.n
The drive must be uninstalled before you install it!
If UEFI is installed, the boot drive should be set to the hard disk on which Windows is located, otherwise it will be set to the entire hard drive. You can then use EASYBCD to set up boot under Windows.
Unity Tweak tool inside, the window spread must be closed, otherwise if you open a software multiple windows, and then press the icon on the taskbar, the software will flash back to the desktop.
If you use flatabulous themes and icons,
"alt=" Full stack prerequisite Linux Basic full Stack prerequisite Linux basic "class=" AlignCenter size-full wp-image-76939 "title=" Full stack prerequisite Linux foundation full stack prerequisite Linux basic "width=" "height=" 724 " />As far as application management is concerned, Ubuntu needs to be familiar with apt commands, while CentOS is the Yum command. Of course, the source code compilation installation is necessary, makefile the wording of the configure/autoconfig/make, the use of ex
number is 1, the error output number is 2performed in the system with a normal user "Student"Find/etc-name passwdbecause the student user rights issue will have the following outputFind: '/etc/pki/ca/private ': Permission denied # # # #没有进入权力, errorFind: '/etc/pki/rsyslog ': Permission deniedFind: '/etc/audit ': Permission denied/ETC/PASSWD # # #正确输出Find/etc-name passwd > File # # # # #重定向正确输出Find/etc-name passwd 2> File # # # # # #重定向错误输出Find/etc-name passwd > File # # # # #重定向所有输出Note : 2>,>
1. Python IndentIs the Python indent a tab or a space? All can, can be a tab, can also be 4 spaces, but most importantly, the entire Python script indentation must be unified, otherwise it will be an error.2. Code CommentThere are two ways to annotate Python, as follows:# This is a single-line comment "' This is a multiline comment here is a 3 single quote ~" "" " this is a multiline comment here is a 3 double quotation mark ~" "3. Sentence break#!/usr/bin/pythona=2;b=23 #python默认
bytecode, and so on.Http://www.codeceo.com/article/5-jvm-command.htmlSummary of the most commonly used Eclipse shortcut keysThis article is a summary of some of the most useful, complete, and time-saving Eclipse shortcut keys that can help you do any of the work you do. Welcome reference.Http://www.codeceo.com/article/eclipse-shortcuts.htmlThe default method used in Java 8 is detailedAfter Java 8 is released, you can add a new method to the interface, but the interface can still be compatible w
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.