Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Error em rodar via java -jar

Estou com esse error

Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is org.h2.jdbc.JdbcSQLNonTransientConnectionException: A file path that is implicitly relative to the current working directory is not allowed in the database URL "jdbc:h2:men:forum". Use an absolute path, ~/name, ./name, or the baseDir setting instead. [90011-200]
        at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:82) ~[spring-jdbc-5.3.7.jar!/:5.3.7]
        at org.springframework.jdbc.datasource.init.DatabasePopulatorUtils.execute(DatabasePopulatorUtils.java:47) ~[spring-jdbc-5.3.7.jar!/:5.3.7]
        ... 34 common frames omitted
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: A file path that is implicitly relative to the current working directory is not allowed in the database URL "jdbc:h2:men:forum". Use an absolute path, ~/name, ./name, or the baseDir setting instead. [90011-200]
export FORUM_DATABASE_URL=jdbc:h2:men:forum
export FORUM_DATABASE_USERNAME=sa
export FORUM_DATABASE_PASSWORD=
export FORUM_JWT_SECRET=123456
2 respostas
solução!

deixando "jdbc:h2:mem:forum" (com M no mem ao invés de N) funciona?

Obrigado!