- 博客(7)
- 收藏
- 关注
原创 Spring Struts2 Hibernate - - 注解版 demo整合
一、 引入pom 依赖节点 : project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.a
2017-10-29 14:15:50 355
原创 Spring Struts2 Hibernate - - xml版 demo整合
一、 引入pom 依赖节点 : xml version="1.0" encoding="UTF-8"?> project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apach
2017-10-29 13:56:44 319
转载 Struts2 访问request session application对象 。
Struts2提供了了多种方式来访问上述的三种现象,归结起来,可以划分为两大类:与Servlet API 解耦的访问方式和与Servlet API耦合的访问方式。 一. 与Servlet API 解耦的访问方式 为了避免与Servlet API 耦合在一起,方便Action类做单元测试,Struts2对HttpServletRequest,HttpSession和S
2017-10-25 13:43:25 204
原创 Struts 拦截器 、
首先 ,我们来看一下大致结构 : 如下图所示: 其次,创建LoginAction 类 : 创建拦截器类 MyTimerInterceptor : 实现 Interceptor接口。 页面在这里省略 ,直接来看大配置 struts.xml: 其中添加节点
2017-10-25 13:29:14 337
原创 Struts2 ---- 案例 Demo
一 、 基本步骤 : 1. 引用的Jar包文件 : dependency> groupId>junitgroupId> artifactId>junitartifactId> version>3.8.1version> scope>testscope> dependency> dependency> groupId
2017-10-22 09:38:21 281
原创 一对多双向关联 、 多对一
多对一 : xml version="1.0"?> hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> hibernate-mapping package
2017-10-06 16:21:58 292
原创 ThreadLocal
package main.cn.happy.entity.cn.hql02.hql.util; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; /** * Created by lenovo on 2017/10/6. */
2017-10-06 16:19:45 188
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人