Miscellaneous! You need to grow fast! Just hustle up! Dude! Nvr GV up! Go! Go! Go!

Source: Internet
Author: User

Summary of technologies/tools used in the project:

Bug Management: bugfree

Cache: memcache

Message Bus: activemq

Continuous integration: jenkins

CodeCheck: PMD/checkstyle/findbug

WS Test Platform: soapui

Web server: JBoss/tomcat/WebLogic

Database: Oracle/MySQL

Remote Communication: Mina

Text Editor: kindeditor

Rich Client framework: easyui

Data certificate: X.509, which can be used for class file encryption

Java open-source forum: jforum

Java monitoring: jconsole

Test Tool: LoadRunner and jmeter

 

 

Tool address in JSON format:

Http://tools.jb51.net/tools/json/json_editor.htm

Http://jsonlint.com/

Findbug summary:

1. Makes inefficient use of keyset iterator instead of entryset iterator
Explanation: The keyset method does not provide better performance for map traversal than entryset.

This method needs to be used when traversing the map: (efficiency is twice faster than the second method)
Iterator <entry <string, string> entrykeyiterator = entrysetmap. entryset (). iterator ();
While (entrykeyiterator. hasnext ()){
Entry <string, string> E = entrykeyiterator. Next ();
System. Out. println (E. getkey ());
System. Out. println (E. getvalue ());
}
Do not use the following method:
Iterator <string> keysetiterator = keysetmap. keyset (). iterator ();
While (keysetiterator. hasnext ()){
String key = keysetiterator. Next ();
String value = keysetmap. Get (key );
System. Out. println (key );
System. Out. println (value );

}

 

Java reads the properties File

String STR = file. Separator;
File F = new file ("D: \ A. properties ");
Inputstream Path = new fileinputstream (f );
// Inputstream = This. getclass (). getclassloader (). getresourceasstream ("password. properties ");
/* File filepath = new file (this. getservletcontext (). getrealpath (STR + "WEB-INF" + STR + "classes") + STR + "password. properties ");
Inputstream Path = new fileinputstream (filepath );*/
Properties pros = new properties ();
Try {
Pros. Load (PATH );
} Catch (ioexception ex ){
System. Out. println ("file is not exist ");
}
System. Out. println ("username:" + pros. getproperty ("username") + ", password:" + pros. getproperty ("password "));

Username = Yang
Password = Ming

 

 

Tomcat6 memory modification method:
Insert in the first line of Catalina. BAT:
Set java_opts =-xms256m-xmx512m-XX: maxpermsize = 128 M-DCOM. sun. management. jmxremote. port = 1090-DCOM. sun. management. jmxremote. SSL = false-DCOM. sun. management. jmxremote. authenticate = false

Setting window-preferences-Java-Editor-SAVE actions in eclipse will help you import/delete packages by yourself.
Eclipse shortcut:
1. CTRL + ALT + H
Show who calls
Note: "H" ---> "hierarchy" ---> "Call level"

2. Alt + Shift + R Rename for variables

3. Alt + Shift + C reconstruction for methods

4. CTRL + Shift + B add a breakpoint to a row

5. CTRL + F11 run the last timeProgram, F11 debug the last program

6. CTRL + k Ctrl + Shift + k search for keywords up/down

7. Alt + Shift + W find the path in the project where the current file is located

thread. currentthread (). getstacktrace () [1]. getmethodname (); get the name of the current method
thread. currentthread (). getstacktrace () [2]. getmethodname (); get the name of the method that calls the current method
// The following method can get the name of the nested method
Public static void main (string [] ARGs) {
pushpoi1 ();
}< br>
Public static void pushpoi1 () {
common1 ();
}< br>
Public static void common1 () {
system. out. println (thread. currentthread (). getstacktrace () [2]. getmethodname ();
}< br>

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.