Configure JdbcTemplate with h2 database - Part 2 | Jdbc Template | Spring Boot

preview_player
Показать описание
Enable H2 Console
-------------------------------------
H2 database has an embedded GUI console for browsing the contents of a database and running SQL queries. By default, the H2 console is not enabled in Spring.

Set datasource URL:
-------------------------------------
By design, every time we start the application, H2 uses a different data source Url as the in-memory database is volatile & doesn't store the database.
If you want to use the same data source URL every time h2 database is initialized, we have to add the following property

Use File-based storage:
-------------------------------------

Рекомендации по теме