行<context:component-scan =“com.gontuseries.hellocontroller”>

时间:2016-05-25 07:13:46

标签: spring testing model-view-controller

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xml>
<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">  

<context:component-scan="com.gontuseries.hellocontroller" />


<bean id="viewResolver"
class= "org.springframework.web.servelet.view.InternalResourceViewResolver">
<property name = "prefix">
<value>"/WEB-INF/"</value>
</property>
<property name = "suffix">
<value>"".jsp"</value>
</property>
</bean>
</beans>

我正在制作测试弹簧mvc程序,但我在上面提到的错误。我已经包含了所有必要的文件。

0 个答案:

没有答案