Stateful beans and Stateless beans in Spring context

后端 未结 2 614
逝去的感伤
逝去的感伤 2020-12-23 11:24

I am reading spring through its official documentation and at one place I came to a line that uses prototype scope for all stateful beans while singleton for stateless beans

2条回答
  •  不知归路
    2020-12-23 12:13

    It totally depends on the implementation. See tomee for example http://tomee.apache.org/statelesscontainer-config.html . You'll have to check in your server docs

提交回复
热议问题