Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaÖÐÁ¬½ÓÊý¾ÝµÄHibernateÅäÖÃ

JavaÖÐÁ¬½ÓÊý¾ÝµÄHibernate
ÅäÖÃ
hibernate.cfg.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE hibernate-configuration PUBLIC
        "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
 "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
  <session-factory>
    <!-- properties -->
    <!--
      <property name="dialect">org.hibernate.dialect.SQLServerDialect</property>
      <property name="connection.driver_class">com.microsoft.jdbc.sqlserver.SQLServerDriver</property>
      <property name="connection.url">jdbc:microsoft:sqlserver://192.168.0.118;databasename=saadmin</property>
      <property name="connection.username">sa</property>
      <property name="connection.password">saadmin</property>
    -->
    <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
    <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
    <property name="connection.url">jdbc:mysql://192.168.0.117:3306/mysqldb?useUnicode=true&amp;characterEncoding=gb2312</property>
    <property name="connection.username">root</property>
    <property name="connection.password">adminroot</property>
    <property name="hibernate.c3p0.acquire_increment">1</property>
    <property name="hibernate.c3p0.idle_test_period">0</property>
  &nb


Ïà¹ØÎĵµ£º

javaʹÓÃrocksawºÍvserv tcpipʵÏÖ»ùÓÚICMPµÄPing¹¦ÄÜ

Ò»£º×¼±¸ www.savarese.org download
 1.  rocksaw-1.0.0-src.tar.gz
 2.  vserv-tcpip-0.9.2-src.tar.gz
¶þ£º±àÒëÔ´ÎļþµÃµ½jar°ü ʹÓÃAnt
 1.  build vserv-tcpip-0.9.2-src
      ÔÚvserv-tcpip-0.9.2Ŀ¼ÏÂÃ潨һ¸ötestsĿ¼£¬È»ºóÔÚcmd´°¿ÚϽøÈë ......

JavaÖеÄ23ÖÖÉè¼Æģʽ

  1¡¢¹¤³§Ä£Ê½£º¿Í»§ÀàºÍ¹¤³§Àà·Ö¿ª¡£Ïû·ÑÕßÈκÎʱºòÐèҪijÖÖ²úÆ·£¬Ö»ÐèÏò¹¤³§ÇëÇó¼´¿É¡£Ïû·ÑÕßÎÞÐëÐ޸ľͿÉÒÔ½ÓÄÉвúÆ·¡£È±µãÊǵ±²úÆ·ÐÞ¸Äʱ£¬¹¤³§ÀàÒ²Òª×öÏàÓ¦µÄÐ޸ġ£È磺ÈçºÎ´´½¨¼°ÈçºÎÏò¿Í»§¶ËÌṩ¡£  
¡¡¡¡2¡¢½¨Ôìģʽ£º½«²úÆ·µÄÄÚ²¿±íÏóºÍ²úÆ·µÄÉú³É¹ý³Ì·Ö¸î¿ªÀ´£¬´Ó¶øʹһ¸ö½¨Ôì¹ý³ÌÉú³É¾ßÓв»Í¬µ ......

javaÎı¾¿òÄÚÈݸıäʼþ

×÷Ϊһ¸ö¿çƽ̨µÄ±à³Ì½â¾ö·½°¸£¬JavaÏÔÈ»²»ÄÜÏñDelphiÄÇÑù£¬ÔÚÓû§½çÃæÉè¼Æ·½ÃæÌṩǿ´ó¡¢Ö±¹ÛºÍ¿ì½ÝµÄÉè¼ÆÖ§³Ö¡£±ÈÈç¶ÔÓÚÎı¾¿òµÄ¿ØÖÆ£¬µ±ÎÒÃÇ ÒªÔÚ³ÌÐòÖиÐÖªÓû§ÊÇ·ñÐÞ¸ÄÁËÎı¾¿òÖеÄÄÚÈÝʱ£¬DelphiÌṩÁËÒ»¸öÖ±½ÓµÄʼþµ÷ÓÃOnValueChanged()£¬¿ÉÒÔÔÚÎı¾¿òÄÚÈݵõ½Êµ¼ÊµÄ¸Ä ¶¯Ê±±»¼¤»î¡£¶øÒªÔÚJavaÖÐʵÏÖÕâÒ»¹¦ÄܾÍËƺõ ......

java×Ö·û´®´¦Àíº¯ÊýÁбíÒ»ÀÀ

javaÖеÄ×Ö·û´®Ò²ÊÇÒ»Á¬´®µÄ×Ö·û¡£µ«ÊÇÓëÐí¶àÆäËûµÄ¼ÆËã»úÓïÑÔ½«×Ö·û´®×÷Ϊ×Ö·ûÊý×é´¦Àí²»Í¬£¬Java½«×Ö·û´®×÷ΪStringÀàÐͶÔÏóÀ´´¦Àí¡£½«×Ö·û´®×÷ΪÄÚÖõĶÔÏó´¦ÀíÔÊÐíJavaÌṩʮ·Ö·á¸»µÄ¹¦ÄÜÌØÐÔÒÔ·½±ã´¦Àí×Ö·û´®¡£ÏÂÃæÊÇһЩʹÓÃƵÂʱȽϸߵĺ¯Êý¼°ÆäÏà¹Ø˵Ã÷¡£ 
substring()
ËüÓÐÁ½ÖÖÐÎʽ£¬µÚÒ»ÖÖÊÇ£ºString  ......

javaµ÷ÓÃwindows API

ʹÓÃjinvokeµ÷ÓÃwindowsAPI¡£jnaʹÓñȽÏÂé·³£¬ÐèҪдc´úÂëºÍ²ÎÊýת»»£¬jinvokeµÄʹÓþÍÏñjdkÖеİüÒ»Ñù¡£
¹ÙÍøʹÓòο¼£ºhttp://www.jinvoke.com/calling-the-win32-api-from-java
Ò»¸öµ¯³ö¿òµÄÀý×Ó£¨ÕâÖÖ´úÂëÓÃÓÚµ÷ÓÃÈκÎdll£¬²»Ö»ÊÇwindowsµÄ£¬Ò²¿ÉÒÔÊÇ×Ô¼ºÐ´µÄdll£©
import com.jinvoke.JInvoke;
import com.jinvok ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ