[Spring] “” is required for @Resource

今天发现@Resource未能把属性注进来,浪费了一个下午找原因。

直到最后发现竟然是spring.xml里没有 "<context:annotation-config>" !

真可悲,脑力越来越差了。

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.