Spring session-scoped beans (controllers) and references to services, in terms of serialization

前端 未结 6 1137
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-27 12:44
  • a standard case - you have a controller (@Controller) with @Scope(\"session\").
  • classes put in the session usually are expected to i
6条回答
  •  离开以前
    2020-11-27 12:46

    In this presentation (around 1:14) the speaker says that this issue is resolved in spring 3.0 by providing a proxy of non-serializable beans, which obtains an instance from the current application context (on deserialization)

提交回复
热议问题