摘要:
实体类InfoFIle.java private Long id; private String fileId; private String title; private String subtitle; private Integer filetype; private Date updatetime; private String author;InfoFileOther.java private Long id; private Long clicknum; private Long downloadnum; private String fileId; private String 阅读全文
摘要:
import java.awt.BorderLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JComboBox;import javax.swing.JFrame;public class MainClass { public static void main(final String args[]) { final String labels[] = { "A", "B", "C", & 阅读全文
摘要:
参考:http://k.pconline.com.cn/question/2210578.htmlhttp://liuliang136.javaeye.com/blog/551524最终代码:这个版本的代码是可以支持中文,需要导入jxl.jar包。/* * To change this template, choose Tools | Templates * and open the template in the editor. */package Utils;///////////////////////////////////////////////////// importimport 阅读全文
摘要:
1。http://blog.csdn.net/qingyuexiao/archive/2009/04/21/4097723.aspx1、JAVA读取文件,避免中文乱码。/** * 读取文件内容 * * @param filePathAndName * String 如 c:\\1.txt 绝对路径 * @return boolean */public static String readFile(String filePathAndName) {String fileContent = "";try {File f = new File(filePathAndName);i 阅读全文
摘要:
Hibernate Class Is Not Mapped ?1.http://blog.csdn.net/mycxsky/archive/2008/12/02/3430131.aspx好久没玩Hibernate了,都忘记了,今天碰到一个关于没有映射的错误,找了半天才发现原来是HQL的错误。org.springframework.orm.hibernate3.HibernateQueryException: USERINFO is not mapped.看到.hbm.xml文件中的<hibernate-mapping package="form"> 阅读全文