go4it

just do it

上一页 1 2 3 4 5 6 ··· 25 下一页

2009年7月25日

JPA视频学习(四)双向一对一关联配置

摘要: 1.persistence.xml配置:<?xml version="1.0" encoding="UTF-8"?><persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=... 阅读全文

posted @ 2009-07-25 20:33 cxccbv 阅读(443) 评论(0) 推荐(0) 编辑

JPA视频学习(三)双向一对多关联配置

摘要: 1.persistence.xml配置文件:<?xml version="1.0" encoding="UTF-8"?><persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocatio... 阅读全文

posted @ 2009-07-25 19:54 cxccbv 阅读(720) 评论(0) 推荐(0) 编辑

JPA视频学习(二)JPQL查询语句

摘要: 可以使用位置参数和命名参数://@Test public void query(){ //读取不用开启事务 EntityManagerFactory fac=Persistence.createEntityManagerFactory("HelloJPAPU"); EntityManager em=fac.createEntityManager(); Query query=em.crea... 阅读全文

posted @ 2009-07-25 16:25 cxccbv 阅读(598) 评论(0) 推荐(0) 编辑

JPA视频学习(一)增删改查

摘要: 1.依赖jar包: 2.配置文件: <?xml version="1.0" encoding="UTF-8"?><persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="... 阅读全文

posted @ 2009-07-25 15:50 cxccbv 阅读(662) 评论(0) 推荐(0) 编辑

2009年7月24日

Spring视频学习(十七)Spring配置文件总结

摘要: 1.基本配置:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springf... 阅读全文

posted @ 2009-07-24 20:52 cxccbv 阅读(1059) 评论(0) 推荐(0) 编辑

Spring视频学习(十六)集成Struts2

摘要: 1.集成Spring和Hiberante<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http:... 阅读全文

posted @ 2009-07-24 20:17 cxccbv 阅读(474) 评论(0) 推荐(0) 编辑

Spring视频学习(十五)集成JPA

摘要: 1.所需jar包: 使用Myeclipse时,先添加Spring支持,后添加JPA支持,然后Junit测试,最后添加Struts支持。 2.Spring的xml配置:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="... 阅读全文

posted @ 2009-07-24 17:02 cxccbv 阅读(626) 评论(0) 推荐(0) 编辑

2009年7月23日

网站爬虫解决方案

摘要: 2007年11月09日 星期五 16:24 作者:行健 liu_xingjian http://hi.baidu.com/liu%5Fxingjian/blog/item/5304e8609c7c1c47ebf8f810.html 网站爬虫解决方案一 暨Heritrix抓取 整个步骤包括配置Heritrix处理链、抓取网页、解析和提取内容、建立索引和搜索。 一、Heritrix配置的处理链 1.P... 阅读全文

posted @ 2009-07-23 10:43 cxccbv 阅读(1160) 评论(1) 推荐(0) 编辑

2009年7月22日

Spring视频学习(十四)Spring提供的CharacterEncoding和OpenSessionInView功能

摘要: 一、解决乱码 1.新建一个添加的ActionForm:import org.apache.struts.action.ActionForm;public class PersonForm extends ActionForm { private Integer id; private String name; public Integer getId() { return id; } publi... 阅读全文

posted @ 2009-07-22 19:53 cxccbv 阅读(493) 评论(0) 推荐(0) 编辑

Spring视频学习(十三)配置Hibernate的二级缓存

摘要: 1.在applicationContex.xml文件里面添加二级缓存配置: <!-- 配置hibernate的sessionFactory --><bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="d... 阅读全文

posted @ 2009-07-22 17:12 cxccbv 阅读(422) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 25 下一页

导航