프로젝트 생성


  1. InetelliJ-Ultimate Ver 이라면 new Project로 SpringBoot start를 해주면 되고, 그게 아니라면 아래 링크를 통해 프로젝트를 생성 다운로드해준다. → https://start.spring.io/
  2. 사용 기능: Spring Web, JPA, h2, lombok

Gradle Code

참고: IntelliJ Gradle 대신 자바로 바로 실행하기 IntelliJ 최신 버전은 Gradle로 실행하는것이 기본 설정인데, 이보다는 자바로 바로 실행하는게 좀 더 빠르다.

  1. Preferences → Build, Execution, Deployment → Build Tools → Gradle
  2. Build and run using: Gradle → IntelliJ IDEA
  3. Run tests using: Gradle → IntelliJ IDEA

🔊Lombok 적용

  1. Preferences → plugin → lombok 검색&실행(재시작)
  2. Preferences → Annotation Processors 검색 → Enable annotation processing 체크(재시작)
  3. 임의의 테스트 클래스를 만들고 @Getter, @Setter 확인