Wondering why we need to sha开发者_Python百科re spring beans in case if there are no static data inside?
I think you need to share the ApplicationContext
- it holds the bean instances and definitions needed. The beans themselves aren't useful (from dependency-injection perspective) without their context.
精彩评论