pom.xml:
春季版:
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.0.RELEASE</version>
H2版本:
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
现在:
spring.h2.console.enabled=true.
仍然,我遇到错误。
java -jar h2-1.4.199.jar
或只是重新启动系统等。但是没有任何帮助。我只需更改下面给出的依赖关系,然后按ctrl+1
。 忽略警告。然后我在浏览器中签到即http://localhost:8080/h2-console
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.4.190</version><!--$NO-MVN-MAN-VER$-->
</dependency>