Failed to read candidate component错误

<context:component-scan base-package="com.spdb"/>
<mvc:annotation-driven/>

加上该标签后启动报错,最后发现是版本问题,Spring3+Jdk1.6,Spring4+Jdk1.8正常,Spring3+Jdk1.8会报该错误。

原文地址:https://www.cnblogs.com/shuo1208/p/5779889.html