[Spring Error] import jakarta.validation 이 import 안 될 때

image 64

Spring에서 import jakarta.validation(import javax.validation) 사용이 안 될 때 어떻게 대처하는 지 알아보겠습니다. ※ javax 는 jakarta로 변경되었습니다. import jakarta.validation 안 되는 이유 = import javax.validation 항상 그냥 쓰고있던 import javax.validation, 갑자기 안 되거나 스프링 버전업 시에 문제가 되는 경우가 있으셨을 겁니다. 안 되는 이유는 스프링 부트 2.3.0 이상부터, starter web의 dependency에서 제외되기 때문입니다. import jakarta.validation … Read more

[Spring Error] org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘org.springframework.boot.autoconfigure.h2.H2ConsoleProperties’ available

image 47 e1703720795907

org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘org.springframework.boot.autoconfigure.h2.H2ConsoleProperties’ available Spring에서 H2 Console을 설정할 때 H2ConsoleProperties 빈을 찾지 못하는 상황을 나타냅니다. 해결 방법은 간단하고 다양합니다. 🙂 해결 방법 2가지 1. dependencies 확인 build.gradle 혹은 pom.xml에 의존성 추가가 안 되어있을 수 있습니다. build.gradle (Gradle) pom.xml (Maven) 2. H2 Console 관련 코드 제거 보통 Spring Security 사용 시, Config 구현 단계에서 … Read more

[Git Error] LF will be replaced by CRLF the next time Git touches it

image 49

Git Error LF will be replaced by CRLF the next time Git touches it git add 시에 발생하곤 하는 에러입니다. Git이 개행(Line Endings)을 자동으로 변환하려고 할 때 나타나는 에러로 간단하게 해결할 수 있습니다. LF & CRLF Line Feed(\n)와 Carriage Return Line Feed(\r\n)로, 개행 기준이라할 수 있습니다. Git은 core.autocrlf 설정으로 시스템끼리의 개행 차이를 관리합니다. 해결 방법 … Read more

[포트(Port)] 프로세스 Kill 하는 방법 – 초간단

image 42 e1699427638967

특정 포트(Port) 사용 프로세스 Kill 하는 방법에 대해 알아보겠습니다. 프로세스 Kill 하는 방법 1. 특정 포트(Port) 사용 프로세스 찾기 우선, CMD를 키고 아래 코드의 findstr 다음 찾고자 하는 포트(Port)를 넣고 복사하여 붙여넣습니다.그럼 해당 포트(Port)를 사용하는 프로세스 아이디(PID)를 찾을 수 있습니다. 2. 프로세스 Kill 아래 코드의 pid 다음에 해당 PID를 넣고 사용하면 Kill하면 됩니다. CMD 명령어 … Read more

[Spring Error] Web server failed to start. Port 8080 was already in use.

image 40 e1699424213651

Spring Error Web server failed to start. Port 8080 was already in use. 프로젝트 Build 시에 발생하는 에러입니다. default로 설정된 8080 Port가 이미 사용중이므로, 해당 프로세스를 Kill 하거나 포트 변경이 필요합니다. 해결 방법 2가지 1. 포트 변경 인텔리제이 기준 Ctrl + Shift + n 으로 application.properties 파일을 찾고, 아래 내용을 추가하여 원하는 미사용 port로 지정해주면 … Read more

[Spring Error] Error starting ApplicationContext. To display the condition evaluation report re-run your application with ‘debug’ enabled.

image 37 e1699421169261

Spring Error Error starting ApplicationContext. To display the condition evaluation report re-run your application with ‘debug’ enabled. 프로젝트 Build 시에 발생하는 에러입니다. Description을 확인해야합니다. 에러 메시지를 확인해보면 Failed to configure a DataSource 로 DB 연결 dependency가 존재하지만, 입력 정보가 없거나 잘못 되었기 때문에 발생합니다. 다른 메시지라면 아래 포스팅을 확인하세요! [Spring Error] Web server failed to … Read more

[Spring Error] Could not resolve all files for configuration ‘:classpath’.

image 35 e1699320800558

Spring Error Could not resolve all files for configuration ‘:classpath’. 프로젝트 Open 시에 발생하는 에러입니다. 에러 대표 메시지를 확인해보면, Gradle이 spring-boot-gradle-plugin을 찾지 못하고 있다는 것을 알 수 있습니다. 다양한 이유가 있을 수 있지만, 포스팅 전체 에러에서 아래 부분을 보면, Gradle이 Java 11과 호환되는 것을 찾고 있지만, Java17과 호환되려 한다는 것을 알 수 있습니다. 즉, 실행 … Read more