Spring组件扫描错误

时间:2015-10-08 07:24:51

标签: xml spring spring-mvc

所以我最近升级到Spring 4.2.1 RELEASE,我在context.xml中看到了这个错误

Error occured processing XML 'org.springframework.context.annotation.ScannedGenericBeanDefinition.getFactoryMethodMetadata()Lorg/springframework/core/type/MethodMetadata;'. 

但应用程序启动正常,一切正常。这个错误试图说什么?我的上下文xml看起来像这样,并从web.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"
    xmlns:context="http://www.springframework.org/schema/context"
    xsi:schemaLocation="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.xsd">

    <context:component-scan base-package="com.project"></context:component-scan>

</beans>

这个错误想说什么?

当我下载新的STS时,这个问题得到解决。我也升级了STS。奇怪。

0 个答案:

没有答案
相关问题