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

xmlºÍjava BeanµÄÖ±½Óת»»£¬Xmap

package test;
import java.util.ArrayList;
import java.util.List;

import org.nuxeo.common.xmap.annotation.XNode;
import org.nuxeo.common.xmap.annotation.XNodeList;
import org.nuxeo.common.xmap.annotation.XObject;


/**
* Book ʵÌå¶ÔÏ󣬴˴¦ÓÃXMap×¢½â
* @author Administrator
*
*/
@XObject
public class Book {
@XNode("title")
private String title;

@XNode("@no")
private String no;

@XNodeList(value = "subject", type = ArrayList.class, componentType = String.class)
private List<String> subjects;

@XNode("price")
private int price;

public String getTitle() {
return title;
}

public void setTitle(String title) {
this.title = title;
}

public List<String> getSubjects() {
return subjects;
}

public void setSubjects(List<String> subjects) {
this.subjects = subjects;
}

public int getPrice() {
return price;
}

public void setPrice(int price) {
this.price = price;
}

public String getNo() {
return no;
}

public void setNo(String no) {
this.no = no;
}
}
/**==================================================**/
package test;
import java.util.ArrayList;
import java.util.List;

import org.nuxeo.common.xmap.annotation.XNodeList;
import org.nuxeo.common.xmap.annotation.XObject;

/**
* ͼÊé¶ÔÏ󼯺ÏÀà
* @author zhouyu
*
*/
@XObject(value = "books")
public class Books {
@XNodeList(value = "book", type = ArrayList.class, componentType = Book.class)
private List<Book> book;

public List<Book> getBook() {
return book;
}

public void setBook(List<Book> book) {
this.book = book;
}

public void ad


Ïà¹ØÎĵµ£º

JAVAÀà×°ÔØÆ÷classloaderºÍÃüÃû¿Õ¼änamespace

JAVAÀà×°ÔØÆ÷classloaderºÍÃüÃû¿Õ¼änamespace
  JAVAÐéÄâ»úͨ¹ý×°ÔØ¡¢Á¬½ÓºÍ³õʼ»¯Ò»¸öJAVAÀàÐÍ£¬Ê¹¸ÃÀàÐÍ¿ÉÒÔ±»ÕýÔÚÔËÐеÄJAVA³ÌÐòËùʹÓá£ÆäÖУ¬×°ÔؾÍÊǰѶþ½øÖÆÐÎʽµÄJAVAÀàÐͶÁÈëJAVAÐéÄâ»úÖС£Á¬½Ó¾ÍÊÇ°ÑÕâÖÖÒѾ­¶ÁÈëÐéÄâ»úµÄ¶þ½øÖÆÐÎʽµÄÀàÐÍÊý¾ÝºÏ²¢µ½ÐéÄâ»úµÄÔËÐÐʱ״̬ÖÐÈ¥¡£Á¬½Ó½×¶Î·ÖΪÈý¸ö²½Ö裭ÑéÖ¤¡¢× ......

java clone ½âÎö

ת×Ô£ºhttp://ttitfly.javaeye.com/blog/155422
1.javaÀïµÄclone·ÖΪ£º
A:dz¸´ÖÆ£¨Ç³¿Ë¡£©: dz¸´Öƽö½ö¸´ÖÆËù¿¼ÂǵĶÔÏ󣬶ø²»¸´ÖÆËüËùÒýÓõĶÔÏó¡£
b:ÉÖÆ£¨Éî¿Ë¡£©£ºÉÖÆ°ÑÒª¸´ÖƵĶÔÏóËùÒýÓõĶÔÏ󶼸´ÖÆÁËÒ»±é¡£
JavaÖжÔÏóµÄ¿Ë¡,ΪÁË»ñÈ¡¶ÔÏóµÄÒ»·Ý¿½±´£¬ÎÒÃÇ¿ÉÒÔÀûÓÃObjectÀàµÄclone()·½·¨¡£±ØÐëÒª×ñÑ­ ......

Java ¼¼Êõ£¬IBM ·ç¸ñ: À๲Ïí


Java™ 5.0 ƽ̨µÄ IBM ʵÏÖÖÐÐµĹ²ÏíÀàÌØÐÔÌṩÁËÒ»ÖÖÍêȫ͸Ã÷ºÍ¶¯Ì¬µÄ·½·¨£¬¿ÉÒÔ¹²ÏíÒѾ­×°ÔصÄËùÓÐÀ࣬¶ø²»»á¶Ô¹²ÏíÀàÊý¾ÝµÄ JVM Ê©¼ÓÏÞÖÆ¡£Õâ¸öÌØÐÔΪ¼õÉÙÐéÄâÄÚ´æÕ¼Óú͸ĽøÆô¶¯Ê±¼äÌṩÁËÒ»¸ö¼òµ¥ÇÒÁé»îµÄ½â¾ö·½°¸£¬´ó¶àÊýÓ¦ÓóÌÐò¶¼Äܹ»Òò´ËÊÜÒæ¡£±¾ÎÄÌÖÂÛÕâ¸öÌØÐÔÊÇÈçºÎ¹¤×÷µÄ¡¢ÈçºÎʹÓÃËüÒÔ¼°ºÎʱʹÓÃËü£ ......

java web applicationÖи÷ÖÖ·¾¶µÄÈ¡µÃ·½·¨

¾­³£Íü¼ÇÕâЩ»ù´¡µÄ¶«Î÷£¬¼ÇÏÂÀ´ÁË¡£
ÔÚjspºÍclassÎļþÖе÷ÓõÄÏà¶Ô·¾¶²»Í¬¡£ ÔÚjspÀ¸ùĿ¼ÊÇWebRoot ÔÚclassÎļþÖУ¬¸ùĿ¼ÊÇWebRoot/WEB-INF/classes µ±È»ÄãÒ²¿ÉÒÔÓÃSystem.getProperty("user.dir")»ñÈ¡Ä㹤³ÌµÄ¾ø¶Ô·¾¶¡£
Áí:ÔÚJsp,Servlet,JavaÖÐÏêϸ»ñµÃ·¾¶µÄ·½·¨!
1.jspÖÐÈ¡µÃ·¾¶£º
ÒÔ¹¤³ÌÃûΪTESTΪÀý£º
......

¹ØÓÚ Java ¶ÔÏóÐòÁл¯Äú²»ÖªµÀµÄ 5 ¼þÊÂ

Java ÐòÁл¯¼ò½é
Java ¶ÔÏóÐòÁл¯ÊÇ JDK 1.1 ÖÐÒýÈëµÄÒ»×鿪´´ÐÔÌØÐÔÖ®Ò»£¬ÓÃÓÚ×÷ΪһÖÖ½« Java ¶ÔÏóµÄ״̬ת»»Îª×Ö½ÚÊý×飬ÒÔ±ã´æ´¢»ò´«ÊäµÄ»úÖÆ£¬ÒÔºó£¬ÈÔ¿ÉÒÔ½«×Ö½ÚÊý×éת»»»Ø Java ¶ÔÏóÔ­ÓеÄ״̬¡£
ʵ¼ÊÉÏ£¬ÐòÁл¯µÄ˼ÏëÊÇ “¶³½á” ¶ÔÏó״̬£¬´«Êä¶ÔÏó״̬£¨Ð´µ½´ÅÅÌ¡¢Í¨¹ýÍøÂç´«ÊäµÈµÈ£©£¬È»ºó “½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ