반응형

IDE/Intellij 7

Could not resolve all files for configuration ':classpath'. > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.1.7.

에러 로그 스프링 부트 3점대를 사용하려고 OpenJDK 17도 설치했는데 build 할때 위와 같은 로그가 뜨면서 잘 안 된다. 해결 Build and run using, Run tests using을 'IntelliJ IDEA'로 변경하면 속도가 더 빠르다. JVM을 설치한 17 버전으로 변경해준다. 참고 👇👇👇 https://jojoldu.tistory.com/698 Spring Boot 3.x 실행이 안될 경우 (feat. IntelliJ) 스프링 부트 3.0 이 출시되었다. (현재 최신은 3.0.1 이지만) 3.0 부터는 Java 17부터 지원된다. 그러다보니 기존에 Java8, 11등을 사용하시던 분들은 3.x 스프링 부트 프로젝트를 실행할때 에러들을 만나 jojoldu.tistory.com

IDE/Intellij 2023.12.28

Intellij 이유 없는 에러

상황 잘 되다가 갑자기 어떤 클래스에서 static으로 선언한 메소드에 접근할 수 없다는 이상한 에러가 떴다. 이 이상한 에러를 해결하기 위해 그동안 충돌이 매번 났던 플러그인(코드의 depth를 계산해주던)도 삭제했다. File > Invalidate Caches를 클릭한다. 나는 첫 번째도 선택했었다. 알아서 선택한 후 Invalidate and Restart를 하면 Intellij가 다시 시작된다. 캐시를 삭제해서 속도도 더 빨라지고 이상한 에러도 해결되었다. 다시 클론받을까 생각도 들었지만 계속 사용하려면 이 방법이 낫다.

IDE/Intellij 2023.06.18

변경된 소스 코드 바로 적용하기

서버 실행 중에 코드를 변경하면 바로 반영함(f5키 누르기) 1. dependencies { developmentOnly 'org.springframework.boot:spring-boot-devtools' } build.gradle에 SpringBoot DevTools 의존성 추가 2. File -> Settings -> Advanced Settings > Allow auto-make to start even if developed application is currently running 체크 참고 👇 https://kim-oriental.tistory.com/8 IntelliJ(인텔리제이) Spring Boot DevTools 적용 안녕하세요, 오리엔탈 킴입니다. IntelliJ(인텔리제이) Spr..

IDE/Intellij 2022.05.05

[Error] Java cannot find symbol java.util.Optional#isEmpty

Optional의 isEmpty 메소드를 찾을 수 없다는 에러가 떴다. 먼저, 아래 방법대로 해봤는데 안됨 https://youtrack.jetbrains.com/issue/IDEA-242790 Java cannot find symbol java.util.Optional#isEmpty : IDEA-242790 Hi, the following code works return !PlayerCredential.findByIdOptional(username).isPresent(); But the following code does not compile when rebuilding the project: return PlayerCredential.findByIdOptional(username).isEmpty();..

IDE/Intellij 2022.03.26

디버깅 속도가 느려졌을 때

ctrl-shift-f8을 누르면 모든 Breakpoints를 관리할 수 있는 창이 뜬다. 필요 없는 지점은 체크 해제하자. 👇 참고 https://developer0513.tistory.com/166 intellij-idea 디버깅 속도가 느리거나 디버깅 모드로 진입이 되지 않을때. 어제 업무가 바빠서( 솔직히 이야기하면 퍼포먼스가 안나서) 어쩔수 없이 야근하는 상황에 담당자는 쪼고 있고 작성한 코드를 확인할려고 shift-f9로 디버깅 모드로 진입할려고 하는데 디버깅 모 developer0513.tistory.com

IDE/Intellij 2022.02.08
반응형