SpringBoot整合Jpa启动出错

    xiaoxiao2022-07-12  115

    错误信息如下:

    If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.

    在pom中加入H2 Database依赖即可,如下:

    <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <scope>runtime</scope> </dependency>

    注意scope是runtime。

    最新回复(0)