23.12.26) TIL2023-12-26 20:00:42스프링 심화 프로젝트 1. ERD 2. 와이어프레임
23.12.13) TIL2023-12-14 01:30:221. SecurityFilterChain - WebSecurityConfig 클래스에서 SecurityFilterChain을 Bean으로 등록한다. @Bean public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { // CSRF 설정 http.csrf((csrf) -> csrf.disable()); // 기본 설정인 Session 방식은 사용하지 않고 JWT 방식을 사용하기 위한 설정 http.sessionManagement((sessionManagement) -> sessionManagement.sessionCreationPolicy(SessionCreationPolicy.STATELESS) ); http...
23.12.12) TIL2023-12-12 20:05:121. controller // 회원가입 @PostMapping("/signup") public ResponseEntity signup(@Valid @RequestBody UserRequestDto requestDto) { try { userService.signup(requestDto); return ResponseEntity.status(HttpStatus.CREATED.value()) .body(new CommonResponseDto("회원가입 성공", HttpStatus.CREATED.value())); } catch (BusinessException be) { return ResponseEntity.status(be.getStatus()) .body(new CommonResponseDto(be.g..
23.12.08) TIL2023-12-08 20:29:49오늘 팔로우와 좋아요 기능 거의 완성했다. 1. 팔로우 목록 // 팔로우 목록 조회하기 (로그인한 유저가 팔로우 한 유저들의 목록) @GetMapping("/followers") public ResponseEntity getFollowers( @AuthenticationPrincipal UserDetailsImpl userDetails) { String username = userDetails.getUsername(); List followers = followService.getFollowers(username); return ResponseEntity.ok(followers); } // 팔로우 목록 조회하기 (로그인한 유저가 팔로우 한 유저들의 목록) public List getFollowers(St..