Is servlet the singleton?

后端 未结 3 1436
长发绾君心
长发绾君心 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:33

    No. You can instantiate the same servlet class many times under different servlet names and URLs in the same web container and indeed in the same web-app.

提交回复
热议问题