7. 로그인 / 로그아웃

kdew0308·2023년 3월 23일
0

학습 관리 시스템

목록 보기
7/17

1. 스프링 시큐리티를 이용한 로그인

  • 스프링 시큐리티 : 모든 페이지를 이용하려면 로그인 이후에 이용 가능

1-1) 라이브러리 불러오기

수정 내용 자동 업데이트

Run/Debug Configurations -> Modify options -> On update action -> Hot swap classes and update trigger file if failed -> On frame deactivation -> Update classes and resources

1-2) SecurityConfiguration.java

  • anMatchers(주소) : 괄호 안에 있는 주소만!
  • permitAll() : 다 접근가능하게!


로그인 완료

0개의 댓글

관련 채용 정보