What does “Context” in “ServletContext” mean?

前端 未结 6 1844
独厮守ぢ
独厮守ぢ 2021-01-31 11:04

Method getServletContextName() returns the name of the \"web application\". That means, \"ServletContext\" is nothing but \"web application\". Ok.

API defin

6条回答
  •  温柔的废话
    2021-01-31 11:23

    Context means web app here.

    A ServletContextListener gets notified when a Web App is started or stopped. That way you can run tasks automatically that need to be run when the web app starts or stops.

提交回复
热议问题