ssh整合context:component-scan包名写了*号:Failed to parse configuration class [org.springframework.cache.asp

Posted 奔跑吧_兄弟!

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ssh整合context:component-scan包名写了*号:Failed to parse configuration class [org.springframework.cache.asp相关的知识,希望对你有一定的参考价值。

1
2
3
4
03-Apr-2016 00:27:57.154 WARNING [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.context.support.XmlWebApplicationContext.refresh Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [org.springframework.cache.aspectj.AspectJJCacheConfiguration]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/cache/jcache/config/AbstractJCacheConfiguration.class] cannot be opened because it does not exist
03-Apr-2016 00:27:57.166 SEVERE [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.context.ContextLoader.initWebApplicationContext Context initialization failed
 org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [org.springframework.cache.aspectj.AspectJJCacheConfiguration]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/cache/jcache/config/AbstractJCacheConfiguration.class] cannot be opened because it does not exist
    at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:182)



1
Failed to parse configuration class [org.springframework.cache.aspectj.AspectJJCacheConfiguration]



1
Caused by: java.io.FileNotFoundException: class path resource [org/springframework/cache/jcache/config/AbstractJCacheConfiguration.class] cannot be opened because it does not exist




他妈的低级错误造成的.......在使用context:component-scan 扫描包的时候,写了一个星号进去,技术分享    


这就是错误的原因。

写什么乱七八糟的文件夹名都好,写星号,就完蛋。 













以上是关于ssh整合context:component-scan包名写了*号:Failed to parse configuration class [org.springframework.cache.asp的主要内容,如果未能解决你的问题,请参考以下文章

框架 day37 Spring事务管理,整合web,SSH整合,SSH整合注解

spring_IOC_自動裝配

SSH+Oracle的整合(SSH与Oracle整合坑巨多)

SSH框架整合配置所需JAR包(SSH整合)

SSH整合

ssh整合