mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-05-29 14:49:38 +00:00
41 lines
1.4 KiB
Properties
41 lines
1.4 KiB
Properties
# Properties file with JDBC and JPA settings.
|
|
#
|
|
# Applied by <context:property-placeholder location="jdbc.properties"/> from
|
|
# various application context XML files (e.g., "applicationContext-*.xml").
|
|
# Targeted at system administrators, to avoid touching the context XML files.
|
|
|
|
#-------------------------------------------------------------------------------
|
|
# HSQL Settings
|
|
|
|
jdbc.driverClassName=org.hsqldb.jdbcDriver
|
|
jdbc.url=jdbc:hsqldb:mem:petclinic
|
|
jdbc.username=sa
|
|
jdbc.password=
|
|
|
|
# Properties that control the population of schema and data for a new data source
|
|
jdbc.initLocation=classpath:db/hsqldb/initDB.sql
|
|
jdbc.dataLocation=classpath:db/hsqldb/populateDB.sql
|
|
|
|
# Property that determines which database to use with an AbstractJpaVendorAdapter
|
|
jpa.database=HSQL
|
|
|
|
jpa.showSql=true
|
|
|
|
#-------------------------------------------------------------------------------
|
|
# MySQL Settings
|
|
|
|
#jdbc.driverClassName=com.mysql.jdbc.Driver
|
|
#jdbc.url=jdbc:mysql://localhost:3306/petclinic
|
|
#jdbc.username=root
|
|
#jdbc.password=
|
|
|
|
# Properties that control the population of schema and data for a new data source
|
|
#jdbc.initLocation=classpath:db/mysql/initDB.txt
|
|
#jdbc.dataLocation=classpath:db/mysql/populateDB.txt
|
|
|
|
# Property that determines which Hibernate dialect to use
|
|
# (only applied with "applicationContext-hibernate.xml")
|
|
#hibernate.dialect=org.hibernate.dialect.MySQLDialect
|
|
|
|
# Property that determines which database to use with an AbstractJpaVendorAdapter
|
|
#jpa.database=MYSQL
|