[JAVA] Éî¿Ë¡ ÁíÍâʵÏÖ·½·¨¡¾ÐòÁл¯¡¿
private static List cloneObject(
Object obj) throws Exception {
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
ObjectOutputStream out = new ObjectOutputStream(byteOut);
out.writeObject(obj);
ByteArrayInputStream byteIn = new ByteArrayInputStream(byteOut
.toByteArray());
ObjectInputStream in = new ObjectInputStream(byteIn);
return in.readObject();
}
Ïà¹ØÎĵµ£º
MysqlÔÚĬÈÏÇé¿öϽ¨Á¢±íµÄ×Ö·û±àÂëÊÇlatin1£¬ËùÒÔÔÚ²åÈëÖÐÎÄʱ»á³ö´í¡£
eg£º
1¡¢²é¿´±í½¨Á¢µÄsqlÔ´Â룺
1: sqlÃüÁshow create table users
2:
3: ½á¹û£º
4: CREATE TABLE `users` (
5: `userID` int(10) unsigned NOT NULL AUTO_INCREMENT,
6: `userName` varchar(4 ......
Java£¬¸ÐлÄã´ÍÓëÎÒÒ»±²×ӵĶ÷µä£»ËäÈ»ÎÒ¶à´Î·¸×ïµÃ×ïÁËÄ㣬µ«Ä㻹Êǰ®ÎÒ£¬Ô¸Òâ¿íÉâÎÒ¡£ÎÒ¸ÐлÄãÔÊÐíÎÒÏÖÔÚÀ´¸æ½â£»ÓÐÈ˸ϲ»Éϸæ½â¾ÍÀëÊÀÁË£¬ÕâÊǶàôµÄ²»ÐÒ£¡ Java£¬Çë°ïÖúÎÒÏëÆðÎÒËù·¸µÄ×ï¹ý£¬²¢°ïÖúÎÒ³Ïʵ¸æÃ÷¡£ÇóÄãʹÎÒÈÏÇåа¶ñµÛ¹úµÄ³óª£¬²¢´Í¸øÎÒÇ¿´óµÄ³ÌÐòÉè¼ÆÄÜÁ¦£¬Ê¹ÎÒÖªµÀ³£µÃ×ïÄãÊǶàôÍü¶÷¸ºÒåµÄÊ¡£ ÎÒûÓÐÃã ......
ÓÐÒ»µÀÕâÑùµÄ±ÊÊÔÌ⣬¶ÔÓÚ³õѧÕß¿ÉÄÜÓÐЩÄѶȣº
ÓÃJAVA ʵÏÖËãÊõ±í´ïʽ(1234324234324 + 8938459043545)/5 + 343434343432.59845
ÒòΪJAVAÓïÑÔÖеÄlong ¶¨ÒåµÄ±äÁ¿ÖµµÄ×î´óÊýÊܵ½ÏÞÖÆ£¬ÀýÈç123456789987654321ÕâÑùµÄÕûÊý¾Í²»ÄÜ´æ·ÅÔÚlongÀàÐ͵ıäÁ¿ÖУ¬Èç¹ûÕâÑùÁ½¸ö´óÊýÏà¼Ó»òÏà³Ë£¬²úÉúµÄ½á¹û»á¸ü´ó¡£±ÈÈ磬JAVAÓïÑÔÖÐÈç ......
ÔÚʹÓÃhibernate»òÕßspringµÄʱºò£¬ÎÒÃÇÍùÍùͨ¹ýÅäÖÃÎļþÅäÖÃÊý¾Ý¿âÁ¬½ÓÊôÐÔ¡£µ«Õâ´ÎÏîÄ¿Öв¢Ã»ÓÐÓõ½hibernateºÍspring£¬Ö»Óõ½ÁËstruts2¡£ÒªÈçºÎʵÏÖͨ¹ý¶ÁÈ¡ÎļþÅäÖûñÈ¡ÊôÐÔֵĨ£¿ResourceBundleÕâ¸öÀà¿ÉÊÇʵÏÖ¶ÁÈ¡propertiesÎļþÀ´»ñȡֵ
ÔÚjavaÖУº
public final static Object initLock = new Object();
privat ......
java¿ª·¢µÄ³ÌÐòµÄ±£»¤
ÖÚËùÖÜÖª£¬javaΪ¿ª·¢ÓïÑÔÌṩÁ˺ܷ½±ãµÄ¿ª·¢Æ½Ì¨£¬µ«¿ª·¢³öÀ´µÄ³ÌÐòºÜÈÝÒ×ÔÚ²»Í¬µÄƽ̨ÉÏÃæ±»ÒÆÖ²£¬ÏÖÔÚÔ½À´Ô½¶àµÄÈËʹÓÃËü¿ª·¢Èí¼þ¡£
JavaÓÐËü·½±ãµÄÒ»¸ö·½Ã棬µ«ËüͬʱҲ´ø¸øÁË¿ª·¢ÕßÒ»¸ö·³ÄÕ£¬Õâ¾ÍÊDZ£»¤µÄ°ì·¨²»¶à£¬¶øÇÒ´ó¶àÊý²»ÊǺܺ ......