我有一个我想在docker容器中运行的H2数据库的Spring Boot 3项目,但不运行。 我使用这些命令:

问题描述 投票:0回答:0
application.yml:

spring: application: name: hope datasource: driver-class-name: org.h2.Driver username: sa password: jpa: database-platform: org.hibernate.dialect.H2Dialect hibernate: ddl-auto: update properties: jakarta.persistence.jdbc.url: jdbc:h2:mem:testdb hibernate.dialect: org.hibernate.dialect.H2Dialect h2: console: enabled: true path: /h2-console server: error: include-message: always include-binding-errors: always

抛出此例外:
Https://github.com/ocardenasmartinez1984/hope/blob/main/main/error.txt

这是一个存储库:

Https://github.com/ocardenasmartinez1984/hope

男人正在发生什么?

我克隆了您的github repository并将您的应用程序更改为最低,应用程序启动而无需警告/错误

spring: application: name: hope jpa: hibernate: ddl-auto: update h2: console: enabled: true

spring-boot docker h2
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.