web.xml中的auth方法和welcome文件表示什么?

时间:2011-05-03 05:53:02

标签: java servlets web.xml

web.xml中的auth方法和welcome文件表示什么?

1 个答案:

答案 0 :(得分:4)

<auth-method>定义了Web应用程序对其用户进行身份验证的方法。您可以选择不同的方法,例如 BASIC (基本http身份验证), FORM (基于表单的身份验证)或 CLIENT-CERT (基于身份验证)在客户证书上)

请参阅this page for detailed information on authentication methods

如果请求URI指向目录,<welcome-file-list>定义服务器发送给客户端的默认页面。