Mhang

ssh框架整合笔记

1.建立普通的Javaweb项目,导入项目所必须的jar包。

2.配置web.xml文件。

web.xml 

3.在src下建立struts.xml。

struts.xm

4.在实体包下配置  实体名.hbm.xml

实体名.hbm.xml

5.在src下建立applicationContext.xml。

applicationContext.xml

6.在src下建立数据库的相关配置信息db.properties。 

db.properties

7.建立一个log4j.properties记录日志信息。

log4j.properties

8.开发中使用注解@Controller,@Service,@Repository,@Transactional 等注入属性

9.我的目录结构如下

 

 

  

 

posted on 2018-05-27 23:13 路过夏天,不见春秋 阅读(...) 评论(...) 编辑 收藏
 
 

相关文章: