Spring72 Lombok annotation 정리 Lombok Annotation 정리 생성자 관련 @NoArgsConstructor 파라미터가 없는 기본생성자를 만들어줍니다. // before @NoArgsConstructor public class NoArgsConstructorTestClass { } // after public class NoArgsConstructorTestClass { public NoArgsConstructorTestClass() {} }@AllArgsConstructor 클래스에 선언된 모든 필드 값에 대한 생성자를 만들어줍니다. // before @AllArgsConstructor public class AllArgsConstructorTestClass { private String name; private int age.. 2021. 8. 24. spring transactional readOnly 성능 관련 정리 spring transactional readOnly 성능 관련 정리 org.springframework.transaction.annotation.Transactional 의 readOnly 에 대해서 찾아봤습니다. public abstract boolean readOnly A boolean flag that can be set to true if the transaction is effectively read-only, allowing for corresponding optimizations at runtime. Defaults to false. This just serves as a hint for the actual transaction subsystem; it will not necessarily.. 2021. 8. 23. spring batch partitioner 정리 source 는 Github 에 있습니다. spring batch partitioner 정리 partitioner 개념 partitioner 는 하나의 jvm 내에서 멀티 스레드로 처리하는 방법입니다. partitioner 에서 데이터를 나누고 각 스텝에 나눈 데이터를 분배하여, 스텝에서는 분배받은 데이터를 가지고 프로그램을 수행합니다. 스레드 측면에서 보면 partitioner 라는 스레드가 데이터를 나눠서 각 스텝에 나눠주는데, 이 스텝들은 별도의 스레드에서 동작하게 됩니다. 즉, ItemReader, ItemWriter 가 thread-safe 하지 않아도 됩니다. Multi thread step 의 경우 ItemReader, ItemWriter 는 thread-safe 해야 합니다. Multi t.. 2021. 8. 18. spring rest docs 정리 source 는 Github 에 있습니다. spring rest docs 정리 spring rest docs 은 test 를 작성하면서 동시에 document 를 작성하는 오픈소스입니다. Controller Api 부분만 빠르게 테스트 하기 위해 @WebMvcTest 로 테스트 환경을 만들었습니다. spring rest docs 특징 테스트가 성공해야 document 가 작성이 됩니다. learning cost 가 꽤 큽니다. ascii 문법을 새로 배워야 합니다. build.gradle 설정 source 중간 중간에 설명을 달아놨습니다. plugins { id 'org.springframework.boot' version '2.5.1' id 'io.spring.dependency-management' .. 2021. 8. 4. 이전 1 ··· 6 7 8 9 10 11 12 ··· 18 다음