현실을 넘어
close
프로필 배경
프로필 로고

현실을 넘어

  • 분류 전체보기
    • 자바
      • 일반
      • 알고리즘
      • 객사오
      • 스프링입문객체지향
      • 리팩토링
      • 스프링부트3
      • JPA
      • QueryDsl
      • Spring Security
    • 코틀린
      • 코틀린인액션
      • 알고리즘
    • 일 관련 삽질
    • JIRA
    • 도메인주도개발
    • DB
      • Mysql
    • MQ
      • Apache Kafka
    • Docker-Kubernetes
    • GITHUB
    • REST API
    • 리눅스
  • 홈
  • 태그
  • 방명록

[팁] compareTo 기준점

compareTo 기준 어느 쪽을 기준으로 정렬되는 건지 알기 어려울때..두 사람의 키 를 비교하는 것과 비슷하다.1. 첫번 째 사람의 키가 더 크다면compareTo 의 결과 양수키 큰놈이 더 뒤로 간다.2. 두 사람의 키가 동일comapreTo 결과 03. 첫 번째 사람의 키가 더 작다면compareTo 결과 음수 키 작은 놈이 앞으로 온다. Uploaded by N2T

  • format_list_bulleted 자바/일반
  • · 2024. 2. 19.
  • textsms

[프로젝트] 주문 생성시 Location 헤더와 HTTP 상태코드 201 Created 를 반환하는 건 어떨까?

@PreAuthorize("hasRole('ROLE_CUSTOMER')") @PostMapping("/v1/api/orders") public MessageDTO createOrder(@ModelAttribute OrderPageRequestDTO orderPageRequestDTO, @CurrentUser Jwt jwt) { log.info("createOrder orderPageRequestDTO : {}", orderPageRequestDTO); UserDetailsServiceImpl.CustomUserDetails customUserDetails = userDetailsService.loadUserByJwt(jwt); Member member = Member.from(customUserDetai..

  • format_list_bulleted 자바/리팩토링
  • · 2024. 2. 12.
  • textsms

[Security] PasswordEncoder..?

@Bean public PasswordEncoder passwordEncoder() { return PasswordEncoderFactories.createDelegatingPasswordEncoder(); }PasswordEncoder 빈 주입return new BCryptPasswordEncoder(); -> return PasswordEncoderFactories.createDelegatingPasswordEncoder();으로 변경하였다.Password Storage :: Spring SecuritySpring Security’s PasswordEncoder interface is used to perform a one-way transformation of a password to let the..

  • format_list_bulleted 자바/Spring Security
  • · 2024. 1. 19.
  • textsms
[Spring Security] JwtAuthenticationFilter 관련

[Spring Security] JwtAuthenticationFilter 관련

JwtAuthenticationFilter 라고UsernamePasswordAuthenticationFilter.class 이전에//로그인전 UserPasswordAuthenticationFilter 를 통해 인증을 받도록 설정 .addFilterBefore(jwtAuthenticationFilter(), UsernamePasswordAuthenticationFilter.class);항상 해당 필터를 거치도록 설정을 하였다.초기@Slf4j public class JwtAuthenticationFilter extends UsernamePasswordAuthenticationFilter { @Autowired private PasswordEncoder passwordEncoder; /** * authenti..

  • format_list_bulleted 자바/Spring Security
  • · 2024. 1. 19.
  • textsms

[프로그래머스] 행렬의 덧셈 (Java)

package org.example.알고리즘.행렬의덧셈; import java.util.Arrays; /**/ class Solution { public static void main(String[] args) { Solution solution = new Solution(); System.out.println(Arrays.deepToString(solution.solution(new int[][]{{1, 2}, {2, 3}}, new int[][]{{3, 4}, {5, 6}}))); } public int[][] solution(int[][] arr1, int[][] arr2) { ArrayClass arrayClass1 = new ArrayClass(arr1); ArrayClass arrayClass..

  • format_list_bulleted 자바/알고리즘
  • · 2024. 1. 14.
  • textsms

[D2] 그런 REST API 로 괜찮은가 .. 에 대한 정리

Uniform Interface 의 제약조건identification of resources각각의 정보 자원(RESOURCE) 이 고유한 식별자(IDENTIFIER) 를 통해 구별되고 접근이 가능해야한다는 원칙클라이언트는 URI 를 통하여 자원에 접근 , 상호작용manipulation of resources through representations클라이언트가 서버에 있는 자원(RESOURCE) 을 조작 (MANIPULATE) 할때 , 해당 자원의 표현(representation) 을 통해 이루어져야 한다.표현이란?자원의 상태를 나타내는 형식화된 데이터JSON 혹은 XML 을 의미함.위 2가지는 보통의 REST API 에서 일반적으로 지켜지고 있는 개념이다.하지만 아래의 경우는 잘 지켜지지 않는다고 한다..

  • format_list_bulleted REST API
  • · 2024. 1. 7.
  • textsms
  • navigate_before
  • 1
  • 2
  • navigate_next
공지사항
  • ㅇ
전체 카테고리
  • 분류 전체보기
    • 자바
      • 일반
      • 알고리즘
      • 객사오
      • 스프링입문객체지향
      • 리팩토링
      • 스프링부트3
      • JPA
      • QueryDsl
      • Spring Security
    • 코틀린
      • 코틀린인액션
      • 알고리즘
    • 일 관련 삽질
    • JIRA
    • 도메인주도개발
    • DB
      • Mysql
    • MQ
      • Apache Kafka
    • Docker-Kubernetes
    • GITHUB
    • REST API
    • 리눅스
최근 글
인기 글
최근 댓글
태그
  • #QueryDSL
  • #알고리즘
  • #리팩토링
  • #도메인주도개발
  • #Kotlin
  • #JPA
  • #객사오
  • #자바
  • #ddd
  • #객체지향
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바