일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- SQL
- 스프링부트 채팅서버
- LeetCode SQL
- SQL 문제풀이
- 스프링
- 오라클
- 구글로그인
- java8
- 스프링시큐리티
- springboot
- mysql
- js
- javascript
- Leetcode
- 파이게임
- spring boot
- 스프링부트
- 코틀린 클래스
- oauth2
- Spring
- kotlin 클래스
- 자바스크립트
- 자바8
- pygame
- 자바 스트림
- MSA
- oracle
- SQL프로그래머스
- python
- 프로그래머스
- Today
- Total
목록스프링시큐리티 (2)
웅겹살의 프로그래밍 삼매경
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bc3hff/btqWU8V9HQE/IDtYzvMyHVYIo7vzpp4nKK/img.png)
회원수정 DB, 세션 둘다 수정되는 로직 기록한다 필요한 내용 주석으로 달아둠 OAUTH2 작업중으로 수정예정 1. UserApiContoller @PutMapping("/user") public ResponseDto update(@RequestBody User user){ userService.update(user); // 여기서는 트랜잭션이 종료되기 때문에 DB값은 변경이 됐음 // 하지만 세션값은 변경되지 않은 상태이기때문에 세션값 갱신이 필요함 // 세션 등록 Authentication authentication = authenticationManager.authenticate(new UsernamePasswordAuthenticationToken(user.getUsername(), user.ge..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bPidwZ/btqWW9GCmBg/PpM8tbMoOQUZnzLLxvukoK/img.png)
스프링부트 + JPA + 스프링시큐리티 프로젝트 진행중 시큐리티 관련내용 기록용으로 글 작성한다 OAUTH2 작업중으로 추가예정 설명 필요한부분 주석달아둠 1. SecurityConfig package com.leo.blog.config; import com.leo.blog.config.auth.PrincipalDetailService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.secur..