<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
default-autowire="byName"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd">
<context:component-scan base-package="com.znsd.vote" />
<!-- actions -->
<bean id="loginInterceptor" class="com.znsd.vote.interceptor.LoginInterceptor" />
<bean id="publicInterceptor" class="com.znsd.vote.interceptor.PublicInterceptor" />
<!--<bean id="loginPostAction" class="com.znsd.vote.actions.LoginPostAction" scope="prototype"/>
<bean id="registerPostAction" class="com.znsd.vote.actions.RegisterPostAction" scope="prototype"/>
<bean id="testAction" class="com.znsd.vote.actions.TestAction" scope="prototype"/>
<bean id="pactackAction" class="com.znsd.vote.actions.PartackAction" scope="prototype"/>
<bean id="imageAction" class="com.znsd.vote.actions.ImageAction" scope="prototype"/>
<bean id="pactackResultAction" class="com.znsd.vote.actions.PactackResultAction" scope="prototype" />
-->
<!-- dao -->
<!-- <bean id="userDao" class="com.znsd.vote.dao.impl.UserDaoImpl" />
<bean id="itemDao" class="com.znsd.vote.dao.impl.ItemDaoImpl" />
<bean id="navigationDao" class="com.znsd.vote.dao.impl.NavigationDaoImpl" />
<bean id="optionDao" class="com.znsd.vote.dao.impl.OptionDaoImpl" />
<bean id="personDao" class="com.znsd.vote.dao.impl.PersonDaoImpl" />
<bean id="subjectDao" class="com.znsd.vote.dao.impl.SubjectDaoImpl" />
-->
<!-- service -->
<!-- <bean id="userService" class="com.znsd.vote.service.impl.UserServiceImpl" />
<bean id="itemService" class="com.znsd.vote.service.impl.ItemServiceImpl" />
<bean id="subjectService" class="com.znsd.vote.service.impl.SubjectServiceImpl" />
<bean id="optionService" class="com.znsd.vote.service.impl.OptionServiceImpl" />
<bean id="personService" class="com.znsd.vote.service.impl.PersonServiceImpl" />
<bean id="navigationService" class="com.znsd.vote.service.impl.NavigationServiceImpl" />
-->
</beans>
Spring.xml文件编写
最新推荐文章于 2024-08-08 19:59:48 发布