【发布时间】:2011-11-11 05:07:53
【问题描述】:
我正在尝试学习 Spring、Hibernate 和 Webflow。
为什么当我将 bean 添加到我的 applicationContext 时,我在运行项目时得到 404。
这是我的上下文配置:
<?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:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<bean id="roleService" name="roleService" class="ws.Service.RoleServiceImp" />
</beans>
现在,当我添加另一个 bean 时,它变为 404。我不确定出了什么问题。即:
bean id="userService" name="userService" class="ws.Service.UserServiceImp" />
我错过了什么吗?任何帮助将不胜感激。
【问题讨论】:
标签: spring spring-webflow