Chinaunix首页 | 论坛 | 博客
  • 博客访问: 327405
  • 博文数量: 96
  • 博客积分: 2041
  • 博客等级: 大尉
  • 技术积分: 1080
  • 用 户 组: 普通用户
  • 注册时间: 2012-01-20 14:08
文章分类

全部博文(96)

文章存档

2015年(2)

2013年(1)

2012年(93)

分类: 系统运维

2012-01-29 14:41:37

首先需要配置struts2:

  1 struts2的9个jar

  2 struts2的web.xml

  3 struts2的struts.xml

web.xml


 xmlns=""
 xmlns:xsi=""
 xsi:schemaLocation="
 ">
 
 
   struts2
   org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
 

 
 
   struts2
   /*
 

 

 

struts2.xml


    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "">
   

 
 
 
 
 
 

 

 

再配置hibernate

 

 

 

 

 


再配置hibernate.cfg.xml

hibernate.cfg.xml


          "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
          "">


   
    jdbc:mysql://localhost:3306/hibernate
    root
    root
    com.mysql.jdbc.Driver
   
    org.hibernate.dialect.MySQL5Dialect
   
 true   
   
   
   

 

加入mysql驱动jar包

 

查dialect

 

阅读(1387) | 评论(0) | 转发(0) |
0

上一篇:default.properties

下一篇:1万小时定律

给主人留下些什么吧!~~