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>
原创粉丝点击