-1

If both are possible in Spring, what is the difference between runtime functionality?

dur
  • 15,689
  • 25
  • 79
  • 125
user18424
  • 401
  • 1
  • 3
  • 8

1 Answers1

0

The answer is yes, you can wire prototype beans in singleton but there are some pitfalls.

Here is a good example.

https://prasanthnath.wordpress.com/2013/03/21/injecting-a-prototype-bean-into-a-singleton-bean/

Avinash
  • 4,115
  • 2
  • 22
  • 41