Closed VPERepos closed 4 years ago
One has to add these lines to application.properties.
spring.datasource.url=jdbc:h2:mem:testdb spring.datasource.driverClassName=org.h2.Driver spring.datasource.username=sa spring.datasource.password=password spring.jpa.database-platform=org.hibernate.dialect.H2Dialect spring.h2.console.enabled=true
One has to add these lines to application.properties.
spring.datasource.url=jdbc:h2:mem:testdb spring.datasource.driverClassName=org.h2.Driver spring.datasource.username=sa spring.datasource.password=password spring.jpa.database-platform=org.hibernate.dialect.H2Dialect spring.h2.console.enabled=true
still not resolving the issue
That should be there in application.properties but most importantly you must have the following dependency in your build.gradle file:
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
While trying to log in under user:"sa" and password:"" I get an error message from h2-console:
Database "mem:testdb" not found, either pre-create it or allow remote database creation (not recommended in secure environments) [90149-200] 90149/90149
Is it necessary to make some steps, that are not mentioned in the book in order to create and access the testdb?
Thanks in advance for any hints!