和ssh框架的基本一致。
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" 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 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd "> <!--自动注入processor解释器(此行不写)--> <context:annotation-config></context:annotation-config> <!--自动扫描包--> <context:component-scan base-package="com.nf"></context:component-scan> <!-- <bean id="userAction" class="com.nf.action.UserAction" scope="prototype"></bean> --> </beans>