-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathapplication.yaml
More file actions
49 lines (44 loc) · 1.54 KB
/
Copy pathapplication.yaml
File metadata and controls
49 lines (44 loc) · 1.54 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
49
# 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:voting
# tcp: jdbc:h2:tcp://localhost:9092/mem:voting
username: sa
password:
# Jackson Serialization Issue Resolver
jackson:
visibility:
field: any
getter: none
setter: none
is-getter: none
# 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=1,expireAfterAccess=60s
logging:
level:
root: WARN
ru.javaops.topjava2: DEBUG
org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver: DEBUG
server.servlet:
encoding:
charset: UTF-8 # Charset of HTTP requests and responses. Added to the "Content-Type" header if not set explicitly
enabled: true # Enable http encoding support
force: true
springdoc.swagger-ui.path: /