I would like to autowire instance of bean A to the same instance of A. How can I achieve this with annotation (without XML).
Example:
@Autowired skip the annotated bean when looking for autowire candidates, use @Resource instead.
@Autowired
@Resource