spring scope 헤더 파일 이 설정 되 어 있 습 니 다.

자신의 spring 파일 을 사용 하 는 모든 주의:
다음 과 같은 방법 으로 해 야 한다.
머리 사용법 1.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd"> 

<beans default-lazy-init="false" default-dependency-check="none" default-autowire="no">
<!--      Action       scope="request"    .-->
<bean id="menu" class="com.doone.sys.menu.action.MenuAction"  scope="request">
<property name="menuService" ref="menuService"></property>
</bean>

<beans> 

방법 2:
<?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.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<!--      Action       scope="request"    .-->
<bean id="menu" class="com.doone.sys.menu.action.MenuAction"  scope="request">
<property name="menuService" ref="menuService"></property>
</beans>

좋은 웹페이지 즐겨찾기