急!在线等,无法初始化action中的manager
一直提示action中的um(UserManager)没有初始化xml文件有:beans-manager.xml和beans-action.xml
beans-manager.xml的部分内容
<bean id="hibernateTemplete" class="com.qidian.register.utils.HibernateTempleteUtil" scope="singleton">
</bean>
<bean id="userDao" class="com.qidian.register.dao.impl.UserDaoImpl" scope="singleton">
</bean>
<bean id="userManager" class="com.qidian.register.manager.impl.UserManagerImpl" scope="singleton">
<property name="userDao" ref="userDao"></property>
</bean>
beans-action.xml的部分内容
<bean id="LoginAction" class="com.qidian.register.action.LoginAction" scope="prototype">
<property name="um" ref="userManager"></property>
</bean>
web.xml
--------------------编程问答-------------------- com.qidian.register.action.LoginAction
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:beans-*.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
这个类中有没有 setUm(UserManager);方法呢
补充:Java , Web 开发