Basic Verification in Tomcat

xiaoxiao2021-03-06  15

K: / Tomcat/conf/tomcat-users.xml

< User username = "tomcat" password = "Tomcat" roles = "tomcat" />

Web.xml

/ jsp / * < Role-name> manager Basic

K: /TOMCAT/webapps/test9/jsp/AUTH.JSP

<% @ page contenttype = "text / html; charset = GBK"%>

YEAH, You Can See Me Now!

Http: // localhost: 2000 / test9 / jsp / auth.jsp

Will jump out of a landing window, type user = bitan, password = bitan after display: Yeah, you can see me now!

转载请注明原文地址:https://www.9cbs.com/read-46463.html

New Post(0)