본문 바로가기

Spring/Spring20

[spring / 기본] 핵심 core 강의 04. 주문, 할인 도메인 실행과 테스트/ 05. 객체 지향성 체크(원리 적용) 단위테스트 : spring, container 없이 순수 java 코드로 test 하는 것. 핵심은 클라이언트 - 주문서비스 요구사항 추가된다면, 문제점 : DI, OCP를 적용시키지 못하게 될 수도 있다. junit5 : ctrl + shift + T test 만들기 junit5 부터 @DisplayName : 한글로 요구사항 정리해도 된다. java 기본 문법 import static org.assertj.core.api.Assertions.*; alt + enter : static import 2022. 8. 29.
[Spring / 기본 ] 핵심 core 강의 03. 도메인 개발 인터페이스와 구현체를 분리하는게 설계상 좋다. 단축키 Ctrl + O : @Override 참고 https://www.inflearn.com/questions/47449 ConcurrentHashMap() 을 써본적이 없어서 찾아봤다. Document 로 보면 Class ConcurrentHashMap https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/ConcurrentHashMap.html ConcurrentHashMap (Java SE 11 & JDK 11 ) A hash table supporting full concurrency of retrievals and high expected concurren.. 2022. 8. 19.
[Spring / 기본 ] 핵심 core 강의 02. 설계 순수 자바로 실행 해보기 지금 결정하기 어려운 부분을 객체 지향 설계 방법으로 설계해본다. 도메인 그림 메모리 ~ 저장소(로컬, test 용 :재부팅시 데이터 날라감) 다이어그램 Service - ServiceImpl - Repository - MemoryRepository / DbRepository 객체 다이어그램 클라이언트 -> 서비스(Impl) -> 메모리 저장소 2022. 8. 19.
[Spring / 기본 ] 핵심 core 강의 01.setting https://docs.gradle.org/7.5/userguide/command_line_interface.html#sec:command_line_warnings Command-Line Interface You can customize many aspects about where build scripts, settings, caches, and so on through the options below. Learn more about customizing your build environment. -b, --build-file (deprecated) Specifies the build file. For example: gradle --build-file=f docs.gradle.org You can co.. 2022. 8. 19.