- 浏览: 446991 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
wjs876046992:
后来我下载了Eclipse Indigo版本,同样操作却成功了 ...
myeclipse2014中安装spket-1.6.23 -
wjs876046992:
我的是myEclipse2014,将那两个文件夹拷贝到drop ...
myeclipse2014中安装spket-1.6.23 -
lucky8060:
应该不是每次请求都产生一个action吧?应该是每个sessi ...
Struts2 action的单例与多例
<wbr></wbr>一、首先新建database explorer
2.<wbr><wbr> 1. <wbr></wbr></wbr></wbr>通过myeclipse提供数据库浏览器连接到我们的oracle数据库(多人开发)
<wbr><wbr><wbr><wbr><wbr>这里请大家小心,如果我们测试</wbr></wbr></wbr></wbr></wbr>
在最后加上 Duser.language=zh
<wbr style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><span style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"></span><wbr style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><span style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"></span><wbr style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><span style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"></span><wbr style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><span style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"></span><wbr style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><span style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"></span><wbr style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><span style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"></span><wbr style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><br style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"> <span style="word-wrap:normal; word-break:normal; font-family:宋体"><wbr><wbr><wbr><wbr><wbr></wbr></wbr></wbr></wbr></wbr></span><span style="word-wrap:normal; word-break:normal; text-indent:-18pt"><span style="font-family:宋体; word-wrap:normal; word-break:normal">把自己的数据库通过 db 浏览器连接上</span></span></p> <p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"> <wbr></wbr></p> <p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"> <span lang="EN-US" style="word-wrap:normal; word-break:normal"><span style="font-family:宋体; word-wrap:normal; word-break:normal"> 二、新建web项目</span></span></p> <p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"> <span style="font-family:宋体; word-wrap:normal; word-break:normal"> 如果使用myeclipse自dog导入的话,第一步必须做。(引入 hibernate开发包.,同时自动创建hibernate.cfg.xml文件,如果希望把hibernate开发 包 升级,我们可以重新引入包.)</span></p> <p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-size:14px; text-align:left; background-color:rgb(247,250,242)"> <span style="font-family:宋体"><br></span></p> <p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"> <span style="font-family:宋体; word-wrap:normal; word-break:normal"></span></p> <p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"> <span style="font-family:宋体; word-wrap:normal; word-break:normal"><br></span></p> <p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"> <span style="font-family:宋体; word-wrap:normal; word-break:normal"> 三、下面我们使用myeclipse提供的逆向工程,自动的创建domain类和对象关系映射文件.</span></p> <div style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"> <br> </div> <span style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"></span><wbr style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><span style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"></span> <p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"> <span lang="EN-US" style="word-wrap:normal; word-break:normal"><wbr></wbr></span></p> <p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"> <span style="font-family:宋体; word-wrap:normal; word-break:normal"><br></span></p> <a href="http://photo.blog.sina.com.cn/showpic.html#blogid=976e49570101373p&url=http://s13.sinaimg.cn/orignal/976e4957tc6412022dadc" target="_blank" style="text-decoration:none; color:rgb(76,107,115); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><img src="http://s13.sinaimg.cn/middle/976e4957tc6412022dadc&690" width="593" height="539" name="image_operate_97171343883162563" alt="用myeclipse构建hibernate3.3框架" title="用myeclipse构建hibernate3.3框架" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial"></a><br style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><br style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><a href="http://photo.blog.sina.com.cn/showpic.html#blogid=976e49570101373p&url=http://s9.sinaimg.cn/orignal/976e4957tc64120559108" target="_blank" style="color:rgb(76,107,115); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><img src="http://s9.sinaimg.cn/middle/976e4957tc64120559108&690" width="690" height="443" name="image_operate_68561343883184520" alt="用myeclipse构建hibernate3.3框架" title="用myeclipse构建hibernate3.3框架" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial"></a><br style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"> <span lang="EN-US" style="word-wrap:normal; word-break:normal"><wbr><wbr><wbr>java</wbr></wbr></wbr></span><span style="word-wrap:normal; word-break:normal; font-family:宋体">对象(属性)</span><span lang="EN-US" style="word-wrap:normal; word-break:normal"><---------1. java</span><span style="word-wrap:normal; word-break:normal; font-family:宋体">类型</span><span lang="EN-US" style="word-wrap:normal; word-break:normal">2. hibernate types-------------></span><span style="word-wrap:normal; word-break:normal; font-family:宋体">表字段类型</span></p> <p><span style="color:#ff0000">注意取消创建抽象类选项。</span></p> <p><img src="http://img.my.csdn.net/uploads/201210/12/1350020358_3039.png" alt=""><br></p> </wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>
发表评论
-
java实现页面字符串换行空格方法(如果原始字符串存在换行和空格)
2014-09-28 14:23 2103适用于xml、json以及分条字符串 /** ... -
web里的路径获取方法总结
2014-09-25 17:27 5751、获取web系统根目录 String dirPath ... -
servlet或springmvc中得到web项目根路径
2014-07-07 14:53 19891、 request.getServletContext( ... -
springmvc controller和servlet中文乱码问题
2014-05-26 23:00 3614一、第一种方法通过tomcat配置和spring编码过滤器 ... -
flex拓扑图
2014-04-04 13:29 40123 -
使input type=“file”的浏览按钮透明隐藏的方法
2013-09-17 10:51 27533jsp代码: <input type="f ... -
hibernate3.6二级缓存
2013-06-14 09:31 1088使用spring的情况下: 注:首先确定hibernat ... -
一个过滤器实例
2013-06-04 17:33 971public class AuthFilter imple ... -
Struts标签使用java帮助类方法
2013-06-04 14:53 447<s:property value="@co ... -
分页操作
2013-05-29 09:58 8341.使用hibernate (1)定义变量-页面传递当前 ... -
使用hibernate查询部分字段的方法
2013-04-08 10:35 880数据库操作: List<UserAudit> ... -
log4j使用笔记
2013-04-03 15:10 7581.导入log4j的jar包--log4j-1.2.13. ... -
Struts2 action的单例与多例
2013-03-05 18:03 14840struts 2的Action是多实例 ... -
得到本地和远程IP
2013-03-03 18:16 2102package com.ru.util; impor ... -
在类中获取得到路径,request,response,session
2013-03-02 19:01 5516package com.ru.action; imp ... -
hibernate的hql帮助类
2012-12-18 11:15 1308import java.io.Serializable; ... -
struts2的request,session,application
2012-12-04 16:30 9751.第一种方法(实现RequestAware,Sessi ... -
struts2实现文件上传
2012-10-07 16:06 8941.upload.jsp <%@ page ... -
struts2实现文件过滤
2012-10-07 17:09 976一、手动实现文件过滤 1.uploadAction.java ... -
struts2实现文件下载
2012-10-07 19:02 957注:struts2提供的下载功能,在action中只需要提 ...
相关推荐
Myeclipse8.5下搭建SSH框架(图解)Struts2.1+Spring3.0+Hibernate3.3
搭建Struts2.1+Spring3.0+Hibernate3.3框架
MyEclipse、Struts2.1、Spring3.0、Hibernate3.3框架整合详细图解. ---------------- 别人的教程
Myeclipse10下搭建SSH框架(图解)Struts2.1+Spring3.0+Hibernate3.3 该文件的内容来自网络,我搜集并整理供大家参考学习。
MyEclipse10+Struts2.1+Spring3.3+Hibernate3.3全注解框架搭建
MyEclipse8.6+SpringMVC3.0+Hibernate3.3环境搭建,文档描述的很详细每个步骤都有文字和图片说明。文档还包括源代码和配置文件信息,特别适合初学者,本人自己写的。
Myeclipse10下搭建S2SH框架(图解)Struts2.1+Spring3.0+Hibernate3.3.docx
快捷稳定!这个只是其中一个jar包,有想要的可以加我的QQ,本人一天24在线!!!
MyEclipse-10.0下Struts2.1+Spring3.0+Hibernate3.3整合过程+源码
Myeclipse中hibernate反转
myeclipse搭建hibernate文档
MyEclipse8.6+Struts2.1+Spring3.0+Hibernate3.3环境搭建,文档描述的很详细每个步骤都有文字和图片说明。
myEclipse使用hibernate图解
基于MyEclipse的SSH2框架构建
myeclipse下hibernate的用法,不需要写代码一步一步往下设置即可。
MyEclipse8.5+Spring3.0MVC+Hibernate3.3+Mysql样例 详细讲述如何配置开发环境,如何创建样例工程,配置文件如何配置,各个配置项的意义等。 步骤详细,代码完整,方便初学者快速掌握整套开发技术,缩减学习成本。
sturts2.1+hibernate3.3完成登录注册,,内容详细。...对新手来说是入门及了解struts2.1与hibernate3.3是如何一起工作的最好实例。。。不懂的可以再找我。。。开发环境:myeclipse+SQL2005(这个不是问题)
此是完整的三大框架项目 环境: Myeclipse 8.6M1 Tomcat 6.0 Mysql 5.2 JDK 1.6 注:因你的数据库不一样,需要更改applicationContext.xml中的dataSource 项
该文档详细讲述了在Myeclipse环境下的Hibernate配置方法,在文章的最后还给出了一个demo,是初学hibernate的利器。中文版更有利于大家的理解,翻译的还是很不错的。
myeclipse开发hibernate最新版,使用插件自动生成的,我希望能给大家,带来很大的帮助,我希望大家不要依赖只是了解一下好吗?开发的话还是要练得。