微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

我如何使这个春季班找不到错误消失?

如何解决我如何使这个春季班找不到错误消失?

| 当班级明显在那儿时,有人可以请解释一下为什么我会遇到这个构建错误。这是错误-
org.springframework.beans.factory.BeanDeFinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/spring-servlet.xml]; nested exception is java.lang.NoClassDefFoundError: org/springframework/aop/scope/ScopedProxyUtils
这是我的spring-servlet.xml文件-
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<beans xmlns=\"http://www.springframework.org/schema/beans\"
xmlns:mvc=\"http://www.springframework.org/schema/mvc\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xmlns:aop=\"http://www.springframework.org/schema/aop\"
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/aop
    http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
    http://www.springframework.org/schema/context
    http://www.springframework.org/schema/context/spring-context-3.0.xsd
    http://www.springframework.org/schema/mvc
    http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd\">
<context:annotation-config />
<context:component-scan
    base-package=\"com.website\" />
<bean id=\"viewResolver\"
    class=\"org.springframework.web.servlet.view.UrlBasedViewResolver\">
    <property name=\"viewClass\"
        value=\"org.springframework.web.servlet.view.JstlView\" />
    <property name=\"prefix\" value=\"/WEB-INF/views/\" />
    <property name=\"suffix\" value=\".jsp\" />
</bean>

<bean id=\"messageSource\" class=\"org.springframework.context.support.ReloadableResourceBundleMessageSource\">
    <property name=\"basenames\">
        <value>/WEB-INF/messages/messages</value>
    </property>
    <property name=\"cacheSeconds\" value=\"60\" />
    <property name=\"defaultEncoding\" value=\"UTF-8\" />
</bean>
</beans>
我的班级路径上也有aop jar-
<classpathentry kind=\"lib\" path=\"WebContent/WEB-INF/lib/org.springframework.aop-sources-3.0.5.RELEASE.jar\"/>
    

解决方法

        那就是消息来源...   路径= \“ WebContent / WEB-INF / lib / org.springframework.aop-sources-3.0.5.RELEASE.jar \” 获取二进制发行版本。     

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。