Springboot
-
[Security] OAuth2 debugSpringboot/Security 2020. 6. 15. 20:59
[OAuth2UserRequest] :: google - OAuth2AccessToken accessToken expiresAtInstant (id=1064) issuedAtInstant (id=1069) scopes[https://www.googleapis.com/auth/userinfo.profile, https://www.googleapis.com/auth/userinfo.email, openid] tokenType"Bearer" tokenValue"ya29.NTXjl5Eic" (id=1073) - Map additionalParameters {id_token=eyJhbGciOiJ156156165ZiOGNhNWI3ZDhkO} - ClientRegistrationclientRegistration au..
-
[Batch]Springboot 2020. 6. 15. 15:58
대용량데이터처리 최적화 로깅,통계,트랜잭션관리 지원 자동화 예외상황 방어기능 스케줄링지원x -> 쿼츠 프레임워크 ================================================= JobLuncher : 배치실행. JobExecution 리턴 Job : 배치 단위. 일감 1:M(Step) Step : 배치 내 작업 단위. 1:1 ItemReader : Step에서 쓸 데이터 읽음 ItemProcessor : Step에서 쓸 데이터 가공 ItemWriter : 변환 데이터 저장 ================================================= [JobRepository] JobInstance,JobExecution 생성 조회 StepExecution 추가 수정 ..
-
[Spring Security]Springboot/Security 2020. 1. 18. 13:28
스프링시큐리티 헤더 default - 캐시금지, 스니프 방지, HSTS, 프레임옵션, XSS공격 방지 Authentication - 인증. 유저증명 Authorization - 인가. 권한결정 SecurityContextHolder, to provide access to the SecurityContext. SecurityContext, to hold the Authentication and possibly request-specific security information. Authentication, to represent the principal in a Spring Security-specific manner. UserDetails, to provide the necessary informatio..
-
[JPA]Springboot/JPA 2019. 12. 27. 12:31
@Entity @Table @Id @Column @GeneratedValue(strategy = GenerationType.IDENTITY) @Enumerated(EnumType.STRING):: enum 이름을 DB에 저장 ** @OneToOne(fetch = FetchType.LAZY ) - Hibernate의 Session 객체(관리자 객체)가 도메인 객체를 처리하는 구조. - Session 객체에는 영속성 컨텍스트를 포함한다. - 영속성 컨텍스트는 Transaction과 1:1 연결되며, 하나의 트랜잭션이 작업하는 동안 변경사항이 저장된다. - Transaction 종료시 영속성 컨텍스트의 내용은 저장소에 동기화(flushing)된다. 즉, Session 하나의 트랜잭션 동안 객체의 상태를 보관하..
-
[OAuth2]Springboot/Security 2019. 12. 17. 15:57
: 표준 인증 프로토콜. 토큰을 사용해 인증을 제공한다. # 승인타입 - Authorization Code Grant Type : (권한부여코드승인) auth server에 access token을 받아 인증에 이용. - Implict Grant Type : (암시적 승인) access token을 즉시 반환해 인증에 이용. 응답타입 token # 순서 1-1) client -> auth server : 권한부여코드 요청 {Client id / Redirect URL / reponse_type(code | token)} 전달 1-2) resource owner로그인 : 권한부여코드(code | token) Redirect URL로 client에게 전달 2-1) client -> auth server : ..
-
[REST]Springboot 2019. 12. 6. 15:28
REST : 분산하이퍼미디어 시스템에서 사용하는 통신 네트워크 아키텍쳐 RESTful : REST 구현 원칙을 지키면서 REST 아키텍쳐를 만드는 것 - client와 server의 분리 - stateless. server는 client 상태정보를 저장안함. 요청만 처리함. - cacheable. client request를 캐시한다. - layered system. server는 로드 밸런싱, 공유 캐시, 중개서버(프록시,게이트웨이)를 사용해 확성있는 시스템 구성가능 - uniform interface. 균일하고 통일된 URI interface 제공 - code on demand. client는 server에 코드를 받아 일시적 기능확장 가능(선택사항) #uniform interface 자원식별 : h..