songyy.log
로그인
songyy.log
로그인
Spring_URL Pattern
song
·
2023년 10월 27일
팔로우
0
Spring
목록 보기
8/19
URL 패턴
디테일할 수록 우선순위가 높다.
/login/*보다 /login/hello.do가 더 우선순위가 높다.
@RequestMapping("/login/hello.do")
정확히 저 링크로 들어오면 인식하겠다.
http://localhost:8080/app/login/hello.do
@RequestMapping("/login/*")
*은 아무거나 들어와도 된다.
http://localhost:8080/app/login/hello.do가
오던 /login/hi가 오던 다 인식됨.
@RequestMapping("/login/*
/tmp/
.do")
login과 tmp 사이에 몇개의 경로가 들어가던 인식.
http://localhost:8080/app/login/hello/hello/tmp/hello.do
이렇게 몇개의 경로가 들어가던 인식.
@RequestMapping("/login/??")
login/ 뒤에 2글자들어오면 인식.
잘 사용되지 않는다.
http://localhost:8080/app/login/hi
song
계속 나아가기
팔로우
이전 포스트
Spring_Mapping
다음 포스트
Spring_Redirect & Forward
0개의 댓글
댓글 작성