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
bed545df
Commit
bed545df
authored
Jan 20, 2017
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.4.x' into 1.5.x
parents
079bbfb7
93bc34c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
production-ready-features.adoc
...oot-docs/src/main/asciidoc/production-ready-features.adoc
+4
-0
SpringApplication.java
...main/java/org/springframework/boot/SpringApplication.java
+4
-3
No files found.
spring-boot-docs/src/main/asciidoc/production-ready-features.adoc
View file @
bed545df
...
...
@@ -1220,6 +1220,10 @@ metric updates every 5 seconds (configured via `spring.metrics.export.delay-mill
In
addition
,
any
`
MetricReader
`
that
you
define
and
mark
as
`@
ExportMetricReader
`
will
have
its
values
exported
by
the
default
exporter
.
NOTE
:
This
feature
is
enabling
scheduling
in
your
application
(`@
EnableScheduling
`)
which
can
be
a
problem
if
you
run
an
integration
tests
as
your
own
scheduled
tasks
will
start
.
You
can
disable
this
behaviour
by
setting
`
spring
.
metrics
.
export
.
enabled
`
to
`
false
`.
The
default
exporter
is
a
`
MetricCopyExporter
`
which
tries
to
optimize
itself
by
not
copying
values
that
haven
't changed since it was last called (the optimization can be
switched off using a flag `spring.metrics.export.send-latest`). Note also that the
...
...
spring-boot/src/main/java/org/springframework/boot/SpringApplication.java
View file @
bed545df
...
...
@@ -96,10 +96,11 @@ import org.springframework.web.context.support.StandardServletEnvironment;
* @EnableAutoConfiguration
* public class MyApplication {
*
* // ... Bean definitions
*
// ... Bean definitions
*
* public static void main(String[] args) throws Exception {
* SpringApplication.run(MyApplication.class, args);
* public static void main(String[] args) throws Exception {
* SpringApplication.run(MyApplication.class, args);
* }
* }
* </pre>
*
...
...
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