Servlet 3.0注释< welcome-file> [英] Servlet 3.0 annotations <welcome-file>

查看:130
本文介绍了Servlet 3.0注释< welcome-file>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过servlet 3.0注释从标准web.xml文件设置welcome-file标签?

Is it possible to set welcome-file tag from standard web.xml file by servlet 3.0 annotation ?

<welcome-file-list>
        <welcome-file>PageName.html</welcome-file>
</welcome-file-list>


推荐答案

不,目前没有这样的注释。 Servlet 3.0注释是InitParam,ServletFilter,WebServlet,WebServletContextListener,其中没有欢迎文件。

No, there is not such annotation at the moment. Servlet 3.0 annotations are InitParam, ServletFilter, WebServlet, WebServletContextListener, there's nothin for the welcome files in there.

这篇关于Servlet 3.0注释&lt; welcome-file&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆