-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathapplication.yaml
More file actions
48 lines (45 loc) · 1.62 KB
/
application.yaml
File metadata and controls
48 lines (45 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
spring:
jpa:
show-sql: true
open-in-view: false
# https://stackoverflow.com/a/67678945/548473
defer-datasource-initialization: true
hibernate:
ddl-auto: create
properties:
# http://docs.jboss.org/hibernate/orm/5.3/userguide/html_single/Hibernate_User_Guide.html#configurations
hibernate:
format_sql: true
default_batch_fetch_size: 20
# https://stackoverflow.com/questions/21257819/what-is-the-difference-between-hibernate-jdbc-fetch-size-and-hibernate-jdbc-batc
jdbc.batch_size: 20
datasource:
# ImMemory
url: jdbc:h2:mem:bootjava
# tcp: jdbc:h2:tcp://localhost:9092/mem:bootjava
# Absolute path
# url: jdbc:h2:C:/projects/bootjava/db/bootjava
# tcp: jdbc:h2:tcp://localhost:9092/C:/projects/bootjava/db/bootjava
# Relative path form current dir
# url: jdbc:h2:./db/bootjava
# Relative path from home
# url: jdbc:h2:~/bootjava
# tcp: jdbc:h2:tcp://localhost:9092/~/bootjava
username: sa
password:
# https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html#common-application-properties-cache
cache:
cache-names: users
caffeine.spec: maximumSize=5000,expireAfterAccess=60s
servlet:
encoding:
charset: UTF-8
enabled: true
force: true
logging:
level:
root: WARN
ru.javaops.bootjava: DEBUG
org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver: DEBUG
springdoc.swagger-ui.path: /