29.4 使用H2的web控制台
- 你正在开发一个web应用。
- 添加
com.h2database:h2
依赖。
注 如果你没有使用Spring Boot的开发者工具,仍想利用H2的控制台,可以设置
spring.h2.console.enabled
属性值为true
。H2控制台应该只用于开发期间,所以确保生产环境没有设置spring.h2.console.enabled
。最近更新 4yr ago