Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 스프링 핵심 원리
- Servlet
- JPQL
- spring
- 그리디
- db
- kotlin
- transaction
- 스프링
- Thymeleaf
- jpa
- pointcut
- Greedy
- Spring Boot
- 알고리즘
- 백준
- 스프링 핵심 기능
- SpringBoot
- 인프런
- QueryDSL
- JDBC
- Android
- Proxy
- java
- http
- springdatajpa
- 자바
- 김영한
- Exception
- AOP
Archives
- Today
- Total
목록PatternMatchinUtils (1)
개발자되기 프로젝트
[로그인] Servlet Filter - 인증 체크
로그인 하지 않은 사용자가 상세 페이지 또는 앞으로 추가될 페이지에 접근하는 것을 막고싶다. 1. LoginCheckFilter class whitelist : 필터를 적용하지 않을 url 지정. ->회원등록, 로그인, 로그아웃, css관련 url은 해당 로직과 관계 없음. isLoginCheckPath() : 요청 url이 whitelist인지 아닌지 확인. PatternMatchinUtils를 사용하면 쉽게 비교 가능. @Slf4j public class LoginCheckFilter implements Filter { //얘네들은 필터 적용 안됨. private static final String[] whitelist = {"/", "/member/add", "/login", "/logout", "..
인프런/[인프런] 스프링 MVC 2
2021. 9. 26. 22:40