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

java annotation

Ò». ×î³£¼ûµÄannotation
@Override:ÓÃÔÚ·½·¨Ö®ÉÏ£¬ÓÃÀ´¸æËß±ðÈËÕâÒ»¸ö·½·¨ÊǸÄд¸¸ÀàµÄ
@Deprecated:½¨Òé±ðÈ˲»ÒªÊ¹ÓþɵÄAPIµÄʱºòÓõÄ,±àÒëµÄʱºò»áÓòúÉú¾¯¸æÐÅÏ¢,¿ÉÒÔÉ趨ÔÚ³ÌÐòÀïµÄËùÓеÄÔªËØÉÏ.
@SuppressWarnings:ÔÝʱ°ÑһЩ¾¯¸æÐÅÏ¢ÏûÏ¢¹Ø±Õ
@Entity:±íʾ¸ÃÀàÊǿɳ־û¯µÄÀà
 
¶þ. Éè¼ÆÒ»¸ö×Ô¼ºµÄAnnotation
      ÏÈ¿´´úÂëÔÙ½²»°
1. Ö»ÓÐÒ»¸ö²ÎÊýµÄAnnotationʵÏÖ
 
view plain copy to clipboard print ?
package  chb.test.annotation;  
import  java.lang.annotation.Documented;  
import  java.lang.annotation.ElementType;  
import  java.lang.annotation.Retention;  
import  java.lang.annotation.RetentionPolicy;  
import  java.lang.annotation.Target;  
@Target (ElementType.TYPE)  
@Retention (RetentionPolicy.RUNTIME)  
@Documented   
public   @interface  MyAnnotation1 {  
        String value();  
}   package chb.test.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface MyAnnotation1 {
String value();
}  
 
2. ÓÐÁ½¸ö²ÎÊýµÄAnnotationʵÏÖ
 
view plain copy to clipboard print ?
package  chb.test.annotation;  
import  java.lang.annotation.Documented;  
import  java.lang.annotation.ElementType;  
import  java.lang.annotation.Retention;  
import  java.lang.annotation.RetentionPolicy;  
import  java.lang.annotation.Target;  
@Target (ElementType.METHOD)  
@Retention (RetentionPolicy.RUNTIME)  
@Documented &n


Ïà¹ØÎĵµ£º

sql 2005 ´æ´¢¹ý³Ì·ÖÒ³ java ´úÂë

 create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',         
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ ......

Ìá¸ßjava»¥ÁªÍøÍøÕ¾ÏîÄ¿ËÙ¶ÈÎÊÌâ

 ±ØÐëµÄ³ÐÈÏjava»¥ÁªÍøÏîÄ¿Ç¿ÊƲ»ÔÚÕâÀï,ÊÇÐèÒª´óÁ¿¸¨Öú¹¤×÷²ÅÄÜÌá¸ßËÙ¶È

1 Ç°ÌáÓиöºÃÓ²¼þ
2 È«Õ¾html¾²Ì¬»¯ (·Çα¾²Ì¬)
3 ÕûºÏapache+tomcat »òÕßiis+tomcat Ö®ÀàµÄ µ±È»ÆäËûjava webÈÝÆ÷Ò²ÄÜÕûºÏ
4 squid ¼ÓËÙ
5 ¸ºÔؾùºâ apache
´óÌå¿ò¼ÜʵÏÖ¼´ÊÇÈç´Ë
Èç¹û»¹³Á½þÔÚ db connect µÈ¶ÔÏóûÓÐclos ......

java httpclient£¨1£©

HTTP(Hyper-Text Transfer Protocol)Êǵ±Ç°ÒòÌØÍøÉÏʹÓÃ×î¶àµÄЭÒé¡£ÍøÂç·þÎñ£¬ÍøÂçÉ豸ÒÔ¼°ÍøÂç¼ÆËãµÄÔö³¤²»½öÔö¼ÓÁËÐèÒªHTTPÖ§³ÖµÄµÄÓ¦ÓóÌÐò£¬»¹À©Õ¹ÁËHTTPµÄ½ÇÉ«£¬Ê¹Æä²»½ö½öÓ¦ÓÃÓÚÓû§Çý¶¯µÄwebä¯ÀÀÆ÷¡£ java.net°üÌṩͨ¹ýHTTP·ÃÎÊ×ÊÔ´µÄ»ù±¾¹¦ÄÜ¡£HttpClientÉ跨ͨ¹ýʵÏÖÒ»¸ö¸ßЧµÄ£¬×îеģ¬¹¦ÄܷḻµÄHttp¿Í»§¶ËÀ ......

(1) Java ¼¼ÊõµÄ»ýÀÛ _DaemonÊØ»¤Ïß³Ì

 
Ïß³Ì Thread setDaemon ·½·¨

2009Äê07ÔÂ24ÈÕ ÐÇÆÚÎå 14:37

Thread setDaemon ·½·¨
import java.io.IOException;
/*
* ÊØ»¤Ïß³ÌÔÚûÓÐÓû§Ï߳̿ɷþÎñʱ×Ô¶¯À뿪
* ÔÚJavaÖбȽÏÌØÊâµÄÏß³ÌÊDZ»³ÆΪÊØ»¤£¨Daemon£©Ï̵߳ĵͼ¶±ðÏ̡߳£
* Õâ¸ö ......

java exception javaÒì³£»ã×Ü2009

java exception ½â¾ö·½°¸ - ÎÒµÄÒì³£Íø|Òì³£|exception|myexception 831 - ActionMessages 832 - could not instantiate id generator 833 - javax.servlet.jsp.JspException 834 - javax.naming.NoInitialContextException 835 - net.sf.hibernate.HibernateException 836 - org.hibernate.exception.GenericJDBCExceptio ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ