java »ñµÃ ip µØÖ·
Ò»°ãÇé¿ö»ñµÃ±¾µØËùÓеÄipµØÖ·£º
try {
InetAddress address = InetAddress.getLocalHost();
System.out.println(address.getHostAddress());
String name = address.getHostName();
System.out.println(name);
InetAddress[] addresses = InetAddress.getAllByName(name);
for(int i=0;i <addresses.length;i++)
System.out.println(addresses[i].getHostAddress());
}
catch(UnknownHostException uhe) {
System.err.println( "Unable to find IP ");
}
}
try {
InetAddress address = InetAddress.getLocalHost();
System.out.println(address.getHostAddress());
String name = address.getHostName();
System.out.println(name);
InetAddress[] addresses = InetAddress.getAllByName(name);
for(int i=0;i <addresses.length;i++)
System.out.println(addresses[i].getHostAddress());
}
catch(UnknownHostException uhe) {
System.err.println( "Unable to find IP ");
}
}
µ«ÊÇÒÔÉÏ·½·¨ÔÚlinuxÏÂÊDz»Ðеģ¬
Ïà¹ØÎĵµ£º
public void sort(int[] array) {
for(int i=0; i<array.length; i++) {
boolean flag = true;
for(int j=0; j<array.length-i-1; j++) {
if(array[j]>array[j+1]) {
int tmp = ar ......
StringBuilder path = new StringBuilder(request.getScheme());
path.append("://").append(request.getServerName());
path.append(":").append(request.getServerPort()).append(request.getContextPath());
System.out.println("***********path:" + path);
Syste ......
Ò»¡¢°²×°
´´½¨°²×°Ä¿Â¼£¬ÔÚ/usr/javaϽ¨Á¢°²×°Â·¾¶£¬²¢½«Îļþ¿¼µ½¸Ã·¾¶Ï£º
# mkdir /usr/java
1¡¢jdk-6u11-linux-i586.bin Õâ¸öÊÇ×Ô½âѹµÄÎļþ£¬ÔÚlinuxÉϰ²×°ÈçÏ£º
# chmod 755 jdk-6u11-linux-i586.bin
# ./jdk-6u11-linux-i586.bin
ÔÚ°´ÌáʾÊäÈëyesºó£¬jdk±»½âѹ¡£
³öÏÖÒ»ÐÐ×Ö£ºDo you aggree to the ......
1. LoadRunner£ºÖ§³Ö¶àÖÖ³£ÓÃÐÒé¶àÇÒ¸ö±ðÐÒéÖ§³ÖµÄ°æ±¾±È½Ï¸ß£»¿ÉÒÔÉèÖÃÁé»îµÄ¸ºÔØÑ¹Á¦²âÊÔ·½°¸£¬¿ÉÊÓ»¯µÄͼÐνçÃæ¿ÉÒÔ¼à¿Ø·á¸»µÄ×ÊÔ´£»±¨¸æ¿ÉÒÔµ¼³öµ½Word¡¢ExcelÒÔ¼°HTML¸ñʽ¡£
2. WebLoad£ºwebloadÊÇRadView¹«Ë¾ÍƳöµÄÒ»¸öÐÔÄܲâÊԺͷÖÎö¹¤¾ß,Ëü ......
ÎļþÉÏ´«·½·¨£¨Ò»´ÎÉÏ´«Ò»¸öÎļþ£¬¶à¸öÎļþµÄ»°£¬Çëдѻ·µ÷Óã©
Upload.uploadFile(theFile, filePath)
˵Ã÷£º
theFile£ºÀàÐÍÊÇFormFile
filePath£ºactionÖз¾¶»ñÈ¡·½·¨ this.getServlet().getServletContext().getRealPath("/")
µ÷Óô˷½·¨·µ»ØÎļþÉÏ´«ºóµÄ·¾¶Ãû
ÉÏ´«¶à¸öÎļþʱ£¬ÇëÉèÖÃÿ¸öÎ ......