Spring boot中配置H2 database

必须配置datasource才可以看到自己建的表

spring.datasource.url=jdbc:h2:file:~/test
spring.datasource.username=sa
spring.datasource.password=
spring.datasource.driver-class-name=org.h2.Driver

猜你喜欢

转载自gwj41.iteye.com/blog/2376279