mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-10 12:01:11 +00:00
35 lines
1 KiB
Properties
35 lines
1 KiB
Properties
# database init, supports mysql too
|
|
database=mysql
|
|
spring.sql.init.schema-locations=classpath*:db/${database}/schema.sql
|
|
spring.sql.init.data-locations=classpath*:db/${database}/data.sql
|
|
|
|
|
|
# Data Source properties
|
|
spring.datasource.url=jdbc:mysql://localhost:3306/petclinic
|
|
spring.datasource.username=petclinic
|
|
spring.datasource.password=petclinic
|
|
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
|
|
|
# Logging level for Hibernate SQL
|
|
logging.level.org.hibernate.SQL=DEBUG
|
|
# Web
|
|
spring.thymeleaf.mode=HTML
|
|
|
|
# JPA
|
|
spring.jpa.hibernate.ddl-auto=update
|
|
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
|
|
spring.jpa.open-in-view=false
|
|
|
|
# Internationalization
|
|
spring.messages.basename=messages/messages
|
|
|
|
# Actuator
|
|
management.endpoints.web.exposure.include=*
|
|
|
|
# Logging
|
|
logging.level.org.springframework=INFO
|
|
# logging.level.org.springframework.web=DEBUG
|
|
# logging.level.org.springframework.context.annotation=TRACE
|
|
|
|
# Maximum time static resources should be cached
|
|
spring.web.resources.cache.cachecontrol.max-age=12h
|