2013年3月7日

hibernate Annotation 注解形式 实例 事务 hibernate.cfg.xml

摘要: 实体类: import javax.persistence.Entity;import javax.persistence.Id;@Entitypublic class foo { private int id; private String name; private String tot... 阅读全文

posted @ 2013-03-07 20:52 王大王 阅读(151) 评论(0) 推荐(0)

纯 hibernate hibernate.cfg.xml 事务 数据库操作 CRUD

摘要: import org.hibernate.Session;import org.hibernate.SessionFactory;import org.hibernate.cfg.Configuration;public class test1 { /** * @param args */ ... 阅读全文

posted @ 2013-03-07 20:07 王大王 阅读(94) 评论(0) 推荐(0)

win linux 下 部署war包到Tomcat根目录

摘要: 在WIN系统下: 在TOMCAT中部署war 1、将war文件拷贝到tomcat目录\webapps\ 下。 2、将必要的jar文件拷贝到tomcat目录\lib\ 下。 3、修改tomcat目录\conf\下的server.xml。 将这段代码中的 拷贝一下并... 阅读全文

posted @ 2013-03-07 15:05 王大王 阅读(1379) 评论(0) 推荐(0)

导航