전체 글55 자바 1.8 새롭게 추가된 기술들 Java 8의 주요 변경 사항 Lambda expression(람다 표현식) // 람다 표현식으로 단순하게 표현 Thread thread = new Thread(() -> System.out.println("Start to new thread!")); 2.Functional interface(함수형 인터페이스) 단 하나의 추상 메서드를 갖는 인터페이스를 함수형 인터페이스 @FunctionalInterface public interface Car { String drive(int driveLevel); } Car car = new Car() { @Override public String drive(int driveLevel) { return driveLevel == 0 ? "" : "자동차가 " + dri.. 2022. 8. 3. builder / MapStruct (dto 관련) 1. builder 의 쓰임와 사용이유 참조 > https://mangkyu.tistory.com/163 [Java] 빌더 패턴(Builder Pattern)을 사용해야 하는 이유 객체를 생성하기 위해서는 생성자 패턴, 정적 메소드 패턴, 수정자 패턴, 빌더 패턴 등을 사용할 수 있습니다. 개인적으로 객체를 생성할 때에는 반드시 빌더 패턴을 사용해야 한다고 생각하는 mangkyu.tistory.com 2. MapStruct 의 쓰임과 사용이유 참조 > https://mangchhe.github.io/spring/2021/01/25/ModelMapperAndMapStruct/ [Spring] ModelMapper와 MapStruct에 대해서 학습하기 Object Mapping을 위한 ModelMapper와.. 2022. 6. 13. AOP 개념과 쓰임 # AOP : Aspect Oriented Programming 공통 관심사 -> 모듈화 (OOP 강화) 1.프록시기반 2.런타임 기반 3.인터페이스기반 @Around("execution(* com.codesquad.todo2.domain.project.ProjectService.addCard(..))") //Pointcut public Object logAddCard(ProceedingJoinPoint joinPoint) throws Throwable { Object[] args = joinPoint.getArgs(); Long projectId = (Long) args[0]; Long categoryId = (Long) args[1]; Long userId = (Long) args[3]; CardDt.. 2022. 5. 11. API interface 관련 (REST) REST API 기반 . 1. HTTP ENTITY HTTP 통신에서 REQUEST / RESPONSE 에 대해 REST API 방식 정보 송,수신을 위한 HEADER , BODY 의 값을 제어 하기 위한 추상 클래스 . (자바) HttpEntity -> RequestEntity -> HttpStatus / HttpHeader / HttpBody -> ResponseEntity -> HttpStatus / HttpHeader / HttpBody 참고 : https://devlog-wjdrbs96.tistory.com/182 2. REST TEMPLATE https://velog.io/@soosungp33/%EC%8A%A4%ED%94%84%EB%A7%81-RestTemplate-%EC%A0%95%EB%A6.. 2022. 5. 11. 이전 1 ··· 5 6 7 8 9 10 11 ··· 14 다음