[태그:] runtimeOnly
-
[Spring Error] org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘org.springframework.boot.autoconfigure.h2.H2ConsoleProperties’ available
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 구현 단계에서…