ÓÃJava½Ó¿ÚʵÏֻص÷º¯ÊýµÄµÈ¼Û¹¦ÄÜ
ÓÃJava½Ó¿ÚʵÏֻص÷º¯ÊýµÄµÈ¼Û¹¦ÄÜ
Ê×ÏÈ£¬¿´Ò»Ï»ص÷º¯ÊýµÄ¶¨Òå¼°ÆðÔ´£º
¼ò¶øÑÔÖ®£¬»Øµ÷º¯Êý¾ÍÊÇÒ»¸öͨ¹ýº¯ÊýÖ¸Õëµ÷Óõĺ¯Êý£¬Èç¹ûÄã°Ñº¯ÊýµÄÖ¸Õë(µØÖ·)×÷Ϊ²ÎÊý´«µÝ¸øÁíÒ»¸öº¯Êý£¬µ±Õâ¸öÖ¸Õë±»ÓÃΪµ÷ÓÃËüËùÖ¸ÏòµÄº¯Êýʱ£¬ÎÒÃǾÍ˵Êǻص÷º¯Êý¡£
ΪʲôҪʹÓûص÷º¯Êý£¿
ÒòΪ¿ÉÒ԰ѵ÷ÓÃÕßÓë±»µ÷ÓÃÕß·Ö¿ª¡£µ÷ÓÃÕß²»¹ØÐı»µ÷ÓÃÕߣ¬ËùÓÐËüÐèÒªÖªµÀµÄ£¬Ö»ÊÇ´æÔÚÒ»¸ö¾ßÓÐijÖÖÌض¨ÔÐÍ£¬Ä³Ð©ÏÞÖÆÌõ¼þ(Èç·µ»ØֵΪint)µÄµ÷Óú¯Êý¡£
Èç¹ûÏëÖªµÀ»Øµ÷º¯ÊýÔÚʵ¼ÊÖÐÓÐʲô×÷Óã¬ÏȼÙÉèÓÐÒ»ÖÖÇé¿ö£¬ÎÒÃÇÒª±àдһ¸ö¿â£¬ËüÌṩÁËijЩÅÅÐòËã·¨µÄʵÏÖ£¬ÈçðÅÝÅÅÐò¡¢¿ìËÙÅÅÐò¡¢shellÅÅÐò¡¢shakeÅÅÐòµÈµÈ£¬µ«ÎªÁËʹ¿â¸ü¼ÓͨÓ㬲»ÏëÔÙº¯ÊýÖÐǶÈëÅÅÐòÂß¼£¬¶øÈÃʹÓÃÕßÀ´ÊµÏÖÏàÓ¦µÄÂß¼£»»òÕߣ¬ÏëÈÿâ¿ÉÓÃÓÚ¶àÖÖÊý¾ÝÀàÐÍ(int, float, string)£¬´Ëʱ£¬¸ÃÔõô°ìÄØ£¿¿ÉÒÔʹÓú¯ÊýÖ¸Õ룬²¢½øÐлص÷¡£»Øµ÷¿ÉÓÃÓÚͨÐÅ»úÖÆ£¬ÀýÈ磬ÓÐʱҪÔÚ³ÌÐòÖÐÉèÖÃÒ»¸ö¼ÆʱÆ÷£¬Ã¿µ½Ò»¶¨Ê±¼ä£¬³ÌÐò»áµÃµ½ÏàÓ¦µÄ֪ͨ£¬µ«Í¨Öª»úÖƵÄʵÏÖÕ߶ÔÎÒÃǵijÌÐòÒ»ÎÞËùÖª£¬¶ø´Ëʱ£¬¾ÍÐèÓÐÒ»¸öÌض¨ÔÐ͵ĺ¯ÊýÖ¸Õ룬ÓÃÕâ¸öÖ¸ÕëÀ´½øÐлص÷£¬À´Í¨ÖªÎÒÃǵijÌÐòʼþÒѾ·¢Éú¡£
ÔÚJavaÖ§³Ö·½·¨Ö¸Õë֮ǰ£¬Java½Ó¿Ú²»ÄÜÌṩһÖÖʵÏֻص÷º¯ÊýµÄºÃ·½·¨¡£ÊìϤMS-WindowsºÍX Window SystemʼþÇý¶¯±à³ÌÄ£Ð͵Ŀª·¢ÈËÔ±£¬Ï°¹ßÓÚ´«µÝÔÚijÖÖʼþ·¢Éúʱµ÷ÓÃ(¼´ “»Øµ÷”)µÄº¯ÊýÖ¸Õ룬JavaµÄÃæÏò¶ÔÏóÄ£ÐÍÄ¿Ç°²¢²»Ö§³Ö·½·¨Ö¸Õë¡£
JavaµÄ½Ó¿ÚÖ§³ÖÌṩһÖÖ»ñµÃ»Øµ÷µÄµÈ¼Û¹¦ÄܵĻúÖÆ¡£Æä¼¼ÇɾÍÊÇ£º¶¨ÒåÒ»¸ö¼òµ¥½Ó¿Ú£¬²¢ÔڸýӿÚÖÐÉùÃ÷ÎÒÃÇÒªµ÷Óõķ½·¨¡£
ÀýÈ磺¼Ù¶¨ÎÒÃÇÏ£ÍûÔÚij¸öʼþ·¢ÉúʱµÃµ½Í¨Öª¡£ÎÒÃÇ¿ÉÒÔ¶¨ÒåÒ»¸ö½Ó¿Ú£º
public interface InterestingEvent {
// Õâ½öÊÇÒ»¸ö³£¹æ·½·¨¡£Òò´ËÈç¹ûÐèÒª£¬
// Ëü¿ÉÒÔÓзµ»ØÖµ£¬Ò²¿É½ÓÊÕ²ÎÊý
public void interestingEvent();
}
ÕâʹµÃÎÒÃÇ¿ÉÒÔ¿ØÖÆʵÏָýӿÚÀàµÄÈκζÔÏó¡£Òò´Ë£¬ÎÒÃDz»±Ø¹ØÐÄÈκÎÍⲿÀàÐ͵ÄÐÅÏ¢¡£
public class EventNotifer {
private InterestingEvent ie;
private boolean somethingHappened
public EventNotifer(InterestingEvent event) {
Ïà¹ØÎĵµ£º
JavaÊý¾ÝÀàÐÍ
HibernateÊý¾ÝÀàÐÍ
±ê×¼SQLÊý¾ÝÀàÐÍ
byte
byte
TINYINT
short
short
SMALLINT
int
integer
INGEGER
long
long
BIGINT
float
float
FLOAT
double
double
DOUBLE
java.math.BigDecimal
big_decimal
NUMERIC
char, java.lang.Character
character
CHAR(1)
boolean, java.lang.Boole ......
Ò»¡¢ ¼ò½é
Berkeley DB Java Edition (JE)ÊÇÒ»¸öÍêÈ«ÓÃJAVAдµÄ£¬ËüÊʺÏÓÚ¹ÜÀíº£Á¿µÄ£¬¼òµ¥µÄÊý¾Ý¡£
Äܹ»¸ßЧÂʵĴ¦Àí1µ½1°ÙÍòÌõ¼Ç¼£¬ÖÆÔ¼JEÊý¾Ý¿âµÄÍùÍùÊÇÓ²¼þϵͳ,¶ø²»ÊÇJE±¾Éí¡£
¶ ......
Java ÌṩÁ½ÖÖ²»Í¬µÄÀàÐÍ£ºÒýÓÃÀàÐͺÍÔʼÀàÐÍ£¨»òÄÚÖÃÀàÐÍ£©¡£IntÊÇjavaµÄÔʼÊý¾ÝÀàÐÍ£¬IntegerÊÇjavaΪintÌṩµÄ·â×°Àà¡£JavaΪÿ¸öÔʼÀàÐÍÌṩÁË·â×°Àà¡£
ÔʼÀàÐÍ·â×°Àà
boolean -->Boolean
char --->Character
byte -->Byte
short -->Short
int -->Integer
long -->Long
float -- ......
ÎÒдÁËÒ»¸ö³ÌÐòÓÃÀ´½ÓÊÕ¿Í»§¶Ë·¢¹ýÀ´µÄÊý¾Ý£¬µ«ÊÇÈç¹û¶à¸ö¿Í»§¶ËÒ»ÆðÏñÕâÀï·¢ËÍÊý¾Ýʱ£¬±¨StandardWrapperValve[xmlreceiver]: Servlet.service() for servlet xmlreceiver threw exception java.lang.OutOfMemoryError£¬ÕâʱÐèÒªÀ©´ótomcatµÄjavaÐéÄâ»úÄڴ棬ÈçºÎ¸ü¸ÄÄØ£¿
ÔÚ Windows²Ëµ¥ÖÐÕÒµ½Tomcat°²×°²Ëµ¥ÖеÄMonitor ......
Ãû´Ê½âÊÍ£º
²¹Â룺1 ÔÚ¼ÆËã»úϵͳÖУ¬ÊýÖµÒ»ÂÉÓв¹ÂëÀ´±íʾ(´æ´¢). ʹÓò¹Âë,¿ÉÒÔ½«·ûºÅλºÍÆäËûλͳһ´¦Àí;ͬʱ,¼õ·¨Ò²¿É°´¼Ó·¨À´´¦Àí.ÁíÍâ,Á½¸öÓò¹Âë±íʾµÄÊý¾ÝÏà¼Óʱºò,Èç¹û×î¸ßλ(·ûºÅλ)Óнøλ,Ôò½øÎ¥±»ÉáÆú.
2 ²¹ÂëÓëÔ ......