티스토리 뷰
11년 8월 기준.
<login-config>
<auth-method>FORM</auth-method>
<realm-name>Example Form-Based Authentication Area</realm-name>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/error.jsp</form-error-page>
</form-login-config>
</login-config>
// BASIC 으로 login
<!--
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Example Basic Authentication Area</realm-name>
</login-config>
-->
<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
FORM - 로그인과 로그인 에러시 페이지를 지정
BASIC - 브라우저의 자체 로그인박스를 띄워준다.
'Knowledge' 카테고리의 다른 글
log4j(로그포제이) Config(설정) (0) | 2024.01.21 |
---|---|
Windows(윈도우) open port(오픈 포트) 확인 (0) | 2024.01.20 |
Toad(토드) Configure(설정) (0) | 2024.01.20 |
JSP(제이에스피) mysql(마이에스큐엘) connect(접속) (0) | 2024.01.20 |
MODI(모디) OCR 한글인식 (0) | 2024.01.20 |