摘要: SpringMVC 入门知识一、SpringMVC入门介绍 springMVC代替struts2去整合hibernate实现功能的框架。使用springMVC有两个配置文件需要配置,一 个是applicationContext.xml、另一个是web.xml,在applicationContext... 阅读全文
posted @ 2015-07-31 16:33 LiuZhenYou 阅读(232) 评论(2) 推荐(0) 编辑
摘要: Hibernate基数映射关系一、基数映射——一对一关系映射 每个账户对应一个地址的数据库关系为例:1、SQL脚本: -- 一对一(唯一外键) drop table t_addr; drop table t_act; create table t_act( id int primary key ... 阅读全文
posted @ 2015-07-31 12:19 LiuZhenYou 阅读(517) 评论(0) 推荐(0) 编辑