Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro ao mapear o h2 no sistema

Está sendo exibido o erro abaixo ao levantar o sistema. A file path that is implicitly relative to the current working directory is not allowed in the database URL "jdbc:h2:men:D:desenvolvimentoProjetoorum-aluraalura-forum". Use an absolute path, ~/name, ./name, or the baseDir setting instead

Configuração feita.

#datasource spring.datasource.driverClassName=org.h2.Driver spring.datasource.url=jdbc:h2:men:alura-forum pring.datasource.username=sa pring.datasource.password=

jpa

spring.jpa.databse-plataform=org.hibernate.dialect.H2Dialect spring.jpa.hibernate.dll-auto=update

h2

spring.h2.console.enabled=true spring.h2.console.path=/h2-console

1 resposta
solução!

Oi Bruno,

Parece que a sua propriedade spring.datasource.url está incorreta.

Veja se assim funciona:

# datasource
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.url=jdbc:h2:mem:alura-forum
spring.datasource.username=sa
spring.datasource.password=

# jpa
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.jpa.hibernate.ddl-auto=update

# h2
spring.h2.console.enabled=true
spring.h2.console.path=/h2-console

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software