Spring Security 3

Chapter 01. 스프링 시큐리티(Spring Security) 기본

1.1 환경 설정 디펜던시에 시큐리티를 추가하면 자동으로 localhost:8080/login, logout 페이지가 자동으로 생성된다. https://github.com/codingspecialist/Sringboot-Security-Basic-V1 쿼리를 복사 sql 적용 dependency mustache: jsp 대신에 머스태치를 이용 가능하다. yml 파일 mvc: view: ... 부분은 삭제한다. 디펜던시에 mustache를 등록하면 디폴트로 mvc에 경로가 잡힌다. 따라서 삭제 가능 server: port: 8080 servlet: context-path: / encoding: charset: UTF-8 enabled: true force: true spring: datasource: dr..

[6일차] 관리자 로그인, 상품 등록

오류) 순환 참조 오류 & admin.main.do을 입력해도 자동으로 로그인 페이지(member.login)로 이동한다. The dependencies of some of the beans in the application context form a cycle: ┌─────┐ | securityConfiguration defined in file [C:\Users\Ran\Desktop\R\zerobase\remote_mall\build\classes\java\main\com\example\mall\configuration\SecurityConfiguration.class] ↑ ↓ | memberServiceImpl defined in file [C:\Users\Ran\Desktop\R\zerobase\..

Chapter 07. 스프링 부트 프로젝트 - 로그인/로그아웃

Ex) SecurityConfiguration - demo4 프로젝트 만든다. 종속성 Spring security 선택, pom 파일에서 복사해서 - fastlms에 붙여넣기 -애플리케이션 실행하면 시큐리티 패스워드가 뜬다. - 로컬 접속 - 위의 패스워드 입력해야 로그인이 가능하다. - 시큐리티 Config 클래스 추가, 주소에 대한 권한 설정 -> antMachers: '/' => 루트 페이지, '/**' => 루트 및 모든 페이지 -> 로그인 없이 접속 가능해진다. package com.zerobase.fastlms; import org.springframework.context.annotation.Configuration; import org.springframework.security.confi..