Java Springbean配置问题-处理XML spring 4.0.2时出错

Java Springbean配置问题-处理XML spring 4.0.2时出错,java,eclipse,spring,spring-mvc,Java,Eclipse,Spring,Spring Mvc,我将Spring4.0.2与EclipseKepler一起使用,在bean配置中配置组件扫描时遇到以下错误 请找到我的spring配置文件 <?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:mvc=

我将Spring4.0.2与EclipseKepler一起使用,在bean配置中配置组件扫描时遇到以下错误

请找到我的spring配置文件

<?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:mvc="http://www.springframework.org/schema/mvc"
    xmlns:context="http://www.springframework.org/schema/context"
    xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
        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-4.0.xsd">
    <mvc:annotation-driven></mvc:annotation-driven>
    <bean id="jspViewResolver"
        class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    <property name="prefix" value="/WEB-INF/jsps/"></property>
    <property name="suffix" value=".jsp"></property>
    </bean>
    <mvc:resources location="/resources/" mapping="/static/**" />
    <context:annotation-config></context:annotation-config>
    <context:component-scan base-package="com.ashish.spring.web.controller">
    </context:component-scan>


    <bean id="messageSource"
        class="org.springframework.context.support.ResourceBundleMessageSource">
    <property name="basename"
        value="com.ashish.spring.web.message.messages">
    </property>
    </bean>
</beans>


几乎没有足够的信息来准确说明问题所在,但您正试图将
字符串[]
传递给需要
字符串的对象。您的配置正确,请查看xsd中可能存在的问题,然后再试一次。。