spring IOC控制反转,实现action的配置
来源:互联网 发布:解放军知乎 编辑:程序博客网 时间:2024/05/21 11:05
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
<!-- added by tanshiyou -->
<bean name="registAction" class="com.archermind.action.RegistAction">
<property name="userService" ref="userService"></property>
</bean>
<!-- 版本管量 -->
<bean name="versionAction" class="com.archermind.action.VersionAction">
<property name="versionService" ref="versionService"></property>
</bean>
<!-- 用户登录 -->
<bean name="loginAction" class="com.archermind.action.LoginAction">
<property name="loginService" ref="loginService"></property>
</bean>
<!-- added by xiaodongmao -->
<bean name="suggestionAction" class="com.archermind.action.SuggestionAction">
<property name="suggestionService" ref="suggestionService"></property>
<property name="areaService" ref="areaService"></property>
</bean>
<bean name="suggestionUser" class="com.archermind.action.SuggestSubmit">
<property name="suggestionService" ref="suggestionService"></property>
</bean>
<!-- added by tanshiyou -->
<bean name="newsAction" class="com.archermind.action.NewsAction">
<property name="newsService" ref="newsService"></property>
</bean>
<bean name="userManage" class="com.archermind.action.UserManageAction">
<property name="userService" ref="userService"></property>
<property name="areaService" ref="areaService"></property>
<property name="whiteListService" ref="whiteListService"></property>
<property name="loginService" ref="loginService"></property>
</bean>
<!-- added by mao -->
<bean name="whiteAction" class="com.archermind.action.WhiteListAction">
<property name="whiteListService" ref="whiteListService"></property>
<property name="areaService" ref="areaService"></property>
<property name="userService" ref="userService"></property>
</bean>
<!-- added by mao -->
<bean name="faqAction" class="com.archermind.action.FaqAction">
<property name="faqService" ref="faqService"></property>
</bean>
<bean name="loginBefore" class="com.archermind.action.LoginBefore">
<property name="faqService" ref="faqService"></property>
</bean>
<bean name="system" class="com.archermind.action.SystemAction">
<property name="sysConfigService" ref="sysConfigService"></property>
</bean>
</beans>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
<!-- added by tanshiyou -->
<bean name="registAction" class="com.archermind.action.RegistAction">
<property name="userService" ref="userService"></property>
</bean>
<!-- 版本管量 -->
<bean name="versionAction" class="com.archermind.action.VersionAction">
<property name="versionService" ref="versionService"></property>
</bean>
<!-- 用户登录 -->
<bean name="loginAction" class="com.archermind.action.LoginAction">
<property name="loginService" ref="loginService"></property>
</bean>
<!-- added by xiaodongmao -->
<bean name="suggestionAction" class="com.archermind.action.SuggestionAction">
<property name="suggestionService" ref="suggestionService"></property>
<property name="areaService" ref="areaService"></property>
</bean>
<bean name="suggestionUser" class="com.archermind.action.SuggestSubmit">
<property name="suggestionService" ref="suggestionService"></property>
</bean>
<!-- added by tanshiyou -->
<bean name="newsAction" class="com.archermind.action.NewsAction">
<property name="newsService" ref="newsService"></property>
</bean>
<bean name="userManage" class="com.archermind.action.UserManageAction">
<property name="userService" ref="userService"></property>
<property name="areaService" ref="areaService"></property>
<property name="whiteListService" ref="whiteListService"></property>
<property name="loginService" ref="loginService"></property>
</bean>
<!-- added by mao -->
<bean name="whiteAction" class="com.archermind.action.WhiteListAction">
<property name="whiteListService" ref="whiteListService"></property>
<property name="areaService" ref="areaService"></property>
<property name="userService" ref="userService"></property>
</bean>
<!-- added by mao -->
<bean name="faqAction" class="com.archermind.action.FaqAction">
<property name="faqService" ref="faqService"></property>
</bean>
<bean name="loginBefore" class="com.archermind.action.LoginBefore">
<property name="faqService" ref="faqService"></property>
</bean>
<bean name="system" class="com.archermind.action.SystemAction">
<property name="sysConfigService" ref="sysConfigService"></property>
</bean>
</beans>
- spring IOC控制反转,实现action的配置
- Spring -- 控制反转IoC/依赖注入DI的实现
- Spring 用注解实现IOC控制反转
- Spring IOC 反转控制
- Spring-----> IOC(控制反转)
- Spring - 控制反转IOC
- Spring IoC[控制反转]
- Spring控制反转IOC
- Spring IOC控制反转
- Spring IOC 控制反转
- spring ioc 控制反转
- Spring控制反转(IoC)的理解
- Spring控制反转(IoC)的理解
- Spring控制反转(IoC)的理解
- Spring控制反转(IoC)的理解
- Spring控制反转(IoC)的理解
- Spring控制反转(IoC)的理解
- spring IOC 控制反转的简单理解
- 什么函数不能声明为虚函数?
- Lucene入门初步
- 实现两个Mysql数据库同步
- Android HAL的被调用流程
- 网吧安内线 黑客遥控偷Q币出售牟利
- spring IOC控制反转,实现action的配置
- mysql 主从复制1201错误
- 一个最简单的WebView教程
- Flex整合Spring+hibernate问题集锦
- http://poj.org/problem?id=1466&&Girls and Boys
- stagefright与opencore对比
- V4L2应用程序框架
- GlusterFS集群文件系统研究
- Vmware7.1.4安装+破解+汉化