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
e2a8fc46
Commit
e2a8fc46
authored
Oct 28, 2015
by
Johnny Lim
Committed by
Stephane Nicoll
Oct 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish docs
Closes gh-4328
parent
1ef68ef2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+1
-1
production-ready-features.adoc
...oot-docs/src/main/asciidoc/production-ready-features.adoc
+1
-1
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+13
-13
No files found.
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
e2a8fc46
...
@@ -143,7 +143,7 @@ content into your application; rather pick only the properties that you need.
...
@@ -143,7 +143,7 @@ content into your application; rather pick only the properties that you need.
# ERROR HANDLING ({sc-spring-boot-autoconfigure}/web/ErrorProperties.{sc-ext}[ErrorProperties])
# ERROR HANDLING ({sc-spring-boot-autoconfigure}/web/ErrorProperties.{sc-ext}[ErrorProperties])
server.error.path=/error # the error path
server.error.path=/error # the error path
server.error.include-stacktrace=never # when to include a stacktrace attribute (never/alway/on-trace-param)
server.error.include-stacktrace=never # when to include a stacktrace attribute (never/alway
s
/on-trace-param)
server.error.whitelabel.enabled=true # enable the default error page displayed in browsers in case of a server error
server.error.whitelabel.enabled=true # enable the default error page displayed in browsers in case of a server error
# SPRING MVC ({sc-spring-boot-autoconfigure}/web/WebMvcProperties.{sc-ext}[WebMvcProperties])
# SPRING MVC ({sc-spring-boot-autoconfigure}/web/WebMvcProperties.{sc-ext}[WebMvcProperties])
...
...
spring-boot-docs/src/main/asciidoc/production-ready-features.adoc
View file @
e2a8fc46
...
@@ -1164,7 +1164,7 @@ structure you need on the server. By default it just passes through the metric n
...
@@ -1164,7 +1164,7 @@ structure you need on the server. By default it just passes through the metric n
Open TSDB metric name, and adds the tags "`domain`" (with value
Open TSDB metric name, and adds the tags "`domain`" (with value
"`org.springframework.metrics`") and "`process`" (with the value equal to the object hash
"`org.springframework.metrics`") and "`process`" (with the value equal to the object hash
of the naming strategy). Thus, after running the application and generating some metrics
of the naming strategy). Thus, after running the application and generating some metrics
you can inspect the metrics in the T
DB
UI (http://localhost:4242 by default).
you can inspect the metrics in the T
SD
UI (http://localhost:4242 by default).
Example:
Example:
...
...
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
e2a8fc46
...
@@ -372,7 +372,7 @@ them using `SpringApplication.setAddCommandLineProperties(false)`.
...
@@ -372,7 +372,7 @@ them using `SpringApplication.setAddCommandLineProperties(false)`.
`SpringApplication` will load properties from `application.properties` files in the
`SpringApplication` will load properties from `application.properties` files in the
following locations and add them to the Spring `Environment`:
following locations and add them to the Spring `Environment`:
. A `/config` subdir of the current directory.
. A `/config` subdir
ectory
of the current directory.
. The current directory
. The current directory
. A classpath `/config` package
. A classpath `/config` package
. The classpath root
. The classpath root
...
@@ -605,7 +605,7 @@ case that you need to load values that way, you need to use a properties file.
...
@@ -605,7 +605,7 @@ case that you need to load values that way, you need to use a properties file.
[[boot-features-external-config-typesafe-configuration-properties]]
[[boot-features-external-config-typesafe-configuration-properties]]
=== Typesafe Configuration Properties
=== Type
-
safe Configuration Properties
Using the `@Value("${property}")` annotation to inject configuration properties can
Using the `@Value("${property}")` annotation to inject configuration properties can
sometimes be cumbersome, especially if you are working with multiple properties or
sometimes be cumbersome, especially if you are working with multiple properties or
your data is hierarchical in nature. Spring Boot provides an alternative method
your data is hierarchical in nature. Spring Boot provides an alternative method
...
@@ -1187,7 +1187,7 @@ attribute if you need to store the property somewhere other than in `local` scop
...
@@ -1187,7 +1187,7 @@ attribute if you need to store the property somewhere other than in `local` scop
[source,xml,indent=0]
[source,xml,indent=0]
----
----
<springProperty scope="context" name="fluentHost" source="myapp.f
ul
entd.host"/>
<springProperty scope="context" name="fluentHost" source="myapp.f
lu
entd.host"/>
<appender name="FLUENT" class="ch.qos.logback.more.appenders.DataFluentAppender">
<appender name="FLUENT" class="ch.qos.logback.more.appenders.DataFluentAppender">
<remoteHost>${fluentHost}</remoteHost>
<remoteHost>${fluentHost}</remoteHost>
...
...
...
@@ -1598,7 +1598,7 @@ method:
...
@@ -1598,7 +1598,7 @@ method:
[[boot-features-jersey]]
[[boot-features-jersey]]
=== JAX-RS and Jersey
=== JAX-RS and Jersey
If you prefer the JAX-RS programming model for REST endpoints you can use one of the
If you prefer the JAX-RS programming model for REST endpoints you can use one of the
available implementations instead of Spring MVC. Jersey 1.x and Apache C
eltix
work quite
available implementations instead of Spring MVC. Jersey 1.x and Apache C
XF
work quite
well out of the box if you just register their `Servlet` or `Filter` as a `@Bean` in your
well out of the box if you just register their `Servlet` or `Filter` as a `@Bean` in your
application context. Jersey 2.x has some native Spring support so we also provide
application context. Jersey 2.x has some native Spring support so we also provide
auto-configuration support for it in Spring Boot together with a starter.
auto-configuration support for it in Spring Boot together with a starter.
...
@@ -1735,7 +1735,7 @@ class for a complete list.
...
@@ -1735,7 +1735,7 @@ class for a complete list.
[[boot-features-programmatic-embedded-container-customization]]
[[boot-features-programmatic-embedded-container-customization]]
===== Programmatic customization
===== Programmatic customization
If you need to configure your emb
d
edded servlet container programmatically you can
If you need to configure your embedded servlet container programmatically you can
register a Spring bean that implements the `EmbeddedServletContainerCustomizer` interface.
register a Spring bean that implements the `EmbeddedServletContainerCustomizer` interface.
`EmbeddedServletContainerCustomizer` provides access to the
`EmbeddedServletContainerCustomizer` provides access to the
`ConfigurableEmbeddedServletContainer` which includes numerous customization setter
`ConfigurableEmbeddedServletContainer` which includes numerous customization setter
...
@@ -1840,7 +1840,7 @@ The basic features you get out of the box in a web application are:
...
@@ -1840,7 +1840,7 @@ The basic features you get out of the box in a web application are:
* An `AuthenticationManager` bean with in-memory store and a single user (see
* An `AuthenticationManager` bean with in-memory store and a single user (see
`SecurityProperties.User` for the properties of the user).
`SecurityProperties.User` for the properties of the user).
* Ignored (
u
nsecure) paths for common static resource locations (`+/css/**+`, `+/js/**+`,
* Ignored (
i
nsecure) paths for common static resource locations (`+/css/**+`, `+/js/**+`,
`+/images/**+` and `+**/favicon.ico+`).
`+/images/**+` and `+**/favicon.ico+`).
* HTTP Basic security for all other endpoints.
* HTTP Basic security for all other endpoints.
* Security events published to Spring's `ApplicationEventPublisher` (successful and
* Security events published to Spring's `ApplicationEventPublisher` (successful and
...
@@ -1849,7 +1849,7 @@ The basic features you get out of the box in a web application are:
...
@@ -1849,7 +1849,7 @@ The basic features you get out of the box in a web application are:
on by default.
on by default.
All of the above can be switched on and off or modified using external properties
All of the above can be switched on and off or modified using external properties
(`+security.*+`). To override the access rules without changing any other autoconfigured
(`+security.*+`). To override the access rules without changing any other auto
-
configured
features add a `@Bean` of type `WebSecurityConfigurerAdapter` with
features add a `@Bean` of type `WebSecurityConfigurerAdapter` with
`@Order(SecurityProperties.ACCESS_OVERRIDE_ORDER)`.
`@Order(SecurityProperties.ACCESS_OVERRIDE_ORDER)`.
...
@@ -1891,7 +1891,7 @@ yourself just add a `@Bean` of type `AuthorizationServerConfigurer`.
...
@@ -1891,7 +1891,7 @@ yourself just add a `@Bean` of type `AuthorizationServerConfigurer`.
To use the access token you need a Resource Server (which can be the same as the
To use the access token you need a Resource Server (which can be the same as the
Authorization Server). Creating a Resource Server is easy, just add
Authorization Server). Creating a Resource Server is easy, just add
`@EnableResourceServer` and provide some configuration to allow the server to decode
`@EnableResourceServer` and provide some configuration to allow the server to decode
access tokens. If your app
p
lication is also an Authorization Server it already knows how
access tokens. If your application is also an Authorization Server it already knows how
to decode tokens, so there is nothing else to do. If your app is a standalone service then you
to decode tokens, so there is nothing else to do. If your app is a standalone service then you
need to give it some more configuration, one of the following options:
need to give it some more configuration, one of the following options:
...
@@ -2068,7 +2068,7 @@ to the home page at "/" and keep the default for everything else:
...
@@ -2068,7 +2068,7 @@ to the home page at "/" and keep the default for everything else:
=== Actuator Security
=== Actuator Security
If the Actuator is also in use, you will find:
If the Actuator is also in use, you will find:
* The management endpoints are secure even if the application endpoints are
u
nsecure.
* The management endpoints are secure even if the application endpoints are
i
nsecure.
* Security events are transformed into `AuditEvents` and published to the `AuditService`.
* Security events are transformed into `AuditEvents` and published to the `AuditService`.
* The default user will have the `ADMIN` role as well as the `USER` role.
* The default user will have the `ADMIN` role as well as the `USER` role.
...
@@ -2431,7 +2431,7 @@ commercial and open source editions can be used with Spring Boot.
...
@@ -2431,7 +2431,7 @@ commercial and open source editions can be used with Spring Boot.
=== Code Generation
=== Code Generation
In oder to use jOOQ type-safe queries, you need to generate Java classes from your
In o
r
der to use jOOQ type-safe queries, you need to generate Java classes from your
database schema. You can follow the instructions in the
database schema. You can follow the instructions in the
http://www.jooq.org/doc/3.6/manual-single-page/#jooq-in-7-steps-step3[jOOQ user manual].
http://www.jooq.org/doc/3.6/manual-single-page/#jooq-in-7-steps-step3[jOOQ user manual].
If you are using the `jooq-codegen-maven` plugin (and you also use the
If you are using the `jooq-codegen-maven` plugin (and you also use the
...
@@ -2749,7 +2749,7 @@ Mongo instance's configuration and logging routing.
...
@@ -2749,7 +2749,7 @@ Mongo instance's configuration and logging routing.
=== Gemfire
=== Gemfire
https://github.com/spring-projects/spring-data-gemfire[Spring Data Gemfire] provides
https://github.com/spring-projects/spring-data-gemfire[Spring Data Gemfire] provides
convenient Spring-friendly tools for accessing the
convenient Spring-friendly tools for accessing the
http://
www.gopivotal.com
/big-data/pivotal-gemfire#details[Pivotal Gemfire] data management
http://
pivotal.io
/big-data/pivotal-gemfire#details[Pivotal Gemfire] data management
platform. There is a `spring-boot-starter-data-gemfire` '`Starter POM`' for collecting the
platform. There is a `spring-boot-starter-data-gemfire` '`Starter POM`' for collecting the
dependencies in a convenient way. There is currently no auto-configuration support for
dependencies in a convenient way. There is currently no auto-configuration support for
Gemfire, but you can enable Spring Data Repositories with a
Gemfire, but you can enable Spring Data Repositories with a
...
@@ -4021,7 +4021,7 @@ initialized.
...
@@ -4021,7 +4021,7 @@ initialized.
TIP: You should mark the dependencies to the library as optional so that you can include
TIP: You should mark the dependencies to the library as optional so that you can include
the autoconfigure module in your projects more easily. If you do it that way, the library
the autoconfigure module in your projects more easily. If you do it that way, the library
won't be provided and Spring Boot will backoff by default.
won't be provided and Spring Boot will back
off by default.
...
@@ -4056,7 +4056,7 @@ be easily accessed via the `spring-boot-starter-websocket` module.
...
@@ -4056,7 +4056,7 @@ be easily accessed via the `spring-boot-starter-websocket` module.
If you want to learn more about any of the classes discussed in this section you can
If you want to learn more about any of the classes discussed in this section you can
check out the {dc-root}[Spring Boot API documentation] or you can browse the
check out the {dc-root}[Spring Boot API documentation] or you can browse the
{github-code}[source code directly]. If you have specific questions, take a look at the
{github-code}[source code directly]. If you have specific questions, take a look at the
<<howto.aoc#howto, how-to>> section.
<<howto.a
d
oc#howto, how-to>> section.
If you are comfortable with Spring Boot's core features, you can carry on and read
If you are comfortable with Spring Boot's core features, you can carry on and read
about <<production-ready-features.adoc#production-ready, production-ready features>>.
about <<production-ready-features.adoc#production-ready, production-ready features>>.
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