-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathapplication.yaml
67 lines (66 loc) · 1.56 KB
/
application.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
server:
shutdown: graceful
api:
path: /api/v1/items
management:
server:
port: 9001
endpoint:
health:
enabled: true
show-details: "ALWAYS"
endpoints:
web:
exposure:
include: "health"
springdoc:
swagger-ui:
csrf:
enabled: true
spring:
application:
name: springboot-items-api
data:
web:
pageable:
default-page-size: 10
one-indexed-parameters: false
max-page-size: 2000
datasource:
#------ Postgres ----
#url: jdbc:postgresql://${postgres_host}:${postgres_port}/${postgres_db}
#driver-class-name: org.postgresql.Driver
#username: ${postgres_username}
#password: ${postgres_password}
# ----- H2 ------
username: sa
password:
driver-class-name: org.h2.Driver
url: jdbc:h2:mem:testdb
# ----- MYSQL ---
#url: jdbc:mysql://localhost:3306/archetype
#driver-class-name: com.mysql.cj.jdbc.Driver
#username: ${mysql_username}
#password: ${mysql_password} # dummy password,
jpa:
hibernate:
ddl-auto: create
properties:
hibernate:
#dialect: org.hibernate.dialect.PostgreSQLDialect
dialect: org.hibernate.dialect.H2Dialect
#dialect: org.hibernate.dialect.MySQL5Dialect
sql:
init:
mode: always
platform: H2
#platform: postgres
#redis:
# host: localhost
# port: 6379
logging:
level:
root: INFO
org.springframework.security: INFO
org.springframework.web.filter.CommonsRequestLoggingFilter: DEBUG
com.github.michaelsteven.archetype.springboot.items: TRACE