How does one manage object pooling in Spring?

前端 未结 1 1720
无人及你
无人及你 2021-02-01 23:16

It\'s my understanding that in Spring, all objects are treated by default as singletons. If singleton is set to false, then a new object will be served at each request.

相关标签:
1条回答
  • 2021-02-01 23:42

    Pooling can be applied to any POJO with spring.

    See here for more information.

    0 讨论(0)
提交回复
热议问题