Is servlet the singleton?

后端 未结 3 1469
长发绾君心
长发绾君心 2020-12-30 20:36

Reading some book that said the servlet is singleton from the container side. Is this true?

However even it is a singleton, we need to handle data synchronization et

3条回答
  •  忘掉有多难
    2020-12-30 21:16

    No, Servlet is not a Singleton. It may create 2nd Object , depends on the incoming request and the Container behavior.

提交回复
热议问题