Announcement Announcement Module
Collapse
No announcement yet.
auto-scan question Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • auto-scan question

    Hi everybody,
    I know this question has yet been made in the forum, but it was a very old post (dates back to 2008) and I woud like to ask it again.
    Why Spring auto-detection doesn't support @Resource annotation on classes (with the same behaviour as @Component)?
    After all the @Resource documentation says
    The Resource annotation marks a resource that is needed by the application. This annotation may be applied to an application component class, or to fields or methods of the component class. [...] If the annotation is applied to the component class, the annotation declares a resource that the application will look up at runtime.
    and it looks pretty much like @Component.

    Best regards,
    Stefano
Working...
X