mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-02-01 12:21:10 +00:00
SPR-6447
+ improve DataSource setup
This commit is contained in:
parent
19173a063e
commit
9617efef32
12 changed files with 30 additions and 417 deletions
15
src/main/resources/db/db_readme.txt
Normal file
15
src/main/resources/db/db_readme.txt
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
================================================================================
|
||||
=== Spring PetClinic sample application - Database Configuration ===
|
||||
================================================================================
|
||||
|
||||
@author Costin Leau
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
In its default configuration, Petclinic uses an in-memory database (HSQLDB) which
|
||||
gets populated at startup with data. Since there is no persistent support, once
|
||||
the application is destroyed, so is the database.
|
||||
If a persistent database configuration is chosen, make sure to change the datasource
|
||||
inside the relevant application-*.xml so that the schema and the data do not get
|
||||
inserted each time the application is started. Additionally, update the jdbc.properties
|
||||
file to reflect your change.
|
||||
Loading…
Add table
Add a link
Reference in a new issue