Jul 19th, 2012, 05:32 AM
@Autowired Spring singletons are initialized more than once, wired incorrectly
This post is a spin-off from my SO post  which contains full details.
The short story is that I have a bean graph with singleton beans (let's call them A, B and C), @Autowired to each other as circular dependencies. The trouble is that after initial app context startup beans B and C contain different @Autowired instances of bean A.
My investigation shows that this problem is specific to @Autowiring and, unfortunately, this can not be reproduced on a minimized scale.
Does this look like a bug in Spring to anyone? Or is this expected (and if so - documented)?
Tags for this Thread