H2数据库arrow-up-right提供一个基于浏览器的控制台arrow-up-right,Spring Boot可以为你自动配置。如果以下条件满足,则控制台会被自动配置:
你正在开发一个web应用。
添加com.h2database:h2依赖。
com.h2database:h2
你正在使用Spring Boot开发者工具arrow-up-right。
注 如果你没有使用Spring Boot的开发者工具,仍想利用H2的控制台,可以设置spring.h2.console.enabled属性值为true。H2控制台应该只用于开发期间,所以确保生产环境没有设置spring.h2.console.enabled。
spring.h2.console.enabled
true
Last updated 7 years ago
Was this helpful?