sping +struts + hibernate 配置文件
来源:互联网 发布:淘宝匿名详情页是什么 编辑:程序博客网 时间:2024/05/29 15:12
1.actionContext.xml
<?xml version="1.0" encoding="GBK"?>
<!-- ヨクカィSpringナ葷テホトシオトSchemaミナマ「 -->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<!--コィケワタ橳アオヌツシ-->
<bean name="/adminLogin" class="angus.action.AdminLoginAction">
<property name="as" ref="adminService"/>
</bean>
<!--ス・ラメウオトaction-->
<bean name="/info" class="angus.action.IndexAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ソヘサァオヌツシ-->
<bean name="/clientLogin" class="angus.action.ClientLoginAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ソヘサァラ「イ睫アシ・鰌テサァテ・->
<bean name="/checkName" class="angus.action.CheckClientNameAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ラ「イ・->
<bean name="/clientReg" class="angus.action.ClientRegAction">
<property name="cs" ref="clientService"/>
</bean>
<bean name="/albumlist" class="angus.action.AlbumListAction">
<property name="cs" ref="clientService"/>
</bean>
<!--オヌツシコ犂盥ヨメウ-->
<bean name="/albumpage" class="angus.action.AlbumPageAction">
<property name="cs" ref="clientService"/>
</bean>
<!--フ晴モミツマ犂・->
<bean name="/addalbum" class="angus.action.AddAlbumAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ミ゙クトモテサァラハチマ-->
<bean name="/updateinfo" class="angus.action.UpdateClientInfoAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ミ゙クトモテサァテワツ・->
<bean name="/updatepass" class="angus.action.UpdatePassAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ス・゙クトマ犂瞎ナマ「ス酖・->
<bean name="/viewalbuminfo" class="angus.action.ViewAlbumInfoAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ミ゙クトマ犂瞎ナマ「-->
<bean name="/updatealbumInfo" class="angus.action.UpdateAlbumAction">
<property name="cs" ref="clientService"/>
</bean>
<!--イ鯀エマ犂・->
<bean name="/viewphotos" class="angus.action.ViewPhotosAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ユユニャキヨメウ-->
<bean name="/managephotopage" class="angus.action.PhotoPageAction">
<property name="cs" ref="clientService"/>
</bean>
<!--フ晴モユユニャ-->
<bean name="/addphoto" class="angus.action.AddPhotoAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ノセウマ犂・->
<bean name="/delalbum" class="angus.action.DelAlbumAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ノセウユユニャ-->
<bean name="/delphoto" class="angus.action.DelPhotoAction">
<property name="cs" ref="clientService"/>
</bean>
<!--イ鯀エオ・ユナヘシニャ-->
<bean name="/viewphoto" class="angus.action.ViewPhotoAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ノセウコ鯀エマ犂・->
<bean name="/afterdel" class="angus.action.AfterDelPhotoAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ノ靹テマ犂盥篥・->
<bean name="/changeCover" class="angus.action.ChangeCoverAction">
<property name="cs" ref="clientService"/>
</bean>
<!--クンヨヨタ犂鯀エマ犂・->
<bean name="/viewalbumsk" class="angus.action.ViewAlbumsAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ヌーフィマ犂盥ヨメウ-->
<bean name="/otheralbums" class="angus.action.OtherAlbumsAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ス・犂・->
<bean name="/viewalbumk" class="angus.action.ViewAlbumClientAction">
<property name="cs" ref="clientService"/>
</bean>
<!--マ猗ャキヨメウ-->
<bean name="/otherphotosa" class="angus.action.OtherPhotosAction">
<property name="cs" ref="clientService"/>
</bean>
<!--イ鯀エユユニャ-->
<bean name="/photoclient" class="angus.action.ViewPhotoClientAction">
<property name="cs" ref="clientService"/>
</bean>
<!--イ鯀エヒミオトニタツロ-->
<bean name="/seecomment" class="angus.action.ViewPhotoClientAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ス・メオトマ犂・->
<bean name="/myalbum" class="angus.action.MyAlbumAction"/>
<!--キ「ア枻タツロ-->
<bean name="/addComment" class="angus.action.AddCommentAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ニタツロキヨメウ-->
<bean name="/othercomment" class="angus.action.OtherPhotoWordAction">
<property name="cs" ref="clientService"/>
</bean>
<!--フ晴モヨヨタ・->
<bean name="/addkind" class="angus.action.AddKindAction">
<property name="cs" ref="clientService"/>
<property name="as" ref="adminService"/>
</bean>
<!--チヤタケスリニ・->
<bean id="commentInter" class="angus.interceptor.CommentInterceptor"/>
<bean class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
<property name="beanNames">
<list>
<value>/addComment</value>
</list>
</property>
<property name="interceptorNames">
<list>
<value>commentInter</value>
</list>
</property>
</bean>
<!--ヌーフィタケスリニ・->
<bean id="clientInter" class="angus.interceptor.ClientInterceptor"/>
<bean class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
<property name="beanNames">
<list>
<value>/addalbum</value>
<value>/albumlist</value>
<value>/albumpage</value>
<value>/addalbum</value>
<value>/updateinfo</value>
<value>/updatepass</value>
<value>/viewalbuminfo</value>
<value>/updatealbumInfo</value>
<value>/viewphotos</value>
<value>/managephotopage</value>
<value>/addphoto</value>
<value>/delalbum</value>
<value>/delphoto</value>
<value>/viewphoto</value>
<value>/afterdel</value>
<value>/changeCover</value>
</list>
</property>
<property name="interceptorNames">
<list>
<value>clientInter</value>
</list>
</property>
</bean>
</beans>
2.appContext.xml
<?xml version="1.0" encoding="GBK"?>
<!-- ヨクカィSpringナ葷テホトシオトSchemaミナマ「 -->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<!--コィケワタ橳アオヌツシ-->
<bean name="/adminLogin" class="angus.action.AdminLoginAction">
<property name="as" ref="adminService"/>
</bean>
<!--ス・ラメウオトaction-->
<bean name="/info" class="angus.action.IndexAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ソヘサァオヌツシ-->
<bean name="/clientLogin" class="angus.action.ClientLoginAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ソヘサァラ「イ睫アシ・鰌テサァテ・->
<bean name="/checkName" class="angus.action.CheckClientNameAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ラ「イ・->
<bean name="/clientReg" class="angus.action.ClientRegAction">
<property name="cs" ref="clientService"/>
</bean>
<bean name="/albumlist" class="angus.action.AlbumListAction">
<property name="cs" ref="clientService"/>
</bean>
<!--オヌツシコ犂盥ヨメウ-->
<bean name="/albumpage" class="angus.action.AlbumPageAction">
<property name="cs" ref="clientService"/>
</bean>
<!--フ晴モミツマ犂・->
<bean name="/addalbum" class="angus.action.AddAlbumAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ミ゙クトモテサァラハチマ-->
<bean name="/updateinfo" class="angus.action.UpdateClientInfoAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ミ゙クトモテサァテワツ・->
<bean name="/updatepass" class="angus.action.UpdatePassAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ス・゙クトマ犂瞎ナマ「ス酖・->
<bean name="/viewalbuminfo" class="angus.action.ViewAlbumInfoAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ミ゙クトマ犂瞎ナマ「-->
<bean name="/updatealbumInfo" class="angus.action.UpdateAlbumAction">
<property name="cs" ref="clientService"/>
</bean>
<!--イ鯀エマ犂・->
<bean name="/viewphotos" class="angus.action.ViewPhotosAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ユユニャキヨメウ-->
<bean name="/managephotopage" class="angus.action.PhotoPageAction">
<property name="cs" ref="clientService"/>
</bean>
<!--フ晴モユユニャ-->
<bean name="/addphoto" class="angus.action.AddPhotoAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ノセウマ犂・->
<bean name="/delalbum" class="angus.action.DelAlbumAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ノセウユユニャ-->
<bean name="/delphoto" class="angus.action.DelPhotoAction">
<property name="cs" ref="clientService"/>
</bean>
<!--イ鯀エオ・ユナヘシニャ-->
<bean name="/viewphoto" class="angus.action.ViewPhotoAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ノセウコ鯀エマ犂・->
<bean name="/afterdel" class="angus.action.AfterDelPhotoAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ノ靹テマ犂盥篥・->
<bean name="/changeCover" class="angus.action.ChangeCoverAction">
<property name="cs" ref="clientService"/>
</bean>
<!--クンヨヨタ犂鯀エマ犂・->
<bean name="/viewalbumsk" class="angus.action.ViewAlbumsAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ヌーフィマ犂盥ヨメウ-->
<bean name="/otheralbums" class="angus.action.OtherAlbumsAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ス・犂・->
<bean name="/viewalbumk" class="angus.action.ViewAlbumClientAction">
<property name="cs" ref="clientService"/>
</bean>
<!--マ猗ャキヨメウ-->
<bean name="/otherphotosa" class="angus.action.OtherPhotosAction">
<property name="cs" ref="clientService"/>
</bean>
<!--イ鯀エユユニャ-->
<bean name="/photoclient" class="angus.action.ViewPhotoClientAction">
<property name="cs" ref="clientService"/>
</bean>
<!--イ鯀エヒミオトニタツロ-->
<bean name="/seecomment" class="angus.action.ViewPhotoClientAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ス・メオトマ犂・->
<bean name="/myalbum" class="angus.action.MyAlbumAction"/>
<!--キ「ア枻タツロ-->
<bean name="/addComment" class="angus.action.AddCommentAction">
<property name="cs" ref="clientService"/>
</bean>
<!--ニタツロキヨメウ-->
<bean name="/othercomment" class="angus.action.OtherPhotoWordAction">
<property name="cs" ref="clientService"/>
</bean>
<!--フ晴モヨヨタ・->
<bean name="/addkind" class="angus.action.AddKindAction">
<property name="cs" ref="clientService"/>
<property name="as" ref="adminService"/>
</bean>
<!--チヤタケスリニ・->
<bean id="commentInter" class="angus.interceptor.CommentInterceptor"/>
<bean class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
<property name="beanNames">
<list>
<value>/addComment</value>
</list>
</property>
<property name="interceptorNames">
<list>
<value>commentInter</value>
</list>
</property>
</bean>
<!--ヌーフィタケスリニ・->
<bean id="clientInter" class="angus.interceptor.ClientInterceptor"/>
<bean class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
<property name="beanNames">
<list>
<value>/addalbum</value>
<value>/albumlist</value>
<value>/albumpage</value>
<value>/addalbum</value>
<value>/updateinfo</value>
<value>/updatepass</value>
<value>/viewalbuminfo</value>
<value>/updatealbumInfo</value>
<value>/viewphotos</value>
<value>/managephotopage</value>
<value>/addphoto</value>
<value>/delalbum</value>
<value>/delphoto</value>
<value>/viewphoto</value>
<value>/afterdel</value>
<value>/changeCover</value>
</list>
</property>
<property name="interceptorNames">
<list>
<value>clientInter</value>
</list>
</property>
</bean>
</beans>
3.daoContext.xml
<?xml version="1.0" encoding="GBK"?>
<!-- ヨクカィSpringナ葷テホトシオトSchemaミナマ「 -->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean name="daoTemplate" abstract="true">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<bean name="adminDao" class="angus.dao.impl.AdminDaoImpl"
parent="daoTemplate"/>
<bean name="albumDao" class="angus.dao.impl.AlbumDaoImpl"
parent="daoTemplate"/>
<bean name="albumWordDao" class="angus.dao.impl.AlbumWordDaoImpl"
parent="daoTemplate"/>
<bean name="clientDao" class="angus.dao.impl.ClientDaoImpl"
parent="daoTemplate"/>
<bean name="kindDao" class="angus.dao.impl.KindDaoImpl"
parent="daoTemplate"/>
<bean name="photoDao" class="angus.dao.impl.PhotoDaoImpl"
parent="daoTemplate"/>
<bean name="photoWordDao" class="angus.dao.impl.PhotoWordDaoImpl"
parent="daoTemplate"/>
</beans>
- sping +struts + hibernate 配置文件
- sping+struts+hibernate+ajax配置
- hibernate struts和sping 原理说明[转]
- spring+struts+hibernate配置文件
- Hibernate+struts+spring配置文件
- Struts+Hibernate 配置文件作用
- sping hibernate
- Struts,Hibernate,Sping集成开发宝典读书笔记(1)
- 实例解析Struts 2.1与Sping、Hibernate集成
- 实例解析Struts 2.1与Sping、Hibernate集成
- 实例解析Struts 2.1与Sping、Hibernate集成
- Sping与hibernate和Struts的整合及使用
- 实例解析Struts 2.1与Sping、Hibernate集成
- struts+hibernate+spring标准配置文件
- struts+hibernate+spring 整合配置文件
- 加载Struts-Hibernate-Spring配置文件
- Sping acegi 配置文件
- sping boot配置文件详解
- C# 基础回顾
- O'Reilly发行iPhone破解指南书
- Examining the Specification Part 2: Testing Fundamentals
- DOS下对普通用户提权为Administrator
- Chapter 5 Testing the Software with Blinders On
- sping +struts + hibernate 配置文件
- Create PDS and Member
- Chapter 6 Examining the Code
- javascript提交表单
- Chapter 7 Testing the Software with X-Ray Glasses
- 在CSDN的博客安家了!
- Java随机生成动态验证码
- 关于双击jar文件启动命令行的解决方法
- Ubuntu8.04将亮相 有望挺进服务器市场