[Spring] Spring Security OAuth2 - 인증 및 인가 흐름 요약
·
Spring
* 정수원 님의 스프링 시큐리티 OAuth2 강의 내용을 참고.(https://www.inflearn.com/course/%EC%A0%95%EC%88%98%EC%9B%90-%EC%8A%A4%ED%94%84%EB%A7%81-%EC%8B%9C%ED%81%90%EB%A6%AC%ED%8B%B0)SecurityContext - 이 객체가 생성되면 이미 인증받았다는 것을 의미하기 때문에 다시 인증 절차를 진행할 필요가 없다. 전역적으로 인증된 Authentication 객체를 어디에서든지 참조할 수 있도록 해준다.AuthenticationFilter - 로그인을 인증하는 필터다. 일반적으로는 로그인 url로 요청하게 되면 Authentication 객체를 만든다. 가장 보편적으로 사용하는 방식은 UsernamePa..
[Spring] warning: Generating equals/hashCode implementation but without a call to superclass, even though this class does not extend java.lang.Object. If this is intentional, add '@EqualsAndHashCode(callSuper=false)' to your type.
·
Spring
* User class의 @Data에서 warning 발견warning: Generating equals/hashCode implementation but without a call to superclass, even though this class does not extend java.lang.Object. If this is intentional, add '@EqualsAndHashCode(callSuper=false)' to your type.* 해결 방법 - @EqualsAndHashCode(callSuper = true) or @EqualsAndHashCode(callSuper = false) 추가@Data 에는 @Getter, @Setter, @RequiredArgsConstructor, @..
[Spring] AWS RDS - Spring boot ( MariaDB ) 프로젝트 연결 (2)
·
Spring
* 스프링 부트 (Spring Boot) - build.gradle : mariadb 의존성 추가dependencies { runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'} - application.properties : 데이터베이스(mariaDB) 연결정보와 관련 설정 # AWS 연동# JDBC 드라이버 클래스 이름spring.datasource.driver-class-name=org.mariadb.jdbc.Driver# 데이터베이스 URLspring.datasource.url=jdbc:mariadb://엔드포인트/데이터베이스_이름# 데이터베이스 사용자 이름spring.datasource.username=root# 데이터베이스 비밀번호spring.datasou..