Javaѧϰ EclipseÖÐserialVersionUID
serialVersionUID ÓÃÀ´±íÃ÷ÀàµÄ²»Í¬°æ±¾¼äµÄ¼æÈÝÐÔ¡£
ÓÐÁ½ÖÖÉú³É·½Ê½£º
Ò»¸öÊÇĬÈϵÄ1L£¬±ÈÈ磺private static final long serialVersionUID = 1L;£¨¶ÔÓ¦ÐÞ¸´·½·¨1£©
Ò»¸öÊǸù¾ÝÀàÃû¡¢½Ó¿ÚÃû¡¢³ÉÔ±·½·¨¼°ÊôÐÔµÈÀ´Éú³ÉÒ»¸ö64λµÄ¹þÏ£×ֶΣ¬±ÈÈ磺
private static final long serialVersionUID = xxxxL;£¨¶ÔÓ¦ÐÞ¸´·½·¨2£©
ÔÚJDKÖУ¬¿ÉÒÔÀûÓÃJDKµÄbinĿ¼ÏµÄserialver.exe¹¤¾ß²úÉúÕâ¸öserialVersionUID µÄÖµ£¬¶ÔÓÚTest.class£¬Ö´ÐÐÃüÁ
serialver Test ÕâʱJVM£¨javaÐéÄâ»ú£©»áÉú³ÉÒ»¸ö¹þÏ£×ֶΡ£
¶Ô±ÈÒ»ÏÂÕâ¸ö¹þÏ£×ֶεÄÖµÓë·½·¨2ÖÐÉú³ÉµÄ×Ö¶ÎÖµÊÇÒ»ÑùµÄ£¬¿É¼û£¬ÔÚCMDÖÐʹÓÃserialverÖ¸Áî¾ÍÊǸù¾ÝÀàÃû¡¢½Ó¿ÚÃû¡¢³ÉÔ±·½·¨¼°ÊôÐÔµÈÀ´Éú³É¹þÏ£×ֶεġ£
javaÀàÖÐΪʲôÐèÒªÖØÔØ serialVersionUID ÊôÐÔ£º
µ±Á½¸ö½ø³ÌÔÚ½øÐÐÔ¶³ÌͨÐÅʱ£¬±Ë´Ë¿ÉÒÔ·¢Ë͸÷ÖÖÀàÐ͵ÄÊý¾Ý¡£ÎÞÂÛÊǺÎÖÖÀàÐ͵ÄÊý¾Ý£¬¶¼»áÒÔ¶þ½øÖÆÐòÁеÄÐÎʽÔÚÍøÂçÉÏ´«ËÍ¡£·¢ËÍ·½ÐèÒª°ÑÕâ¸öJava¶ÔÏóת»»Îª×Ö½ÚÐòÁУ¬²ÅÄÜÔÚÍøÂçÉÏ´«ËÍ£»½ÓÊÕ·½ÔòÐèÒª°Ñ×Ö½ÚÐòÁÐÔÙ»Ö¸´ÎªJava¶ÔÏó¡£
¡¡¡¡°ÑJava¶ÔÏóת»»Îª×Ö½ÚÐòÁеĹý³Ì³ÆΪ¶ÔÏóµÄÐòÁл¯¡£
¡¡¡¡°Ñ×Ö½ÚÐòÁлָ´ÎªJava¶ÔÏóµÄ¹ý³Ì³ÆΪ¶ÔÏóµÄ·´ÐòÁл¯¡£
¡¡¡¡¶ÔÏóµÄÐòÁл¯Ö÷ÒªÓÐÁ½ÖÖÓÃ;£º
¡¡¡¡1£© °Ñ¶ÔÏóµÄ×Ö½ÚÐòÁÐÓÀ¾ÃµØ±£´æµ½Ó²ÅÌÉÏ£¬Í¨³£´æ·ÅÔÚÒ»¸öÎļþÖУ»
¡¡¡¡2£© ÔÚÍøÂçÉÏ´«ËͶÔÏóµÄ×Ö½ÚÐòÁС£
java.io.ObjectOutputStream´ú±í¶ÔÏóÊä³öÁ÷£¬ËüµÄwriteObject(Object obj)·½·¨¿É¶Ô²ÎÊýÖ¸¶¨µÄobj¶ÔÏó½øÐÐÐòÁл¯£¬°ÑµÃµ½µÄ×Ö½ÚÐòÁÐдµ½Ò»¸öÄ¿±êÊä³öÁ÷ÖС£
java.io.ObjectInputStream´ú±í¶ÔÏóÊäÈëÁ÷£¬ËüµÄreadObject()·½·¨´ÓÒ»¸öÔ´ÊäÈëÁ÷ÖжÁÈ¡×Ö½ÚÐòÁУ¬ÔÙ°ÑËüÃÇ·´ÐòÁл¯ÎªÒ»¸ö¶ÔÏ󣬲¢½«Æä·µ»Ø¡£
Ö»ÓÐʵÏÖÁËSerializableºÍExternalizable½Ó¿ÚµÄÀàµÄ¶ÔÏó²ÅÄܱ»ÐòÁл¯¡£Externalizable½Ó¿Ú¼Ì³Ð×ÔSerializable½Ó¿Ú£¬ÊµÏÖExternalizable½Ó¿ÚµÄÀàÍêÈ«ÓÉ×ÔÉíÀ´¿ØÖÆÐòÁл¯µÄÐÐΪ£¬¶ø½öʵÏÖSerializable½Ó¿ÚµÄÀà¿ÉÒÔ²ÉÓÃĬÈϵÄÐòÁл¯·½Ê½ ¡£
·²ÊÇʵÏÖSerializable½Ó¿ÚµÄÀ඼ÓÐÒ»¸ö±íʾÐòÁл¯°æ±¾±êʶ·ûµÄ¾²Ì¬±äÁ¿£ºprivate static final long serialVersionUID;
ÒÔÉÏserialVersionUIDµÄÈ¡ÖµÊÇJavaÔËÐÐʱ»·¾³£¨JRE£©¸ù¾ÝÀàµÄÄÚ²¿Ï¸½Ú×Ô¶¯Éú³ÉµÄ¡£Èç¹û¶ÔÀàµÄÔ´´úÂë×÷ÁËÐ޸ģ¬ÔÙÖ
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ
......
½ñÌìÎÒ¸´Ï°ÁË·´ÉäºÍÄÚʡ֪ʶ£º
·´É䣺Filed£¬
1. ÐèÇ󣺶ÔÓÚ¸ø¶¨µÄ¶ÔÏóµÄÊôÐÔ½øÐи³Öµ£¬
2. ʹÓ÷½·¨£ºÒÑÖªÀàµÄÈ«ÀàÃû£¬»ñÈ¡¶ÔÓ¦µÄclass¶ÔÏ󣬻ñÈ¡Òª»ñÈ¡µÄFiled¡£
1. &nb ......
InputStream in = null;
ServletOutputStream out = null;
String filePath = this.getServlet().getServletContext()
.getRealPath("/")
+ "pdffiles" + File.separator +"HelpManual.pdf";
try {
&n ......
JavaµÄºËÐÄAPIÊǷdz£ÅÓ´óµÄ,Õâ¸ø¿ª·¢ÕßÀ´Ëµ´øÀ´Á˺ܴóµÄ·½±ã£¬¾³£ÈËÓÐÆÀÂÛ,javaÈóÌÐòÔ±±äɵ¡£
µ«ÊÇһЩÄÚÈÝÎÒÈÏΪÊDZØÐëÕÆÎյģ¬·ñÔò²»¿ÉÒÔÊìÁ·ÔËÓÃjava£¬Ò²²»»áʹÓþͺÜÄÑ°ìÁË¡£
1¡¢java.lang°üϵÄ80£¥ÒÔÉϵÄÀàµÄ¹¦ÄܵÄÁé»îÔËÓá£
2¡¢java.util°üϵÄ80£¥ÒÔÉϵÄÀàµÄÁé»îÔËÓã¬ÌرðÊǼ¯ºÏÀàÌåϵ¡¢Õý¹æ±í´ïʽ¡¢Ê±¼ä¡¢Ê ......