2016-06-27 12:35:37 +08:00
|
|
|
# database init, supports mysql too
|
2020-03-20 18:24:24 +01:00
|
|
|
database=h2
|
2022-05-19 14:07:16 +00:00
|
|
|
spring.sql.init.schema-locations=classpath*:db/${database}/schema.sql
|
|
|
|
|
spring.sql.init.data-locations=classpath*:db/${database}/data.sql
|
2016-06-17 18:38:24 +02:00
|
|
|
|
2016-06-27 12:35:37 +08:00
|
|
|
# Web
|
2016-11-10 16:51:14 +00:00
|
|
|
spring.thymeleaf.mode=HTML
|
2016-06-17 18:38:24 +02:00
|
|
|
|
|
|
|
|
# JPA
|
2016-06-27 12:35:37 +08:00
|
|
|
spring.jpa.hibernate.ddl-auto=none
|
2024-09-24 16:21:15 +02:00
|
|
|
spring.jpa.open-in-view=false
|
2016-06-17 18:38:24 +02:00
|
|
|
|
|
|
|
|
# Internationalization
|
2016-06-27 12:35:37 +08:00
|
|
|
spring.messages.basename=messages/messages
|
2016-06-17 18:38:24 +02:00
|
|
|
|
2020-05-02 08:02:49 +02:00
|
|
|
# Actuator
|
2018-02-22 10:57:12 +01:00
|
|
|
management.endpoints.web.exposure.include=*
|
2016-06-17 18:38:24 +02:00
|
|
|
|
|
|
|
|
# Logging
|
|
|
|
|
logging.level.org.springframework=INFO
|
2016-12-05 12:04:53 +00:00
|
|
|
# logging.level.org.springframework.web=DEBUG
|
|
|
|
|
# logging.level.org.springframework.context.annotation=TRACE
|
2018-07-10 08:32:03 +02:00
|
|
|
|
2018-07-10 09:10:03 +02:00
|
|
|
# Maximum time static resources should be cached
|
2022-05-19 14:08:07 +00:00
|
|
|
spring.web.resources.cache.cachecontrol.max-age=12h
|