SpringBoot3 (5) 썸네일형 리스트형 [SpringSecurity-03] 스프링 시큐리티 - CRUD [SpringSecurity-02] 스프링 시큐리티 - 활용 [SpringSecurity-02] 스프링 시큐리티 - 활용[SpringSecurity-01] 스프링 시큐리티 - 이해 [SpringSecurity-01] 스프링 시큐리티 - 이해SpringFramework에서 REST API를 사용하는 백엔드 개발자 지망생이라면한번쯤 회원과 관련된 인증/인가를 구현해야겠다hjustin.tistory.com 이번에는 지난번에 말했던 CRUD 즉 회원가입,로그인,로그아웃을 구현해볼거에요! Security에서 DB에 멤버정보가 없다면 회원가입을 진행하고멤버정보가 있다면 로그인을하는 형식으로 구성됩니다. 그전에 resources의 디렉토리구조에 대해서 알아야합니다!static : 정적인 파일이 들어갑니다. imag.. [SpringSecurity-02] 스프링 시큐리티 - 활용 [SpringSecurity-01] 스프링 시큐리티 - 이해 [SpringSecurity-01] 스프링 시큐리티 - 이해SpringFramework에서 REST API를 사용하는 백엔드 개발자 지망생이라면한번쯤 회원과 관련된 인증/인가를 구현해야겠다는 생각을 해봤을 것이다."SpringSecurity" 어려움주의최대한 쉽게, 본인이 이해한hjustin.tistory.com 지난 포스트에 이어 이번엔 SpringSecurity를 환경설정해보자. Authentication : 인증Authentication Manager : 인증 담당 매니저Authentication Provider : 인증 방법SpringSecurityFilters : 필터 모음집SecurityContext : 인증된 객체 저장소U.. [SpringSecurity-01] 스프링 시큐리티 - 이해 SpringFramework에서 REST API를 사용하는 백엔드 개발자 지망생이라면한번쯤 회원과 관련된 인증/인가를 구현해야겠다는 생각을 해봤을 것이다."SpringSecurity" 어려움주의최대한 쉽게, 본인이 이해한 내용을 토대로 기술하며 틀린내용이 있을 수 있다. 아래의 그림과 같이 필터 체티닝 구조로 구성되어있으며 하나의 쓰레드가 순차적으로 실행된다. 우리는 초보니까,딱 두가지만 기억하자. 1. 필터들로 이루어져 있다.2. 그 필터가 체이닝 구조로 이루어져있다. 그렇다면 우리가 뭔가 Security를 사용하기 위해서 다음과 같이 생각할 수 있다. 1. 필터를 오버라이딩하기2. 필터를 끼워넣기사실 둘다가능하다 우선 필자는 구현해본 시큐리티중에서 가장 간단하며 꼭 구현해야하는 인터페이스/클래.. [SpringBoot3] WITH Redis on Docker 크게 진행과정을 2가지로 분류 할 수 있다. 1. Running Redis on Docker docker run --name my-redis -d -p 6379:6379 redis 2. Springboot3 connect Redis spring.datasource.url= spring.datasource.username spring.datasource.password= spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect spring.jpa.hibernate.ddl-auto=none spring.jpa.show-sql=true spring.mvc.contentnegotiation.media-types.json=applicat.. [SpringBoot3] WITH QueryDsl 1. Build.gradle에 아래와 같은 의존성 추가 // JPA 의존성 implementation 'org.springframework.boot:spring-boot-starter-data-jpa' // QueryDsl 종속성 implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta' annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jakarta" annotationProcessor "jakarta.annotation:jakarta.annotation-api" annotationProcessor "jakarta... 이전 1 다음