org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '/query' is definedspring xml的内容
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
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-2.0.xsd"><bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" >
<property name="driverClassName"><value>oracle.jdbc.driver.OracleDriver</value></property>
<property name="username"><value>scott</value></property>
<property name="password"><value>tiger</value></property>
<property name="url"><value>jdbc:odbc:thin:@127.0.0.1:1521:ORAL</value></property>
<property name="maxActive"><value>100</value></property>
<property name="maxIdle"><value>20</value></property>
<property name="maxWait"><value>1000</value></property>
</bean>
<bean name="/query" class="com.neusoft.ss.action.QueryAction">
<property name="userBo"
ref="userBo"/> </bean>
<bean id="userBo" class="com.neusoft.ss.bo.UserBo">
<property name="empDao">
<ref bean="empDao"/>
</property>
</bean>
<bean id="empDao" class="com.neusoft.ss.dao.EmpDao">
<property name="dataSource">
<ref bean="dataSource"/>
</property>
</bean></beans>
struts xml
 <action
      name="actionForm"
      path="/query"
      scope="request"
      type="org.springframework.web.struts.DelegatingActionProxy">
      <forward name="QueryResult" path="/QueryResult.jsp" />
    </action>