06 2014 档案
摘要:右键属性--Java build path--Libraries--add library--Web app libraries -- next --next -- ok
阅读全文
摘要:String filePath="src/cn/ac/iscas/pebble/ufe/conf/id.properties"; InputStream in = new BufferedInputStream(new FileInputStream(filePath)); int i = 0; Pr...
阅读全文
摘要:转自:http://blog.sina.com.cn/s/blog_6721f25c0100nuf0.html 设置标题的时候希望出现多标题并且自动编号的标题,如下1.XXXXXXXXXXX1.1XXXXXXXXXXX1.2XXXXXXXXXXX1.3XXXXXXXXXXX2XXXXXXXXXXX2.1XXXXXXXXXXX2.2...
阅读全文
摘要:private void GetXMLDocument(Document doc) { OutputFormat format1 = new OutputFormat(" ", true); format1.setEncoding("UTF-8"); XMLWriter out1=new XMLWriter(new P...
阅读全文
摘要:1. 子类的主键名称不相同。
2. 基类可能支持联合主键,也可能是单一主键。 实现方法:
添加一个参数列表,来记录主键的名称,如下: private String[] primaryKey; public void sPrimaryKey(String... primaryKey){ Assert.notEmpty(primaryKey, "'primary...
阅读全文
摘要:具体方法:
1. 在jaxb的setClasstobebounds中,只需要子类的class,无需父类。
2. 父类的前面加如下声明: @XmlAccessorType(XmlAccessType.FIELD)
@XmlSeeAlso({ 子类.class
})
public class 父类 extends Entity{ @XmlElement public Stri...
阅读全文
摘要:在Spring的配置文件中,如下: /WEB-INF/database.properties ...
阅读全文