JAVA×¢½â
AnnotationÊÇJava5¡¢6Ö»ºóµÄÐÂÌØÕ÷£¨ÖÐÎijÆ֮Ϊע½â£©£¬²¢ÇÒÔ½À´Ô½¶àµÄµÃµ½ÁËÓ¦Ó㬱ÈÈçSpring¡¢Hibernate3¡¢Struts2¡¢iBatis3¡¢JPA¡¢JUnitµÈµÈ¶¼µÃµ½Á˹㷺ӦÓã¬Í¨¹ýʹÓÃ×¢½â£¬´úÂëµÄÁé»îÐÔ´ó´óÌá¸ß¡£
ÕâЩ¶¼ÊÇʹÓñðÈ˶¨ÒåµÄ×¢½â£¬Ò»°ã×¢½âµÄʹÓö¼ÊÇÔÚһЩ»ù´¡¿ò¼Ü»òÕßÀà¿âÖÐÀ´¶¨ÒåµÄ£¬Òò´ËºÜÉÙ¼û¹ýÓÐÈË×Ô¼ºÈ¥Ð´Ò»¸ö×¢½â³öÀ´²¢Ê¹ÓÃÔÚ³ÌÐòÖУ¬Òò´Ë×¢½âµÄʹÓó£³£¸øÈ˸оõºÜÉñÃØ£¬Õâ¾ÍΪÄã½Ò¿ª×¢½âµÄÃæÉ´¡£
×¢½âµÄÉñÃØÖ®´¦ÔÚÓÚ£ºÍ¨¹ýÀàËÆ×¢Ê͵ķ½Ê½£¬¿ÉÒÔ¿ØÖƳÌÐòµÄһЩÐÐΪ£¬ÔËÐÐʱµÄ״̬£¬¿ÉÒÔΪ³ÉÔ±¸³Öµ£¬×öÅäÖÃÐÅÏ¢µÈµÈ£¬Óë³£¹æ±àÂë˼ά´óÏྶͥ¡£
Ö»ÓñðÈ˶¨ÒåºÃµÄ×¢½âÊǸ㲻¶®ÕâЩÎÊÌâµÄ£¬ÒªÏëÕæÕýÖªµÀ×¢½âÄÚ²¿µÄÃØÃÜ£¬Òª×Ô¼º¶¨Òå×¢½â£¬È»ºóÔÚ³ÌÐòÖлñȡע½âÐÅÏ¢£¬Äõ½×¢½âÐÅÏ¢ºó£¬¾Í¿ÉÒÔΪÎÒËùÓÃÁË¡£
ÏÂÃæÎÒ¼òµ¥ÑÝʾÏÂÈýÀà×¢½âµÄÓ÷¨£ºÀà×¢½â¡¢·½·¨×¢½â¡¢×ֶΣ¨Ò²³ÆÖ®Óò£©×¢½âµÄ¶¨ÒåÓëÊÊÓ㬲¢¿´¿´ÈçºÎ»ñȡע½âµÄÐÅÏ¢¡£
Ò»¡¢¶¨Òå×¢½â
package lavasoft.anntest;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Àà×¢½â
*
* @author leizhimin 2009-12-18 14:15:46
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface MyAnnotation4Class {
public String msg();
}
package lavasoft.anntest;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* ·½·¨×¢½â
*
* @author leizhimin 2009-12-18 14:16:05
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface MyAnnotation4Method {
public String msg1();
&
Ïà¹ØÎĵµ£º
<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......
×î½üÑо¿ÁËÏ·ÖÒ³£¬×ö¸ö×ܽᡣ
1£©Êý¾Ý¿â²Ù×÷Àà,×ö¼òµ¥·â×° DB.java
package Test;
import java.sql.*;
public class DB {
// ¼ÓÔØÇý¶¯
static {
try {
Class.f ......
package fileTest;
import java.io.*;
public class FileOperate {
public FileOperate() {
}
public static void main(String args[]){
// newFolder("D:/100");
moveFile("e:/978 ......
½ñÄêÒѾ28ËêÁË Í»È»·¢ÏÖÒѾºÜ²»Ï°¹ß±àд´úÂëÁË£¬µ«ÊǶԳÌÐòÖÐËùÓеĴíÎóºÍÀ§ÄÑ£¬¶¼ÄܺÜƽ¾²µÄÈ¥½â¾ö£¬µ±Ò»¸öеÄÏîÄ¿À´µÄʱºò£¬×ÜÊÇϲ»¶È¥Éè¼ÆËü·ÖÎöËü£¬¿ÉºÜÄÑϵÚÒ»±ÊÈ¥±àдËü£¬²»ÖªµÀÊDz»ÊÇÀÏÁË£¬ÏëÁ˼¸ÌìÁËÕæ²»ÖªµÀÊDz»Êǵ½ÁËתÐÍʱÆÚÁË¡£ ......
ÎÒ²»ÖªµÀÕâƪÎÄÕµÄ×÷ÕßÊÇË£¬µ«ÎÒÖªµÀ£¬Ëû¶ÔjavaÓÐÒ»ÖÖºÜÉîµÄÀí½â£¬ÆäʵÎÄÕÂÖв¢Ã»ÓÐÌåÏÖ³ö×÷Õ߶Ôjava¼¼ÊõÉî²ãÀí½â£¬µ«ÊÇ´ÓÎÄÖеÄÿһ¾ä»°ÖУ¬ÎÒ¸ÐÊܵ½ÁËһЩ¶«Î÷¡£ÕâÊÇһƪºÜºÃµÄÎÄÕ£¬Ò²¿ÉÒÔ°ïÖúºÜ¶àÈËÃÔãµÄÈ˽â¾öÎÊÌâ¡£´øÀ´ºÍ´ó¼Ò·ÖÏíһϡ£
Ç°²»¾ÃCSDN¿¯µÇÁËһƪ¡¶CÓïÑÔÒѾËÀÁË¡·µÄÎÄÕ£¬ÒýÆðÁËһЩÕùÂÛ¡£ÆäʵÄÇÆ ......