Java/JspÅäÖÃ
JAVAÅäÖãº
1£º JAVA_HOME £º C:\Program Files\Java\jdk1.6.0_12
2£ºCLASSPATH £º .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
3£ºPATH £º %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
TomcatÅäÖãº
1£º CATALINA_HOME £ºc:\tomcat
2£º CATALINA_BASE £º c:\tomcat
3£ºCLASSPATH ºóÃæ¼ÓÉÏ£º%CATALINA_HOME%\common\lib\servlet.jar
Êý¾Ý¿âÅäÖãº
ÔËÐÐeclipse,´°¿Ú->Ê×Ñ¡Ïî->java->installed jre->(Ñ¡ÖÐÆäÖÐÒ»¸ö)->±à¼->È¡ÏûϵͳĬÈÏjre->Ìí¼ÓÍⲿjre->ÕÒµ½jdbcÎļþ¼ÐÖеÄmysql-connector-java-5.0.0-beta-bin.jar(¸ÃÏî¿ÉÄܲ»Ëù²»Í¬,²»¹ýûÓйØϵ)->È·¶¨.ÄÇô¾Í¿ÉÒÔÔÚeclipseÖÐʹjavaÓëmysqlÁ¬½ÓÁË
jspÊý¾Ý¿âÅäÖãº×¢ÒâÕâÀïÓ¦¸Ã¸øtomcat°üÌí¼Ó¶îÍâµÄÊý¾Ý¿â°ü£¡
Ïà¹ØÎĵµ£º
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ
......
2009-04-14 16:39
½üˮ¥̨ÏȵÃÔ£¬ÏòÑô»¨Ä¾Ò×Ϊ´º--------ËÕ÷ë
»º´æµÄ×÷ÓÃÔÚµÚÒ»ÂÛhttp://hi.baidu.com/%CB%BC%C3%F4%D3%EA/blog/item/908d0cdecbc8a71b495403cc.htmlÖÐÒÑÓв¿·Ö²ûÊö,ÏÂÃæahuaxuanºÍ´ó¼ÒÒ»ÆðÀ´Ñ§Ï°Ò»Ï»º´æµÃÁíÍâÒ»¸öÖØÒªµÄ¹æÔò,½üºÍ¿ì.
ÔÚÎÒÃÇ´ò¿ªä¯ÀÀÆ÷,¾ö¶¨ä¯ÀÀij¸öÍøҳ֮ǰ(Ö¸ÈËÑÛ¿´µ½ÆÁÄ»ÉϵÄÄÚÈ ......
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import com.paic.is.dispatch.TMPEntry;
public class DateTimeUtil
{
public final static String LOCAL_SHORT_DATE_FORMAT = "yyyy-MM-dd";
public final static String LOCAL_LONG_DATE_FORMAT = "yyyy-MM-dd H ......
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.io.SAXReader;
public class DocumentUtil
{
public static Document loadXMLByAbsolutePath(String absoluteFilePath, String logFileName)
{
SAXReader saxReader = new SAXReader();
Document document = null;
try ......
Hibernate¡¢TopLinkµÈOR Mapping²Ù×÷Êý¾Ý¿âµÄ¼¼Êõ¶¼Êǽ¨Á¢JDBC¼¼ÊõÖ®Éϵģ¬Êµ¼ÊÀ´Ëµ£¬ËûÃǵÄÐÔÄܺÍJDBCÊÇÓкܴó²î¾àµÄ£¬µ«·´¹ýÀ´Ëµ£¬Èç¹ûJDBCÓò»ºÃ£¬»¹²»Èç hibernateÄØ¡£ÔÝÇÒ²»ËµÕâЩÊëÓÅÊëÁӵĻ°ÁË£¬ÔÙ´ÎÖ÷ÒªÊǶÔJavaµÄ»ù´¡¼¼Êõ×ö¸ö×ܽᣬÒÔ¼ÓÉîÈÏʶ¡£
Ò»¡¢JDBCµÄ»ù±¾ÔÀí
JDBCÊÇJava²Ù×÷Êý¾Ý¿âµÄ¼¼Êõ¹æ·¶¡£Ëûʵ ......