
⚙️ 개발/IntelliJ

스프링 부트 3.x 프로젝트를 실행하는데 다음과 같은 에러가 발생했다.A problem occurred configuring root project 'web'.> Could not resolve all artifacts for configuration ':classpath'. > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.2.5. Required by: project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.2.5 > No matching variant of org.springframework.boot:s..

1. build.gradle > dependecies > 의존성 추가 implementation 'org.projectlombok:lombok' 2. Settings > Plugins > Lombok 설치 3. Settings > Build, Execution, Deployment > Annotation Processors > Enable 수정

스프링부트 개발할 때 인텔리제이를 사용하는데 서버를 다시 시작하는 수고로움이 있었다. 이걸 해결하기 위한 확장프로그램이 Live Reload이다. 1. build.gradle > dependencies 의존성 추가 developmentOnly 'org.springframework.boot:spring-boot-devtools' 2. application.properties 설정 추가 spring.devtools.livereload.enabled=true 3. IntelliJ > Build Tools > Gradle > Build and run using > IntelliJ IDEA 수정 4. IntelliJ > Settings > Compiler > automatically 체크 5. IntelliJ >..
단축키 설명 Ctrl + Alt + V 변수명 생성 Ctrl + Shift + T 테스트 생성 윈도우 + Alt + Enter import static org.assertj.core.api.Assertions.*; Ctrl + Alt + B service에서 serviceImpl로 이동 Alt + Ins 생성자 생성 파일 + Ctrl + R 파일 내 코드 교체 폴더 + Ctrl + Shift + R 폴더 내 파일 모두 코드 교체 Ctrl + P 필요한 파라미터 확인 Ctrl + E 최근에 열어본 파일 리스트 Ctrl + O 메소드 생성 Ctrl + Alt + C 변수 상수 F2 에러로 이동