From f8f36ead428f638b589a932c9f5d35a5123e4283 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 22 Aug 2013 02:13:06 -0700 Subject: [PATCH] Add sample yml to docs --- docs/application.yml | 100 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 docs/application.yml diff --git a/docs/application.yml b/docs/application.yml new file mode 100644 index 00000000000..ad21b17a9a7 --- /dev/null +++ b/docs/application.yml @@ -0,0 +1,100 @@ +# Core + +spring: + # The name of the application + application.name: myapp + + # The name of the main config file, default is application + config.name: application + + # Profiles that should be active + profiles.active: + + # Configuration for SpringApplication setters + main: + web-environment: true + show-banner:false + log-startup-info: false + # ... + + +# Server settings (ServerProperties) +server: + port: 8080 + address: 127.0.0.1 + sessionTimeout: 30 + contextPath: /root + + # Tomcat specifics + tomcat: + accessLogEnabled: false + protocolHeader: x-forwarded-proto + remoteIpHeader: x-forwarded-for + basedir: + backgroundProcessorDelay: 30 # secs + + +--- +# Auto-Configure + +spring: + messages: + basename: messages + + batch: + schema: classpath:org/springframework/batch/core/schema-@@platform@@.sql + + database: + schema: classpath*:schema-.sql + platform: all + + datasource: + driverClassName + url: + username: sa + password + max-active: 8 + max-idle: 8 + test-on-borrow + test-on-return + validation-query + + + jpa: + open-in-view: + show-sql: + database-platform: + generate-ddl: + properties: + hibernate: + naming-strategy: + cache-provider: + ddl-auto: + + + thymeleaf + prefix: classpath:/templates/ + suffix: .html + mode: HTML5 + cache: true + + + +# actuator + +endpoints: + beans: + path: /beans + sensitive: false + dump: + env + health + info + metrics + shutdown + trace + +management: + port + +security: