摘要:
当不用反射时,例程如下//定义接口interface fruit{ public abstract void eat();} class Apple implements fruit{ public void eat(){ System.out.println("Apple"); }} class Orange implements fruit{ public void eat(){ System.out.println("Orange"); }} // 构造工厂类// 后如果我们在添加其他的实例的时候只需要修改工厂类class Fac... 阅读全文
摘要:
http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html 阅读全文
摘要:
当我用s1 EPSDK36 run xsd文件时,从一个已经做好的xsd文件copy template写自己的文件时,总是报出:Content is not allowed in prolog 错误。尝试半天结果一样,用文件对比工具问题还是得不到解决;查询得知是BOM的问题,把文件转存为UTF-8 no BOM 格式,一切ok。 现做简单总结; ********************************************************************* 参考文档: Content is not allowed in prolog 疯了,可怜的Java 可怜的JSP 阅读全文