H2 데이터베이스는arrow-up-right 제공하는 브라우저 기반의 콘솔arrow-up-right 봄 부팅 당신을 위해 자동으로 구성 할 수 있습니다. 다음 조건이 충족되면 콘솔이 자동으로 구성됩니다.
서블릿 기반 웹 애플리케이션을 개발 중입니다.
com.h2database:h2 classpath에 있습니다.
com.h2database:h2
당신은 스프링 부트의 개발자 도구를 사용하고 있습니다arrow-up-right .
Spring의 개발자 도구를 사용하고 있지 않지만 여전히 H2의 콘솔을 사용하려는 경우 spring.h2.console.enabled속성을 true 값으로 구성 할 수 있습니다.
spring.h2.console.enabled
true
H2 콘솔은 개발 중에 만 사용하기 때문에 production에서spring.h2.console.enabled가 true로 설정되지 않도록주의해야합니다.
기본적으로 /h2-console에서 콘솔을 사용할 수 있습니다. spring.h2.console.path속성 을 사용하여 콘솔 경로를 사용자 정의 할 수 있습니다 .
/h2-console
spring.h2.console.path
Last updated 6 years ago
Was this helpful?