Is Spring Boot MVC controller multithreaded?

后端 未结 3 1035
忘了有多久
忘了有多久 2020-12-15 12:33

I\'m new to Spring MVC and I didn\'t find anything about this in doc. Let\'s say I have a controller /accounts which accepts POST requests to create an account. Two requests

3条回答
  •  遥遥无期
    2020-12-15 13:19

    The solution to the problem may be the following:

    1. Annotate Controller with @Scope(“request”) or @Scope(“session”)
    2. Move private variable into one of the methods or save it in session or model

    I got it from there

提交回复
热议问题