317 Commits

Author SHA1 Message Date
Stephane Nicoll
1dab83adaa Polish "Restore behavior of management.metrics.export.simple.enabled"
Closes gh-12106
2018-02-19 10:44:09 +01:00
Phillip Webb
1d83e87bcd Validate @ConfigurationProperties on @Bean methods
Refactor `ConfigurationPropertiesBindingPostProcessor` to allow JSR-303
validation on `@ConfigurationProperties` defined at the `@Bean` method
level.

JSR-303 validation is now applied when a JSR-303 implementation is
available and `@Validated` is present on either the configuration
properties class itself or the `@Bean` method that creates it.

Standard Spring validation is also supported using a validator bean
named `configurationPropertiesValidator`, or by having the configuration
properties implement `Validator`.

The commit also consolidates tests into a single location.

Fixes gh-10803
2018-02-16 18:11:54 -08:00
Phillip Webb
9e75680e6f Polish 2018-02-16 18:11:54 -08:00
Madhura Bhave
51de220b55 Enable CSRF protection by default
Fixes gh-11758
2018-02-16 13:31:51 -08:00
Andy Wilkinson
c1c162ab0c Polish "Add auto-configuraton for exporting metrics to Wavefront"
Closes gh-12068
2018-02-16 20:30:31 +00:00
Jon Schneider
142dbb2213 Add auto-configuration for exporting metrics to Wavefront
See gh-12068
2018-02-16 20:00:45 +00:00
Stephane Nicoll
e2cb5349ba Merge micrometer docs
Closes gh-11930
2018-02-16 13:53:53 +01:00
Andy Wilkinson
87953b32b1 Merge pull request #12073 from Sébastien Deleuze
* gh-12073:
  Polish "Add Kotlin support reference documentation"
  Add Kotlin support reference documentation
2018-02-15 15:56:46 +00:00
Andy Wilkinson
d96c570664 Polish "Add Kotlin support reference documentation"
Closes gh-12073
2018-02-15 15:55:48 +00:00
sdeleuze
889a06b65b Add Kotlin support reference documentation
See gh-12073
2018-02-15 15:55:42 +00:00
Brian Clozel
0c1aac14a0 Move server.display-name configuration property
The `server.display-name` configuration property is used to configure
the application display name for Servlet-based applications.

This commit moves that property to:
`server.servlet.application-display-name` and keeps the same defaults.

Closes gh-8624
2018-02-15 15:28:28 +01:00
Brian Clozel
1f8d489e5a Improve reference doc for WebTestClient
Closes gh-11203
2018-02-14 15:39:48 +01:00
Andy Wilkinson
a19b1946d3 Clarify that both Java 8 and 9 are supported
Closes gh-12027
2018-02-13 17:11:54 +00:00
Andy Wilkinson
25520a9e32 Polish “Auto-configure FileDescriptorMetrics”
Closes gh-12022
2018-02-13 16:40:18 +00:00
Stephane Nicoll
83e0978a03 Polish 2018-02-13 17:37:56 +01:00
Stephane Nicoll
b28cabdb12 Polish "Remove unnecessary config options for metrics"
Closes gh-12017"
2018-02-13 14:36:52 +01:00
Stephane Nicoll
28f5392787 Polish "Add health indicator for reactive MongoDB"
Closes gh-11997
2018-02-13 11:22:04 +01:00
Phillip Webb
3bec55e16c Formatting 2018-02-12 17:49:53 -08:00
Madhura Bhave
3880bdb908 Add example for customizing webflux security
Closes gh-11928
2018-02-12 16:26:30 -08:00
Phillip Webb
f34aa6f4d8 Migrate to Spring Integration Micrometer support
Remove custom `SpringIntegrationMetrics` and instead provide
auto-configuration to the direct Micrometer support added in Spring
Integration 5.0.2.

Closes gh-11985
2018-02-12 13:24:29 -08:00
Andy Wilkinson
384a4ed6a9 Use metrics export.*.enabled properties to control auto-configuration
Closes gh-11978
2018-02-12 20:18:11 +00:00
Phillip Webb
0348889fd7 Polish 2018-02-12 10:03:06 -08:00
Andy Wilkinson
e49d50fe9d Improve testing of metrics auto-configuration
Closes gh-11970
2018-02-12 17:05:05 +00:00
Johnny Lim
5a9865dabb Polish
Closes gh-12004
2018-02-12 17:10:43 +01:00
Brian Clozel
2be0c46562 Remove TestRestTemplate constructors taking template args
As discussed in gh-11872, `TestRestTemplate` constructor variants taking
a `RestTemplate` argument are confusing since the main goal of that
class is to mutate `RestTemplate`.

This commit removes all those constructor variants and replaces them
with `RestTemplateBuilder` arguments when possible.

Closes gh-11872
2018-02-12 16:57:15 +01:00
Stephane Nicoll
eec3eed5f5 Mention how to configure the web application type in tests
Closes gh-11025
2018-02-12 14:32:46 +01:00
Stephane Nicoll
51de8ae6be Polish doc
See gh-11803
2018-02-12 14:15:44 +01:00
Stephane Nicoll
ce36529ef8 Fix javadoc generation 2018-02-12 14:09:57 +01:00
Stephane Nicoll
7473642f58 Harmonize endpoints exclude property
Closes gh-11914
2018-02-12 14:00:40 +01:00
Madhura Bhave
f68f23bb52 Remove documentation that's no longer applicable 2018-02-09 10:53:53 -08:00
Stephane Nicoll
2c40383524 Polish 2018-02-09 16:22:13 +01:00
Phillip Webb
5de46c3186 Polish 2018-02-08 16:35:10 -08:00
Andy Wilkinson
7b32cf82df Exclude documentation examples from main API Javadoc 2018-02-08 16:50:37 +00:00
Stephane Nicoll
0f6a13c9b3 Warn users about the caching implications of @MockBean and @SpyBean
Closes gh-10182
2018-02-08 15:03:23 +01:00
Andy Wilkinson
4beb6be179 Rename HTTP trace properties and packages
Closes gh-11934
2018-02-08 13:08:27 +00:00
Stephane Nicoll
509b068338 Clarify logging level documentation
Closes gh-11949
2018-02-08 13:46:52 +01:00
Stephane Nicoll
7cd19822c6 Polish "Add Kafka health indicator"
Closes gh-11515
2018-02-08 11:58:42 +01:00
Andy Wilkinson
76a450dfba Format with Eclipse Oxygen SR2 2018-02-08 10:53:53 +00:00
Andy Wilkinson
9a456924e4 Remove - from path-match and content-negotiation properties
Closes gh-11913
2018-02-07 15:09:32 +00:00
Stephane Nicoll
63d2e944ba Polish "Add influx property to govern whether db is auto-created or not"
Closes gh-11922
2018-02-07 12:55:20 +01:00
Andy Wilkinson
43285fb77c Document that WRITE_DATES_AS_TIMESTAMPS is disabled by default
Closes gh-11898
2018-02-07 11:16:40 +00:00
Andy Wilkinson
04083e7571 Link to Gradle plugin docs rather than duplicating build info example
Closes gh-11933
2018-02-07 10:14:37 +00:00
Andy Wilkinson
8605499a64 Provide more control over when the health endpoint shows details
Closes gh-11869
2018-02-07 09:51:19 +00:00
Phillip Webb
d8de8752ea Change metrics exporters to auto-configurations
Refactor `*ExportConfiguration` classes to be regular auto-configuration
classes.

Also removed the `@ConditionalOnProperty` guards for `.enabled` properties
since auto-configuration can now be excluded in the usual way. Enabled
properties remain where applicable and are adapted for Micrometer to use
as it sees fit.

Fixes gh-11838
2018-02-06 17:42:14 -08:00
Phillip Webb
20ec7a6b52 Polish 2018-02-06 13:22:55 -08:00
Phillip Webb
6889ad59b8 Support property based MeterFilters
Add per-meter property support for `enabled`, `percentiles-histogram`,
`percentiles` and `sla`.

Fixes gh-11800
2018-02-06 13:21:27 -08:00
Andy Wilkinson
7d561f5ed0 Polish "Align with Micrometer's standardized cache metrics"
Closes gh-11918
2018-02-06 11:13:37 +00:00
Phillip Webb
eab0b84a80 Polish 'Add support for multi baseDn;
Update multi baseDn support to use the recently introduced
`@Delimter` annotation

Closes gh-11764
2018-02-04 10:43:26 -08:00
Eddú Meléndez
270dc2cd72 Add support for multi baseDn
Update LDAP properties and auto-configuration to support multiple
base DN values.

See gh-11764
2018-02-04 10:41:57 -08:00
Madhura Bhave
d0a2613241 Document CF actuator limitation if context-path changes
Closes gh-9081
2018-02-03 13:32:30 -08:00