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
3457cc4f
Commit
3457cc4f
authored
May 23, 2014
by
Eric Dahl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix multiple typos in documentation, as well as "thread.deamon" typo in actuator
parent
d20ed65c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
15 deletions
+15
-15
CrshAutoConfiguration.java
...ork/boot/actuate/autoconfigure/CrshAutoConfiguration.java
+1
-1
VanillaPublicMetrics.java
...framework/boot/actuate/endpoint/VanillaPublicMetrics.java
+1
-1
VanillaPublicMetricsTests.java
...work/boot/actuate/endpoint/VanillaPublicMetricsTests.java
+1
-1
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+1
-1
getting-started.adoc
spring-boot-docs/src/main/asciidoc/getting-started.adoc
+2
-2
howto.adoc
spring-boot-docs/src/main/asciidoc/howto.adoc
+2
-2
production-ready-features.adoc
...oot-docs/src/main/asciidoc/production-ready-features.adoc
+6
-6
spring-boot-cli.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc
+1
-1
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/CrshAutoConfiguration.java
View file @
3457cc4f
...
@@ -79,7 +79,7 @@ import org.springframework.util.StringUtils;
...
@@ -79,7 +79,7 @@ import org.springframework.util.StringUtils;
/**
/**
* {@link EnableAutoConfiguration Auto-configuration} for embedding an extensible shell
* {@link EnableAutoConfiguration Auto-configuration} for embedding an extensible shell
* into a Spring Boot enabled application. By default a SSH daemon is started on port
* into a Spring Boot enabled application. By default a SSH daemon is started on port
* 2000. If the CRaSH Telnet plugin is available on the classpath, Telnet d
ea
mon will be
* 2000. If the CRaSH Telnet plugin is available on the classpath, Telnet d
ae
mon will be
* launched on port 5000.
* launched on port 5000.
*
*
* <p>
* <p>
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/VanillaPublicMetrics.java
View file @
3457cc4f
...
@@ -96,7 +96,7 @@ public class VanillaPublicMetrics implements PublicMetrics {
...
@@ -96,7 +96,7 @@ public class VanillaPublicMetrics implements PublicMetrics {
ThreadMXBean
threadMxBean
=
ManagementFactory
.
getThreadMXBean
();
ThreadMXBean
threadMxBean
=
ManagementFactory
.
getThreadMXBean
();
result
.
add
(
new
Metric
<
Long
>(
"threads.peak"
,
new
Long
(
threadMxBean
result
.
add
(
new
Metric
<
Long
>(
"threads.peak"
,
new
Long
(
threadMxBean
.
getPeakThreadCount
())));
.
getPeakThreadCount
())));
result
.
add
(
new
Metric
<
Long
>(
"threads.d
ea
mon"
,
new
Long
(
threadMxBean
result
.
add
(
new
Metric
<
Long
>(
"threads.d
ae
mon"
,
new
Long
(
threadMxBean
.
getDaemonThreadCount
())));
.
getDaemonThreadCount
())));
result
.
add
(
new
Metric
<
Long
>(
"threads"
,
new
Long
(
threadMxBean
.
getThreadCount
())));
result
.
add
(
new
Metric
<
Long
>(
"threads"
,
new
Long
(
threadMxBean
.
getThreadCount
())));
}
}
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/VanillaPublicMetricsTests.java
View file @
3457cc4f
...
@@ -70,7 +70,7 @@ public class VanillaPublicMetricsTests {
...
@@ -70,7 +70,7 @@ public class VanillaPublicMetricsTests {
assertTrue
(
results
.
containsKey
(
"heap"
));
assertTrue
(
results
.
containsKey
(
"heap"
));
assertTrue
(
results
.
containsKey
(
"threads.peak"
));
assertTrue
(
results
.
containsKey
(
"threads.peak"
));
assertTrue
(
results
.
containsKey
(
"threads.d
ea
mon"
));
assertTrue
(
results
.
containsKey
(
"threads.d
ae
mon"
));
assertTrue
(
results
.
containsKey
(
"threads"
));
assertTrue
(
results
.
containsKey
(
"threads"
));
assertTrue
(
results
.
containsKey
(
"classes.loaded"
));
assertTrue
(
results
.
containsKey
(
"classes.loaded"
));
...
...
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
3457cc4f
...
@@ -155,7 +155,7 @@ content into your application; rather pick only the properties that you need.
...
@@ -155,7 +155,7 @@ content into your application; rather pick only the properties that you need.
# DATASOURCE ({sc-spring-boot-autoconfigure}/jdbc/DataSourceAutoConfiguration.{sc-ext}[DataSourceAutoConfiguration] & {sc-spring-boot-autoconfigure}//jdbc/AbstractDataSourceConfiguration.{sc-ext}[AbstractDataSourceConfiguration])
# DATASOURCE ({sc-spring-boot-autoconfigure}/jdbc/DataSourceAutoConfiguration.{sc-ext}[DataSourceAutoConfiguration] & {sc-spring-boot-autoconfigure}//jdbc/AbstractDataSourceConfiguration.{sc-ext}[AbstractDataSourceConfiguration])
spring.datasource.name= # name of the data source
spring.datasource.name= # name of the data source
spring.datasource.intialize=true # populate using data.sql
spring.datasource.in
i
tialize=true # populate using data.sql
spring.datasource.schema= # a schema resource reference
spring.datasource.schema= # a schema resource reference
spring.datasource.platform= # the platform to use in the schema resource (schema-${platform}.sql)
spring.datasource.platform= # the platform to use in the schema resource (schema-${platform}.sql)
spring.datasource.continueOnError=false # continue even if can't be initialized
spring.datasource.continueOnError=false # continue even if can't be initialized
...
...
spring-boot-docs/src/main/asciidoc/getting-started.adoc
View file @
3457cc4f
...
@@ -120,7 +120,7 @@ Here is a typical `pom.xml` file:
...
@@ -120,7 +120,7 @@ Here is a typical `pom.xml` file:
</build>
</build>
ifeval::["{spring-boot-repo}" != "release"]
ifeval::["{spring-boot-repo}" != "release"]
<!-- Add Spring repo
is
tories -->
<!-- Add Spring repo
si
tories -->
<!-- (you don't need this if you are using a .RELEASE version) -->
<!-- (you don't need this if you are using a .RELEASE version) -->
<repositories>
<repositories>
<repository>
<repository>
...
@@ -487,7 +487,7 @@ currently have.
...
@@ -487,7 +487,7 @@ currently have.
The `mvn dependency:tree` command prints tree representation of your project dependencies.
The `mvn dependency:tree` command prints tree representation of your project dependencies.
You can see that `spring-boot-starter-parent` provides no
You can see that `spring-boot-starter-parent` provides no
dependenciesby itself. Let's edit our `pom.xml` and add the `spring-boot-starter-web` dependency
dependencies
by itself. Let's edit our `pom.xml` and add the `spring-boot-starter-web` dependency
just below the `parent` section:
just below the `parent` section:
[source,xml,indent=0,subs="verbatim,quotes,attributes"]
[source,xml,indent=0,subs="verbatim,quotes,attributes"]
...
...
spring-boot-docs/src/main/asciidoc/howto.adoc
View file @
3457cc4f
...
@@ -1283,7 +1283,7 @@ you encounter a server error (machine clients consuming JSON and other media typ
...
@@ -1283,7 +1283,7 @@ you encounter a server error (machine clients consuming JSON and other media typ
see a sensible response with the right error code). To switch it off you can set
see a sensible response with the right error code). To switch it off you can set
`error.whitelabel.enabled=false`, but normally in addition or alternatively to that you
`error.whitelabel.enabled=false`, but normally in addition or alternatively to that you
will want to add your own error page replacing the whitelabel one. Exactly how you do this
will want to add your own error page replacing the whitelabel one. Exactly how you do this
depend
n
s on the templating technology that you are using. For example, if you are using
depends on the templating technology that you are using. For example, if you are using
Thymeleaf you would add an `error.html` template and if you are using FreeMarker you would
Thymeleaf you would add an `error.html` template and if you are using FreeMarker you would
add an `error.ftl` template. In general what you need is a `View` that resolves with a name
add an `error.ftl` template. In general what you need is a `View` that resolves with a name
of `error`, and/or a `@Controller` that handles the `/error` path. Unless you replaced some
of `error`, and/or a `@Controller` that handles the `/error` path. Unless you replaced some
...
@@ -1453,7 +1453,7 @@ you would add the following:
...
@@ -1453,7 +1453,7 @@ you would add the following:
----
----
WARNING: Each Spring Boot release is designed and tested against a specific set of
WARNING: Each Spring Boot release is designed and tested against a specific set of
third-party dependencies. Overriding versions may cause compatibilty issues.
third-party dependencies. Overriding versions may cause compatibil
i
ty issues.
...
...
spring-boot-docs/src/main/asciidoc/production-ready-features.adoc
View file @
3457cc4f
...
@@ -178,7 +178,7 @@ interface needs to be provided or the default implementation has to be configure
...
@@ -178,7 +178,7 @@ interface needs to be provided or the default implementation has to be configure
Assuming a new `Status` with code `FATAL` is being used in one of your `HealthIndicator`
Assuming a new `Status` with code `FATAL` is being used in one of your `HealthIndicator`
implementations. To configure the severity or order add the following to your application properties:
implementations. To configure the severity or order add the following to your application properties:
`healt
.status.order: FATAL, DOWN, UNK
OWN, UP`.
`healt
h.status.order: FATAL, DOWN, UNKN
OWN, UP`.
...
@@ -289,7 +289,7 @@ in your `application.properties`:
...
@@ -289,7 +289,7 @@ in your `application.properties`:
=== Customizing the management server context path
=== Customizing the management server context path
Sometimes it is useful to group all management endpoints under a single path. For example,
Sometimes it is useful to group all management endpoints under a single path. For example,
your application might already use `/info` for another purpose. You can use the
your application might already use `/info` for another purpose. You can use the
`management.contextPath` property to set a prefix for your mana
n
gement endpoint:
`management.contextPath` property to set a prefix for your management endpoint:
[source,properties,indent=0]
[source,properties,indent=0]
----
----
...
@@ -605,7 +605,7 @@ decrement). Metrics for all HTTP requests are automatically recorded, so if you
...
@@ -605,7 +605,7 @@ decrement). Metrics for all HTTP requests are automatically recorded, so if you
"mem.free": 933858,
"mem.free": 933858,
"processors": 8,
"processors": 8,
"threads": 15,
"threads": 15,
"threads.d
ea
mon": 11,
"threads.d
ae
mon": 11,
"threads.peak": 15,
"threads.peak": 15,
"uptime": 494836
"uptime": 494836
}
}
...
@@ -668,15 +668,15 @@ http://matt.aimonetti.net/posts/2013/06/26/practical-guide-to-graphite-monitorin
...
@@ -668,15 +668,15 @@ http://matt.aimonetti.net/posts/2013/06/26/practical-guide-to-graphite-monitorin
Metric
service
implementations
are
usually
bound
to
a
Metric
service
implementations
are
usually
bound
to
a
{
sc
-
spring
-
boot
-
actuator
}/
metrics
/
repository
/
MetricRepository
.{
sc
-
ext
}[`
MetricRepository
`].
{
sc
-
spring
-
boot
-
actuator
}/
metrics
/
repository
/
MetricRepository
.{
sc
-
ext
}[`
MetricRepository
`].
A
`
MetricRepository
`
is
responsible
for
storing
and
retrieving
metric
information
.
Spring
A
`
MetricRepository
`
is
responsible
for
storing
and
retrieving
metric
information
.
Spring
Boot
provides
an
`
InMemoryMetricRe
s
pository
`
and
a
`
RedisMetricRepository
`
out
of
the
Boot
provides
an
`
InMemoryMetricRepository
`
and
a
`
RedisMetricRepository
`
out
of
the
box
(
the
in
-
memory
repository
is
the
default
)
but
you
can
also
write
your
own
.
The
box
(
the
in
-
memory
repository
is
the
default
)
but
you
can
also
write
your
own
.
The
`
MetricRepository
`
interface
is
actually
composed
of
higher
level
`
MetricReader
`
and
`
MetricRepository
`
interface
is
actually
composed
of
higher
level
`
MetricReader
`
and
`
MetricWriter
`
interfaces
.
For
full
details
refer
to
the
`
MetricWriter
`
interfaces
.
For
full
details
refer
to
the
{
dc
-
spring
-
boot
-
actuator
}/
metrics
/
repository
/
MetricRepository
.{
dc
-
ext
}[
Javadoc
].
{
dc
-
spring
-
boot
-
actuator
}/
metrics
/
repository
/
MetricRepository
.{
dc
-
ext
}[
Javadoc
].
There
's nothing to stop you hooking a `MetricRepository` with back-end storage directly
There
's nothing to stop you hooking a `MetricRepository` with back-end storage directly
into your app, but we recommend using the default `InMemoryMetricRe
spository`
into your app, but we recommend using the default `InMemoryMetricRe
pository`
(possibly with a custom `Map` instance if you are worried about heap usage) and
(possibly with a custom `Map` instance if you are worried about heap usage) and
populating a back-end repository through a scheduled export job. In that way you get
populating a back-end repository through a scheduled export job. In that way you get
some buffering in memory of the metric values and you can reduce the network
some buffering in memory of the metric values and you can reduce the network
chatter by exporting less frequently or in batches. Spring Boot provides
chatter by exporting less frequently or in batches. Spring Boot provides
...
...
spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc
View file @
3457cc4f
...
@@ -193,7 +193,7 @@ your application to see what fails before adding imports.
...
@@ -193,7 +193,7 @@ your application to see what fails before adding imports.
[[cli-automatic-main-method]]
[[cli-automatic-main-method]]
==== Automatic main method
==== Automatic main method
Unlike the equi
lvem
ent Java application, you do not need to include a
Unlike the equi
val
ent Java application, you do not need to include a
`public static void main(String[] args)` method with your `Groovy` scripts. A
`public static void main(String[] args)` method with your `Groovy` scripts. A
`SpringApplication` is automatically created, with your compiled code acting as the
`SpringApplication` is automatically created, with your compiled code acting as the
`source`.
`source`.
...
...
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