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
5e35a34c
Commit
5e35a34c
authored
Sep 15, 2017
by
Johnny Lim
Committed by
Stephane Nicoll
Sep 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
Closes gh-10308
parent
c536af0b
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
20 additions
and
20 deletions
+20
-20
CONTRIBUTING.adoc
CONTRIBUTING.adoc
+1
-1
README.adoc
README.adoc
+2
-2
AtlasPropertiesConfigAdapter.java
...re/metrics/export/atlas/AtlasPropertiesConfigAdapter.java
+2
-2
RestTemplateMetricsConfiguration.java
.../metrics/web/client/RestTemplateMetricsConfiguration.java
+2
-2
SpringIntegrationMetricsIntegrationTests.java
...integration/SpringIntegrationMetricsIntegrationTests.java
+7
-7
EnableAutoConfiguration.java
...framework/boot/autoconfigure/EnableAutoConfiguration.java
+1
-1
production-ready-features.adoc
...oot-docs/src/main/asciidoc/production-ready-features.adoc
+2
-2
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+1
-1
using-spring-boot.adoc
spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
+2
-2
No files found.
CONTRIBUTING.adoc
View file @
5e35a34c
...
...
@@ -105,7 +105,7 @@ some compilations for Spring Boot as we include a maven plugin and use it within
samples. The standard build works around this restriction by launching the samples via
the `maven-invoker-plugin` so that they are not part of the reactor. This works fine
most of the time, however, sometimes it's useful to run a build that includes all modules
(for example when using `maven-versions-plugin`. We use the full build on our CI servers
(for example when using `maven-versions-plugin`
)
. We use the full build on our CI servers
and during the release process.
Running a full build is a two phase process.
...
...
README.adoc
View file @
5e35a34c
...
...
@@ -166,7 +166,7 @@ these include:
* The `SpringApplication` class, providing static convenience methods that make it easy
to write a stand-alone Spring Application. Its sole job is to create and refresh an
appropriate Spring `ApplicationContext`
* Embedded web applications with a choice of container (Tomcat
or Jetty for n
ow)
* Embedded web applications with a choice of container (Tomcat
, Jetty or Undert
ow)
* First class externalized configuration support
* Convenience `ApplicationContext` initializers, including support for sensible logging
defaults
...
...
@@ -178,7 +178,7 @@ Spring Boot can configure large parts of common applications based on the conten
of their classpath. A single `@EnableAutoConfiguration` annotation triggers
auto-configuration of the Spring context.
Auto-configuration attempts to deduce which beans a user might need. For example,
I
f
Auto-configuration attempts to deduce which beans a user might need. For example,
i
f
`HSQLDB` is on the classpath, and the user has not configured any database connections,
then they probably want an in-memory database to be defined. Auto-configuration will
always back away as the user starts to define their own beans.
...
...
spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/atlas/AtlasPropertiesConfigAdapter.java
View file @
5e35a34c
...
...
@@ -31,10 +31,10 @@ import org.springframework.boot.actuate.autoconfigure.metrics.export.PropertiesC
class
AtlasPropertiesConfigAdapter
extends
PropertiesConfigAdapter
<
AtlasProperties
,
AtlasConfig
>
implements
AtlasConfig
{
private
static
final
AtlasConfig
DEFAU
TL
S
=
(
k
)
->
null
;
private
static
final
AtlasConfig
DEFAU
LT
S
=
(
k
)
->
null
;
AtlasPropertiesConfigAdapter
(
AtlasProperties
properties
)
{
super
(
properties
,
DEFAU
TL
S
);
super
(
properties
,
DEFAU
LT
S
);
}
@Override
...
...
spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/web/client/RestTemplateMetricsConfiguration.java
View file @
5e35a34c
...
...
@@ -85,12 +85,12 @@ public class RestTemplateMetricsConfiguration {
@Override
public
Object
postProcessAfterInitialization
(
Object
bean
,
String
beanName
)
{
if
(
bean
instanceof
RestTemplate
)
{
geCustomizer
().
customize
((
RestTemplate
)
bean
);
ge
t
Customizer
().
customize
((
RestTemplate
)
bean
);
}
return
bean
;
}
private
MetricsRestTemplateCustomizer
geCustomizer
()
{
private
MetricsRestTemplateCustomizer
ge
t
Customizer
()
{
if
(
this
.
customizer
==
null
)
{
this
.
customizer
=
this
.
applicationContext
.
getBean
(
MetricsRestTemplateCustomizer
.
class
);
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/integration/SpringIntegrationMetricsIntegrationTests.java
View file @
5e35a34c
...
...
@@ -56,7 +56,7 @@ public class SpringIntegrationMetricsIntegrationTests {
@Test
public
void
springIntegrationMetrics
()
{
this
.
converter
.
fahrenheitToCel
c
ius
(
68.0
);
this
.
converter
.
fahrenheitToCel
s
ius
(
68.0
);
assertThat
(
this
.
registry
.
find
(
"spring.integration.channel.sends"
)
.
tags
(
"channel"
,
"convert.input"
).
value
(
Statistic
.
Count
,
1
).
meter
())
.
isPresent
();
...
...
@@ -98,7 +98,7 @@ public class SpringIntegrationMetricsIntegrationTests {
return
(
f
)
->
f
.
transform
((
payload
)
->
"{\"fahrenheit\":"
+
payload
+
"}"
,
(
e
)
->
e
.
id
(
"toJson"
))
.
handle
(
String
.
class
,
this
::
fahrenheitToCel
c
ius
,
.
handle
(
String
.
class
,
this
::
fahrenheitToCel
s
ius
,
(
e
)
->
e
.
id
(
"temperatureConverter"
))
.
transform
(
this
::
extractResult
,
e
->
e
.
id
(
"toResponse"
));
}
...
...
@@ -106,19 +106,19 @@ public class SpringIntegrationMetricsIntegrationTests {
private
double
extractResult
(
String
json
)
{
try
{
return
(
double
)
new
ObjectMapper
().
readValue
(
json
,
Map
.
class
)
.
get
(
"cel
c
ius"
);
.
get
(
"cel
s
ius"
);
}
catch
(
IOException
ex
)
{
throw
new
RuntimeException
(
ex
);
}
}
private
String
fahrenheitToCel
c
ius
(
String
payload
,
Map
<
String
,
Object
>
headers
)
{
private
String
fahrenheitToCel
s
ius
(
String
payload
,
Map
<
String
,
Object
>
headers
)
{
try
{
double
fahrenheit
=
(
double
)
new
ObjectMapper
()
.
readValue
(
payload
,
Map
.
class
).
get
(
"fahrenheit"
);
double
cel
c
ius
=
(
fahrenheit
-
32
)
*
(
5.0
/
9.0
);
return
"{\"cel
cius\":"
+
celc
ius
+
"}"
;
double
cel
s
ius
=
(
fahrenheit
-
32
)
*
(
5.0
/
9.0
);
return
"{\"cel
sius\":"
+
cels
ius
+
"}"
;
}
catch
(
Exception
ex
)
{
throw
new
RuntimeException
(
ex
);
...
...
@@ -129,7 +129,7 @@ public class SpringIntegrationMetricsIntegrationTests {
public
interface
TempConverter
{
@Gateway
(
requestChannel
=
"convert.input"
)
double
fahrenheitToCel
cius
(
double
fahren
);
double
fahrenheitToCel
sius
(
double
fahrenheit
);
}
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/EnableAutoConfiguration.java
View file @
5e35a34c
...
...
@@ -36,7 +36,7 @@ import org.springframework.core.io.support.SpringFactoriesLoader;
/**
* Enable auto-configuration of the Spring Application Context, attempting to guess and
* configure beans that you are likely to need. Auto-configuration classes are usually
* applied based on your classpath and what beans you have defined. For example,
I
f you
* applied based on your classpath and what beans you have defined. For example,
i
f you
* have {@code tomcat-embedded.jar} on your classpath you are likely to want a
* {@link TomcatServletWebServerFactory} (unless you have defined your own
* {@link ServletWebServerFactory} bean).
...
...
spring-boot-docs/src/main/asciidoc/production-ready-features.adoc
View file @
5e35a34c
...
...
@@ -901,7 +901,7 @@ To customize the tags, provide a `@Bean` that implements `WebMvcTagsProvider`.
=== WebFlux metrics
Auto-configuration will enable the instrumentation of all requests handled by WebFlux
controllers. A helper class, `RouterFunctionMetrics`, is also provided that can be
used to instrument applications using WebFlux's funtional programming model.
used to instrument applications using WebFlux's fun
c
tional programming model.
Metrics will, by default, be generated with the name `http.server.requests`. The name
can be customized using the `spring.metrics.web.server.requests-metrics-name` property.
...
...
@@ -945,7 +945,7 @@ can be customized using the `spring.metrics.web.client.requests-metrics-name` pr
[[production-ready-metrics-rest-template-tags]]
==== RestTemplate metric tags
Metrics generated by an instrumeted `RestTemplate` will, by default, be tagged with
Metrics generated by an instrume
n
ted `RestTemplate` will, by default, be tagged with
the following:
- Request's method
...
...
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
5e35a34c
...
...
@@ -1350,7 +1350,7 @@ http://logging.apache.org/log4j/2.x/[Log4J2] and http://logback.qos.ch/[Logback]
case loggers are pre-configured to use console output with optional file output also
available.
By default,
I
f you use the '`Starters`', Logback will be used for logging. Appropriate
By default,
i
f you use the '`Starters`', Logback will be used for logging. Appropriate
Logback routing is also included to ensure that dependent libraries that use
Java Util Logging, Commons Logging, Log4J or SLF4J will all work correctly.
...
...
spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
View file @
5e35a34c
...
...
@@ -433,7 +433,7 @@ annotation to load XML configuration files.
[[using-boot-auto-configuration]]
== Auto-configuration
Spring Boot auto-configuration attempts to automatically configure your Spring
application based on the jar dependencies that you have added. For example,
I
f
application based on the jar dependencies that you have added. For example,
i
f
`HSQLDB` is on your classpath, and you have not manually configured any database
connection beans, then we will auto-configure an in-memory database.
...
...
@@ -579,7 +579,7 @@ One of the biggest advantages of packaging your application as jar and using an
HTTP server is that you can run your application as you would any other. Debugging Spring
Boot applications is also easy; you don't need any special IDE plugins or extensions.
NOTE: This section only covers jar based packaging,
I
f you choose to package your
NOTE: This section only covers jar based packaging,
i
f you choose to package your
application as a war file you should refer to your server and IDE documentation.
...
...
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