Java ÖÐÀà±äÁ¿ÓëʵÀý±äÁ¿µÄÇø±ð
javaÀàµÄ³ÉÔ±±äÁ¿ÓÐÁ©ÖÖ£º
Ò»ÖÖÊDZ»static¹Ø¼ü×ÖÐÞÊεıäÁ¿£¬½ÐÀà±äÁ¿»òÕß¾²Ì¬±äÁ¿
ÁíÒ»ÖÖûÓÐstaticÐÞÊΣ¬ÎªÊµÀý±äÁ¿ ÀàµÄ¾²Ì¬±äÁ¿ÔÚÄÚ´æÖÐÖ»ÓÐÒ»¸ö£¬javaÐéÄâ»úÔÚ¼ÓÔØÀàµÄ¹ý³ÌÖÐΪ¾²Ì¬±äÁ¿·ÖÅäÄڴ棬¾²Ì¬±äÁ¿Î»ÓÚ·½·¨Çø£¬±»ÀàµÄËùÓÐʵÀý¹²Ïí¡£ ¾²Ì¬±äÁ¿¿ÉÒÔÖ±½Óͨ¹ýÀàÃû½øÐзÃÎÊ£¬ÆäÉúÃüÖÜÆÚÈ¡¾öÓÚÀàµÄÉúÃüÖÜÆÚ¡£
¶øʵÀý±äÁ¿È¡¾öÓÚÀàµÄʵÀý¡£Ã¿´´½¨Ò»¸öʵÀý£¬javaÐéÄâ»ú¾Í»áΪʵÀý±äÁ¿·ÖÅäÒ»´ÎÄڴ棬ʵÀý±äÁ¿Î»ÓÚ¶ÑÇøÖУ¬ÆäÉúÃüÖÜÆÚÈ¡¾öÓÚʵÀýµÄÉúÃüÖÜÆÚ¡£
Ïà¹ØÎĵµ£º
ÕâÊÇÒ»¸öÓÃJAVA W3C DOM ½øÐÐXML²Ù×÷µÄÀý×Ó£¬°üº¬Á˲éѯ¡¢Ôö¼Ó¡¢Ð޸ġ¢É¾³ý¡¢±£´æµÄ»ù±¾²Ù×÷¡£½ÏÍêÕûµÄÃèÊöÁËÒ»¸öXMLµÄÕû¸ö²Ù×÷Á÷³Ì¡£ÊʺϸÕÈëÃÅJAVA XML²Ù×÷µÄÅóÓѲο¼ºÍѧϰ¡£
¼ÙÉèÓÐXMLÎļþ£ºtest1.xml
<?xml version="1.0" encoding="UTF-8"?>
<books>
<book>
<name>¹þÀï²¨Ì ......
ÏÂÔصØÖ· ¿ÉÒÔÔÚeclpseÖÐÅܵÄ
Éú²úexcelÓ¦Óãº
package com.lihp.exl;
/**
Ä¿µÄ£ºÌṩÓÉÊý¾Ý¶ÔÏ󼯺ÏÀࣨVector£©Éú³ÉExcel¹¤×÷±íµÄ¹¦ÄÜ
×÷Õߣºlihaipeng
*/
import java.io.*;
import java.util.*;
import java.lang.reflect.Method;
import org.apache.poi.hssf.usermodel.HSSFSheet;
impor ......
·¢ËÍemailÓ¦Óã»
package mail;
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
import sun.misc.BASE64Encoder;
public class Mail {
// ¶¨Òå·¢¼þÈËÏÔʾÃû³Æ¡¢·¢¼þÈË¡¢ÊÕ¼þÈË¡¢³ËÍ¡¢SMTP·þÎñÆ÷¡¢Óû§Ãû¡¢ÃÜÂë¡¢Ö÷Ìâ¡¢ÄÚÈݵÈ
private String d ......
ÀûÓÃoracle×Ô´øµÄutl_file°ü¿ÉÒÔ·ÃÎÊ´ÅÅÌÎļþ£¬µ«ÓиöÏÞÖÆ--ÎÞ·¨·ÃÎÊÎļþ¼Ð£¿Ê²Ã´Òâ˼ÄØ£¿¾ÍÊÇ˵oracleÖ»ÄÜ·ÃÎÊÖ¸¶¨µÄÎļþ£¬¶ø²»ÄÜ·ÃÎÊÎļþ¼ÐϵÄδ֪Îļþ¡£ËùÒÔ£¬Èç¹ûҪͨ¹ýoracleÈ¥±éÀúijָ¶¨Â·¾¶ÏµÄËùÓÐÎļþ£¬sorry, impossible! µ«ÊÇ£¬ÓÐÒ»ÖÖÌæ´ú·½°¸¿ÉÒÔÖúÄãÒ»±ÛÖ®Á¦£¡
ÖÚËùÖÜÖªjavaÖ®FileÀàÖ¸ÏòµÄ¿ÉÒÔÊÇĿ¼Ҳ¿ÉÒÔÊ ......
Ç°¶Îʱ¼ä¹«Ë¾¿ªÊ¼ÓÃSSH¿ò¼Ü£¬ÒòΪÒÔǰûÓÐÓùý£¬Ï¸ö¼¸¸ödemo¿´¿´£¬·¢ÏÖÏëÀí½âStructs2µÄÁ÷³ÌÕæÊÇÀ§ÄÑ£»ºóÀ´ÓÖÏëÕûºÏExt½øÐнçÃ濪·¢£¬ÉÏÍøÕÒ×ÊÁÏ£¬·¢ÏÖÓÃStructsÕûºÏAjax»¹ÕæÊÇÂé·³£¬²»½öǰ̨Ҫ×öÐ޸ģ¬ºǫ́»¹Òª¸ÄÅäÖÃÎļþÒÔ¼°actionÀ࣬Õæ²»ÖªµÀÕâÑùµÄ¶«Î÷×öÍêÁ˸ÃÔõôÑùȥά»¤£¡¼ÌÐøÔÚÍøÉÏÕÒÖÕÓÚ±»ÎÒ·¢ÏÖÁËVraptor£¬¸Ã¿ò ......