解决H2 database error: Database may be already in use: “Locked by another process“

以server模式而不是embedded起动

#spring.datasource.url=jdbc:h2:~/test
spring.datasource.url=jdbc:h2:tcp://localhost/~/test

你可能感兴趣的:(数据库,软件配置,h2,H2)