Tomcat+Mysql+UltraEdit,10分钟Hibernate初体验

发现以前的入门精华贴对于Tomcat+Mysql这样最pop的组合没有涉及,而且均是结合IDE进行开发,要么Jbuilder,要么Eclipse,索性我就用最简单的方式,tomcat(5.0.19)+mysql(4)+ultraedit,来实现一个Hibernate的基本查询,以方便后来人的学习。

1. 保证你的Mysql工作正常。

代码
<script type="text/javascript">render_code();</script>

 

2. 保证你的Tomcat工作正常。Then stop Tomcat。
在{TOMCAT_HOME}/conf/server.xml中加入:

代码
<script type="text/javascript">render_code();</script>

 

3. 将附件hellohibernate.zip更名为hellohibernate.war,扔到{TOMCAT_HOME}/webapps下,重新启动Tomcat。

4. 你会发现hellohibernate已经被自动部署了,copy下列文件到{TOMCAT_HOME}/webapps/hellohibernate/WEB-INF/lib下:
hibernate2.jar
log4j-1.2.8.jar
commons-collections-2.1.jar
commons-logging-1.0.3.jar
dom4j-1.4.jar
cglib-2.0-rc2.jar
odmg-3.0.jar
ehcache-0.6.jar
jta.jar
(其实我本可以把它们打包到war里面的,但是这样war文件就到了2M,现在才8K)

5. http://localhost:9090/hellohibernate/servlet/HelloHibernateServlet
如果一切无误,你就可以看到cat的信息了。

Hope it's helpful, thanks.

 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 11
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 11
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值