Commit Graph

13297 Commits

Author SHA1 Message Date
Phillip Webb
e59d70ea03 Change micrometer properties to use adapters
Update configuration property classes used with micrometer so that
they no longer directly implement `Config` interfaces. Properties
are now adapted to Config implementations independently.

See gh-9970
2017-09-14 22:16:07 -07:00
Phillip Webb
86926bf0e5 Upgrade to Micrometer 1.0.0-rc.1
Closes gh-10300
2017-09-14 22:16:07 -07:00
Phillip Webb
324a00fd6d Polish 2017-09-14 18:33:03 -07:00
Phillip Webb
796d400318 Use correct percentilesTime call
Update `MetricsClientHttpRequestInterceptor` to use `percentilesTime`
rather than `percentiles`.

See gh-9970
2017-09-14 16:11:19 -07:00
Phillip Webb
0e32c0a7bc Fix speed regression in property binding
Update `MapBinder` to only compute values if an entry does not already
exist. Prior to this commit, a binding to `Map<String,List<String>>`
would be expensive since the same entries would be bound many times.

For example, given:

	foo.bar[0]=baz1
	foo.bar[1]=baz1
	foo.bar[2]=baz1

The Map binder would iterate over the properties `bar[0]`, `bar[1]` and
`bar[2]`. Each of these properties resulted in the same actual key of
`bar` which would then be bound to list multiple times.

Fixes gh-10093
2017-09-14 16:03:57 -07:00
Phillip Webb
402dcb7ea4 Polish 2017-09-14 15:24:14 -07:00
Phillip Webb
21b645fba8 Add missing ObjectProvider for missing beans
Update `MetricsAutoConfiguration` to use an `ObjectProvider` to guard
against missing beans.

See gh-9970
2017-09-14 14:53:59 -07:00
Andy Wilkinson
ddca0b7422 Add dependencies required for javadoc generation
See gh-9970
2017-09-14 19:10:49 +01:00
Andy Wilkinson
3942ba2e68 Consistently use the spring.metrics configuration property prefix
See gh-9970
2017-09-14 18:44:00 +01:00
Stephane Nicoll
5efcbad751 Polish 2017-09-14 19:22:37 +02:00
Stephane Nicoll
ddde3c5695 Add error metadata for the Micrometer migration
See gh-9970
2017-09-14 19:19:36 +02:00
Andrew Potter
7c260733a2 Add GraphiQL to starter name.
https://github.com/graphql-java/graphql-spring-boot has a starter for both GraphQL and GraphiQL.
2017-09-14 19:06:10 +02:00
Andy Wilkinson
962b3df9c6 Add and polish package-info.java for actuator
Closes gh-10298
2017-09-14 17:44:37 +01:00
Jon Schneider
c2958c27ab Replace Boot's own metrics with support for Micrometer
Closes gh-9970
2017-09-14 17:15:46 +01:00
Stephane Nicoll
306c8d0ae2 Upgrade to Spring Integration 5.0.0.M7
Closes gh-10122
2017-09-14 17:54:04 +02:00
Stephane Nicoll
287d77235a Fix broken links
Closes gh-10294
2017-09-14 17:47:47 +02:00
Stephane Nicoll
e05e04014b Move security.* to spring.security.*
This commit also removes `security.basic.enabled` as this property is
no longer required.

Closes gh-10296
2017-09-14 17:33:37 +02:00
Stephane Nicoll
033939e3c0 Add error metadata for Security-related keys 2017-09-14 15:47:20 +02:00
Stephane Nicoll
7266c2d009 Merge pull request #10282 from izeye:polish-20170913
* pr/10282:
  Polish
2017-09-14 15:14:27 +02:00
Johnny Lim
bd2d08bcd0 Polish
Closes gh-10282
2017-09-14 15:13:51 +02:00
Stephane Nicoll
d89f3f9f2a Remove useless ConfigurationProperties on HeapDumpEndpoint
Closes gh-10263
2017-09-14 15:11:01 +02:00
Stephane Nicoll
5e7dbe8f4a Move configuration of LogFileWebEndpoint
See gh-10263
2017-09-14 15:11:01 +02:00
Stephane Nicoll
d7f3008122 Move configuration of EnvironmentEndpoint
See gh-10263
2017-09-14 15:11:01 +02:00
Stephane Nicoll
bb622292ba Move configuration of ConfigurationPropertiesReportEndpoint
See gh-10263
2017-09-14 15:11:01 +02:00
Stephane Nicoll
0d62b0cb3c Move configuration of TraceEndpoint
See gh-10263
2017-09-14 15:11:01 +02:00
Andy Wilkinson
9234801c0a Merge branch '1.5.x' 2017-09-14 13:34:13 +01:00
Andy Wilkinson
4bdef4d0f9 Use Spring milestone and snapshot repos for plugins in full profile 2017-09-14 13:34:02 +01:00
Stephane Nicoll
8010f6ef00 Rationalize JUnit5 dependency management
This commit only provides dependency management for JUnit Jupiter,
excluding experimental and migration support artifacts. It also removes
dependency management for the platform as it is used by IDEs and build
tools). The `junit-platform.version` is still available though to allow
users to configure their plugin with a supported placeholder for the
version.

Also, given that `junit-vintage-engine`'s version does not match the
JUnit 4 version it supports, we will not add dependency management for
it.

Closes gh-10240
2017-09-14 11:47:36 +02:00
Brian Clozel
485d0ed8be Polish
Release allocated `DataBuffer` if an error happens during template
processing. Otherwise, this buffer will be automatically released when
written to the exchange.
2017-09-14 10:06:34 +02:00
Andy Wilkinson
8533c3d5ca Upgrade to Spring Security 5.0.0.M4
Closes gh-10126
2017-09-14 06:38:51 +01:00
Andy Wilkinson
736a209e78 Upgrade to Spring Session 2.0.0.M4
Closes gh-10125
2017-09-14 06:38:51 +01:00
Brian Clozel
9dd3fb70e2 Remove Servlet-specific static locations
This commit removes the Servlet root context from the default values for
the `spring.resources.static-locations` configuration property. Servlet
and non-Servlet applications are sharing this property.

The Servlet root context is automatically configured as a resource
location for Spring MVC based applications.

Closes gh-9240
2017-09-13 15:31:05 +02:00
Stephane Nicoll
eb4a9d87fd Add actuator to jersey sample
Closes gh-10259
2017-09-13 12:46:43 +02:00
Stephane Nicoll
b5d8e072f1 Add actuator to webflux sample
Closes gh-10258
2017-09-13 12:11:20 +02:00
Stephane Nicoll
73f4a2e130 Remove unnecessary override 2017-09-13 12:03:10 +02:00
Stephane Nicoll
a825e9f493 Polish 2017-09-13 12:00:43 +02:00
Stephane Nicoll
82fd18cee3 Polish 2017-09-13 11:34:59 +02:00
Stephane Nicoll
4670cc7795 Relax use of spring.session.store-type
This commit makes the "spring.session.store-type" property optional,
adding an additional check when it is not present that validates only
one supported implementation is available on the classpath.

As Spring Session has been modularized, the chance that multiple
implementations are available on the classpath are lower. When only
one implementation is present, we attempt to auto-configure it. When
more than one implementation is present and no session store is
configured, a NonUniqueSessionRepositoryException is thrown.

Closes gh-9863
2017-09-13 11:20:34 +02:00
Stephane Nicoll
de47827eb4 Merge pull request #10276 from izeye:java-8
* pr/10276:
  Use Java 8 Javadoc URL
2017-09-13 09:00:28 +02:00
Johnny Lim
d12a86bcab Use Java 8 Javadoc URL
Closes gh-10276
2017-09-13 09:00:11 +02:00
Brian Clozel
4568333e39 Merge branch '1.5.x' 2017-09-12 14:29:36 +02:00
Brian Clozel
1669e4bad3 Fixup version numbers following release 2017-09-12 14:28:47 +02:00
Spring Buildmaster
30eb937a83 Next Development Version 2017-09-12 10:54:22 +00:00
Stephane Nicoll
40e6f004da Enable info and status endpoints by default
Closes gh-10161
2017-09-12 12:51:26 +02:00
Stephane Nicoll
222ed44bd4 Replace enabledByDefault to DefaultEnablement
This commit introduces a DefaultEnablement enum that replaces the
"enabledByDefault" boolean flag of Endpoint. This allows to better
control what indicates the default enablement of an endpoint.

With DefaultEnablement#ENABLED, the endpoint is enabled unless an
endpoint specific property says otherwise. With DefaultEnabled#DISABLED,
the endpoint is disabled unless an endpoint specific property says
otherwise. DefaultEnablement#NEUTRAL provides a dedicated option to
indicate that we should resort to the default settings in absence of
a specific property.

See gh-10161
2017-09-12 12:23:04 +02:00
Stephane Nicoll
6cd624ba39 Restore processing of Endpoint meta-data 2017-09-12 12:07:09 +02:00
Andy Wilkinson
6671a19cef Rework Lettuce configuration to use new client pooling config API
Closes gh-9538
2017-09-12 11:00:23 +01:00
Andy Wilkinson
02bc73b8e1 Polish 2017-09-12 10:23:39 +01:00
Andy Wilkinson
3882552b43 Polish 2017-09-12 10:22:35 +01:00
Andy Wilkinson
449515cecd Merge branch '1.5.x' 2017-09-12 10:09:10 +01:00