Use cases for @WebInitParam

前端 未结 3 954
既然无缘
既然无缘 2021-02-02 14:41

Since the Servlet 3.0 specification there is the possibility of declaring servlet mapping metadata as annotation on the servlet class:

@WebServlet(name=\"appInfo         


        
3条回答
  •  广开言路
    2021-02-02 15:05

    I can think of one, from the top of my head: provide the default value (i.e. by the class designer).

    If the user of this class is fine with the default value, he don't need to add anything and just uses it. If he's not - he can modify it using the DD.

提交回复
热议问题