Spring
JPA Auditing 이란?
Audit : 감시, 감사하다. Spring Data provides sophisticated support to transparently keep track of who created or changed an entity and when the change happened. To benefit from that functionality, you have to equip your entity classes with auditing metadata that can be defined either using annotations or by implementing an interface. Spring Data JPA ships with an entity listener that can be used to tr..

IntelliJ 프로젝트 JDK 버전 변경하기
스프링 프로젝트 생성할 때는 jdk 11 버전 사용했다가 1.8 로 변경해야하는 경우가 생겨 해당 진행 과정을 포스팅해둔다. 먼저, 결론부터 말하자면 그냥 Settings 가 아닌 Project Structure에서 설정해야 바뀐다. 직접 오라클 홈페이지에 들어가 1.8버전 설치 후 설정해주는 방법도 있지만 그냥 빠르게 IntelliJ안에서 다운받아 설정하였다. 현재 선택되어있는 SDK는 AdoptOpenJDK 1.8 HotSpot JVM (https://adoptopenjdk.net/?variant=openjdk8&jvmVariant=hotspot) 이다. 그리고 만약 build.gradle에서 sourceCompatibility를 설정해두었다면 그것도 변경해주도록 하자.

Gradle에 lombok 의존성 추가하기 / not initialized in the default constructor 오류 해결
dependencies 에 추가하는 방법도 존재하겠지만 공식문서에서 추천하는 대로 추가해보도록 하겠다. 공식문서에서는 Gradle plugin으로 lombok을 쓰는 것을 추천하고 있다. 잠깐 읽어보면 deployment가 쉬워지고 lombok제거 등의 추가 작업을 더 편리하게 할 수 있는 듯 간단하게 build.gradle에 plugin 구문에 한 줄만 추가하면 된다. 일단 책 보면서 프로젝트 구성 중이고 그와 동시에 문제점 발생할 때마다 게시물을 작성하다보니 나중에 문제가 생길 수도 있지만 공식문서에 해답이 있을 것이라 믿고 진행한다.. 참고로 이를 찾아본 이유는.. implementation 'org.projectlombok:lombok' 으로 라이브러리 추가했다가 not initialized in..

Gradle 7 기본 변경점
뭐든지 가장 좋은 오류해결방법은 공식문서라고 했던가 (Upgrading your build from Gradle 6.x to the latest) https://docs.gradle.org/current/userguide/upgrading_version_6.html Upgrading your build from Gradle 6.x to the latest This chapter provides the information you need to migrate your Gradle 6.x builds to the latest Gradle release. For migrating from Gradle 4.x or 5.x, see the older migration guide first. We recommend..