Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 4118

Can not connect to h2-database in spring boot

$
0
0

I am writing a REST API in spring boot and I can not connect to h2 in spring boot. This error is showing when I test the connection. Please help. Thank you in advance.enter image description here

Here is my application.properties file.

spring.application.name=demoserver.port=8081# H2 Database Configurationspring.datasource.url=jdbc:h2:mem:testdbspring.datasource.driverClassName=org.h2.Driverspring.datasource.username=saspring.datasource.password=spring.datasource.platform=h2# Hibernate Configurationspring.jpa.database-platform=org.hibernate.dialect.H2Dialectspring.jpa.hibernate.ddl-auto=updatespring.jpa.show-sql=true# H2 Console Configurationspring.h2.console.enabled=truespring.h2.console.path=/h2-console

I tried creating a directory called test in C:\Users\zoho but it did not work. what should I do?


Viewing all articles
Browse latest Browse all 4118

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>