Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
a9737c01
Commit
a9737c01
authored
Jul 15, 2015
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Review doc
Replace server.tomcat.compression example as Boot does no longer define that property
parent
f75333dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
25 deletions
+29
-25
appendix-configuration-metadata.adoc
...cs/src/main/asciidoc/appendix-configuration-metadata.adoc
+29
-25
No files found.
spring-boot-docs/src/main/asciidoc/appendix-configuration-metadata.adoc
View file @
a9737c01
...
...
@@ -29,10 +29,10 @@ categorized under "hints":
"sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties"
},
{
"name": "s
erver.tomcat
",
"type": "org.springframework.boot.autoconfigure.
web.ServerProperties$Tomcat
",
"sourceType": "org.springframework.boot.autoconfigure.
web.Server
Properties",
"sourceMethod": "get
Tomcat
()"
"name": "s
pring.jpa.hibernate
",
"type": "org.springframework.boot.autoconfigure.
orm.jpa.JpaProperties$Hibernate
",
"sourceType": "org.springframework.boot.autoconfigure.
orm.jpa.Jpa
Properties",
"sourceMethod": "get
Hibernate
()"
}
...
],"properties": [
...
...
@@ -47,34 +47,36 @@ categorized under "hints":
"sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties",
"defaultValue": "/"
},
{
"name": "server.tomcat.compression",
"type": "java.lang.String",
"description": "Controls response compression.",
"sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties$Tomcat",
"defaultValue": "off"
}
{
"name": "spring.jpa.hibernate.ddl-auto",
"type": "java.lang.String",
"description": "DDL mode. This is actually a shortcut for the \"hibernate.hbm2ddl.auto\" property.",
"sourceType": "org.springframework.boot.autoconfigure.orm.jpa.JpaProperties$Hibernate"
}
...
],"hints": [
{
"name": "s
erver.tomcat.compression
",
"name": "s
pring.jpa.hibernate.ddl-auto
",
"values": [
{
"value": "
off
",
"description": "Disable
compression
."
"value": "
none
",
"description": "Disable
DDL handling
."
},
{
"value": "
on
",
"description": "
Enable compression of responses over 2048 byt
e."
"value": "
validate
",
"description": "
Validate the schema, make no changes to the databas
e."
},
{
"value": "
forc
e",
"description": "
Enable compression of all responses
."
"value": "
updat
e",
"description": "
Update the schema if necessary
."
},
],
"providers": [
{
"name": "any"
"value": "create",
"description": "Create the schema and destroy previous data."
},
{
"value": "create-drop",
"description": "Create and then destroy the schema at the end of the session."
}
]
}
...
...
@@ -99,8 +101,9 @@ NOTE: It is not required that every "`property`" has a "`group`", some propertie
just exist in their own right.
Finally, "`hints`" are additional information used to assist the user in configuring a
given property. When configuring the `server.tomcat.compression` property, a tool can
use it to offer some auto-completion help for the `off`, `on` and `force` values.
given property. When configuring the `spring.jpa.hibernate.ddl-auto` property, a tool can
use it to offer some auto-completion help for the `none`, `validate`, `update`, `create`
and `create-drop` values.
...
...
@@ -309,8 +312,9 @@ property, you can provide additional meta-data that:
==== Value hint
The `name` attribute of each hint refers to the `name` of a property. In the initial
example above, we provide 3 values for the `server.tomcat.compression` property: `on`,
`off` and `force`.
example above, we provide 5 values for the `spring.jpa.hibernate.ddl-auto` property:
`none`, `validate`, `update`, `create` and `create-drop`. Each value may have a
description as well.
If your property is of type `Map`, you can provide hints for both the keys and the
values (but not for the map itself). The special `.keys` and `.values` suffixes must
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment