Skip to content

Commit 53bd562

Browse files
author
Phillip Webb
committed
Add sample yml to docs
1 parent d0494f5 commit 53bd562

File tree

1 file changed

+100
-0
lines changed

1 file changed

+100
-0
lines changed

docs/application.yml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Core
2+
3+
spring:
4+
# The name of the application
5+
application.name: myapp
6+
7+
# The name of the main config file, default is application
8+
config.name: application
9+
10+
# Profiles that should be active
11+
profiles.active:
12+
13+
# Configuration for SpringApplication setters
14+
main:
15+
web-environment: true
16+
show-banner:false
17+
log-startup-info: false
18+
# ...
19+
20+
21+
# Server settings (ServerProperties)
22+
server:
23+
port: 8080
24+
address: 127.0.0.1
25+
sessionTimeout: 30
26+
contextPath: /root
27+
28+
# Tomcat specifics
29+
tomcat:
30+
accessLogEnabled: false
31+
protocolHeader: x-forwarded-proto
32+
remoteIpHeader: x-forwarded-for
33+
basedir:
34+
backgroundProcessorDelay: 30 # secs
35+
36+
37+
---
38+
# Auto-Configure
39+
40+
spring:
41+
messages:
42+
basename: messages
43+
44+
batch:
45+
schema: classpath:org/springframework/batch/core/schema-@@platform@@.sql
46+
47+
database:
48+
schema: classpath*:schema-<platform>.sql
49+
platform: all
50+
51+
datasource:
52+
driverClassName
53+
url:
54+
username: sa
55+
password
56+
max-active: 8
57+
max-idle: 8
58+
test-on-borrow
59+
test-on-return
60+
validation-query
61+
62+
63+
jpa:
64+
open-in-view:
65+
show-sql:
66+
database-platform:
67+
generate-ddl:
68+
properties:
69+
hibernate:
70+
naming-strategy:
71+
cache-provider:
72+
ddl-auto:
73+
74+
75+
thymeleaf
76+
prefix: classpath:/templates/
77+
suffix: .html
78+
mode: HTML5
79+
cache: true
80+
81+
82+
83+
# actuator
84+
85+
endpoints:
86+
beans:
87+
path: /beans
88+
sensitive: false
89+
dump:
90+
env
91+
health
92+
info
93+
metrics
94+
shutdown
95+
trace
96+
97+
management:
98+
port
99+
100+
security:

0 commit comments

Comments
 (0)