ssh整合context:component-scan包名寫了*號:Failed to parse configuration class [org.springframework.cache.aspectj.AspectJJCacheConfiguration]


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 掃描包的時候,寫了一個星號進去,    


這就是錯誤的原因。

寫什么亂七八糟的文件夾名都好,寫星號,就完蛋。 






免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM