或者报错:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'.
原理参考:http://blog.csdn.net/hengyunabc/article/details/22295749
我不讲废话,单刀直入给出解决办法:主要是缺少