简体   繁体   中英

No able to login in h2-console using inline memory database

I am getting localhost not able to connect after trying to connect through inline db,i am passing correct username password.It was working fine before.Someone else faced this issue?

enter image description here

Try with the following configurations in the properties file.

spring.datasource.url=jdbc:h2:mem:home
spring.h2.console.enabled=true
server.port=8082

Check the application startup logs for h2 enable by spring.h2.console.enabled

eg: H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:home' H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:home'

Open the url: http://localhost:8082/h2-console

Verify the jdbc url, and correct it to as per mentioned in properties file and displayed in logs.

jdbc:h2:mem:home

Test connection.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM