Рет қаралды 315
Spring Boot and H2 in memory database
This video Explain how to use H2 in memory database in spring boot application with example
SPRINGBOOT H2 DATABASE
SPRINGBOOT H2 | H2 DATABASE | SPRINGBOOT H2 DATABASE | H2 IN MEMORY DB | EMBEDDED H2 DB | OKAYJAVA
Application.properties
Persist data in file
Create a folder on c:// with name h2db
H2 will automatically create my_data_file
#spring.datasource.url=jdbc:h2:file:C:/h2db/my_data_file
spring.datasource.url = jdbc:h2:mem:h2db
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
Run data.sql and schema.sql on start
spring.sql.init.mode=always
spring.jpa.show-sql=true
enabled by default.
spring.jpa.open-in-view=false
Enable H2 Console - localhost:8090/h2-console
spring.h2.console.enabled=true
#inmemories
For Online Live Training Contact me directly on - 9310683500 (Available on What's App Also)
java Basic Java Tutorial for beginners
Basic Java Programming for beginners
#androjavatech4u
Spring Boot
What is Dependency Injection? | Why | Spring
Spring Boot Tutorial in Hindi | Spring boot tutorial for beginners | Spring boot framework tutorial | Rest API In Springboot (In Hindi)
Rest API Tutorial [Hindi] | What is an API? | Web Services v/s Restful API
Rest API (In Hindi)
java spring boot tutorial
spring boot tutorial for beginners
spring boot framework tutorial
spring boot project for beginners
java spring framework tutorial
java spring interview questions
spring boot interview questions and answers
springboot and microservices interview questions
java spring interview questions
java spring interview questions
#springboot
#java
#restapis
#restapi
#springboottutorial
#javaprogramming
#springcore
#springmvc
#springcore
#dependencyinjection
#dependency
#autowriting
#swagger
#swaggers
#beans
#validate
#springvalidation
Stay tuned with me for more upcoming Videos,
don't forget to subscribe my KZbin Channel and share your valuable comments in Comment section down below, i'll be happy t o help you all, your Surya ☺
Important Videos:
➡️ • Record Class In Java 1...
➡️ • Multi Threading Part-1...
➡️ • Multi Threading Part-1...
➡️ • #17 What is ORM , Hibe...
Important Playlist:
➡️ • #01 Java 8 Features in...
➡️ • #1 What is Software Te...
➡️ • Core Java Online Train...
➡️ • #1 Introduction to Spr...
➡️ • Design Patterns In Jav...
Connect on Socials (FOLLOW ME ON)
Facebook 👉 / androjavatech4u
Twitter 👉 / androjavatech4u
Google Plus 👉 plus.google.co...
LinkedIn: 👉 / androjavatech4u
Telegram 👉 telegram.me/An...
Whtats App 👉 whatsapp.com/c...