Commit Graph

13187 Commits

Author SHA1 Message Date
Andy Wilkinson beb257f452 Rework JettyEmbeddedErrorHandler to support Jetty 8
Closes gh-10175
2017-09-06 09:51:22 +01:00
Stephane Nicoll c2dd51792b Merge pull request #10170 from MarcGiffing:reference-bucket4j-starter
* pr/10170:
  Add reference to Bucket4j starter
2017-09-06 10:42:08 +02:00
MarcGiffing 78b55bbbc4 Add reference to Bucket4j starter
Closes gh-10170
2017-09-06 10:41:50 +02:00
Andy Wilkinson 90573193c0 Merge branch '1.5.x' 2017-09-05 16:44:50 +01:00
Andy Wilkinson 301eedfbe6 Upgrade to Tomcat 8.5.20
Closes gh-10114
2017-09-05 16:32:56 +01:00
Andy Wilkinson 45e74543d2 Merge branch '1.5.x' 2017-09-05 13:47:50 +01:00
Andy Wilkinson 92faf85dd5 Start building against Spring Data Ingalls snapshots for SR7
See gh-10165
2017-09-05 12:54:07 +01:00
Andy Wilkinson f1c5fc41b4 Polish 2017-09-05 12:52:38 +01:00
Andy Wilkinson ad4ce9cf57 Return objects from trace, audit event, and thread dump endpoints
Closes gh-7648
2017-09-05 12:13:25 +01:00
Andy Wilkinson a6b30a3aab Reflect context hierarchy in beans endpoint’s response structure
Closes gh-10156
2017-09-05 12:13:25 +01:00
Andy Wilkinson ab54801143 Improve structure of response from configprops endpoint
Closes gh-10162
2017-09-05 12:13:25 +01:00
Brian Clozel 27c1b5eb4c Add "onClass" condition on web server auto-configurations
This commit adds new Conditional annotations on auto-configurations
creating the Servlet/Reactive web servers. These conditions only depend
on request primitives used by the servers themselves and aren't
framework specific.

Closes gh-10163
2017-09-05 11:51:11 +02:00
Stephane Nicoll 5111b03aa3 Remove duplicated method
This commit removes the beanNamesForAnnotationIncludingAncestors
method as it is now part of Spring Framework's BeanFactoryUtils.

Closes gh-10150
2017-09-05 09:51:33 +02:00
Stephane Nicoll 2d79d63a9d Resume building against Spring Framework 5 snapshots
See gh-10123
Closes gh-9949
2017-09-05 09:48:17 +02:00
Stephane Nicoll 0e21af4082 Fix typo 2017-09-05 09:10:52 +02:00
Stephane Nicoll 67fc5ca433 Create a public API to bind a ConfigurationProperties object
Previously, the API used to bind a ConfigurationProperties annotated
object was private to the BeanPostProcessor implementation.

This commit moves most of the logic to ConfigurationPropertiesBinder. As
we want this object to have the same state regardless of how it is built,
a builder is now provided that detects the components that the binder
needs if not specified explicitly.

Closes gh-8344
2017-09-05 08:51:01 +02:00
Andy Wilkinson 9242def4c0 Improve structure and JSON serialization of beans endpoint's response
Closes gh-10156
2017-09-04 14:40:15 +01:00
Andy Wilkinson 9ffbfb0d80 Ensure that endpoints are created before their web extensions
Closes gh-10140
2017-09-04 11:01:52 +01:00
Stephane Nicoll ab82aed96a Improve configuration properties binding test coverage
See gh-8344
2017-09-04 12:01:07 +02:00
Stephane Nicoll ab43237c90 Polish 2017-09-04 10:08:00 +02:00
Stephane Nicoll 96399395ae Polish liquibase doc
Closes gh-10139
2017-09-04 10:05:27 +02:00
Stephane Nicoll 37d92807d6 Polish test
See gh-10139
2017-09-04 10:01:14 +02:00
Stephane Nicoll 35f457caf9 Merge pull request #10154 from izeye:kotlin-runtime
* pr/10154:
  Upgrade to kotlin-runtime 1.1.4-3
2017-09-04 08:53:44 +02:00
Johnny Lim 7227051712 Upgrade to kotlin-runtime 1.1.4-3
Closes gh-10154
2017-09-04 08:53:13 +02:00
Stephane Nicoll 6975e1b783 Merge pull request #10153 from mp911de:close-redis-connection
* pr/10153:
  Close reactive Redis connection after health check
2017-09-04 08:48:03 +02:00
Mark Paluch 0e2f7c57ee Close reactive Redis connection after health check
Closes gh-10153
2017-09-04 08:44:21 +02:00
Stephane Nicoll 11edff7576 Discover endpoints in parent context
Closes gh-10144
2017-09-01 16:45:52 +02:00
Stephane Nicoll a274c78fa0 Add support for reactive health indicator
This commit introduces a "ReactiveHealthIndicator" contract that can be
implemented for health checks against a reactive API.

When running in a WebFlux-based web app, the health and status endpoints
transparently use this in a WebFlux-based application and regular
HealthIndicator are executed on the elastic scheduler.

When running in a Servlet-based web app, the endpoints includes and
adapts available ReactiveHealthIndicators automatically

Closes gh-7972
2017-09-01 15:18:48 +02:00
Andy Wilkinson 8df852bf71 Change default order of AutoConfigureOrder to 0
Previously, AutoConfigureOrder defaulted to Ordered.LOWEST_PRECEDENCE.
This made is impossible for an individual auto-configuration to
indicate that it wanted to go "last", i.e. after any
auto-configuration classes that didn't not specify an order, or
specified an order other than LOWEST_PRECEDENCE.

This commit changes to default to 0, allowing a single
 auto-configuration to easily indicate that it should go last.

 Closes gh-10142
2017-09-01 13:24:58 +01:00
Andy Wilkinson f49741e3ed Allow an operation to specify the media types that it produces
Closes gh-10118
2017-08-31 13:56:15 +01:00
Phillip Webb 80f023f996 Polish 2017-08-30 15:48:18 -07:00
Phillip Webb 9cb0a81e50 Polish adapt to and from Mono conversion
See gh-10112
2017-08-30 15:38:05 -07:00
Andy Wilkinson 7fc12bc8a3 Polish 2017-08-30 17:34:07 +01:00
Stephane Nicoll afda0ec129 Default Hibernate DDL auto to none with Flyway/Liquibase
This commit adds a strategy interface to specific if a given DataSource
has its schema managed. The Hibernate auto-configuration uses it to set
it to "none" if a mechanism to initialize the DataSource is
found and "create-drop" otherwise.

Both Flyway and Liquibase implements that strategy interface and
register it in the context accordingly.

Closes gh-9262
2017-08-30 12:42:24 +02:00
Andy Wilkinson 8babd5d4c5 Adapt to and from Mono when calling an operation on an endpoint
This commit adds support for adapting to and from Mono when calling
an operation on an endpoint.

When an endpoint is exposed using WebFlux, a call to a blocking
operation is adapted to return a Mono by dispatching the operation
invocation on a separate thread using Reactor's elastic scheduler.

When an endpoint is exposed using Jersey, a call to an endpoint that
returns a Mono is adapted to return the Mono's result by blocking
until it is available. Note that such adaptation is not necessary when
using Spring MVC as it supports Mono natively.

Closes gh-10112
2017-08-30 10:53:07 +01:00
Stephane Nicoll 75edca6e55 Merge pull request #10109 from izeye:polish-20170830
* pr/10109:
  Polish "Polish"
  Polish
2017-08-30 10:42:08 +02:00
Stephane Nicoll b91ceef621 Polish "Polish"
Closes gh-10109
2017-08-30 10:41:51 +02:00
Johnny Lim db76112700 Polish
See gh-10109
2017-08-30 10:33:53 +02:00
Phillip Webb 2c97d3a5e9 Polish 2017-08-29 15:59:32 -07:00
Madhura Bhave b02edd2e81 Merge branch '1.5.x' 2017-08-29 13:04:26 -07:00
Madhura Bhave 64ffcfc83f Document JWK property
Closes gh-10022
2017-08-29 12:51:14 -07:00
Stephane Nicoll 441dd2bc16 Move endpoints.trace.filter to management.trace.filter
Closes gh-10007
2017-08-29 17:09:19 +02:00
Stephane Nicoll 54781c73b5 Move endpoints.metrics.filter to management.metrics.filter
See gh-10007
2017-08-29 17:04:59 +02:00
Stephane Nicoll 4c7088981f Add support for delete operations
This commit adds a `@DeleteOperation` annotation that can be used to
indicate that an endpoint's operation is meant to delete a resource.

Such operation is mapped to a DELETE http method.

Closes gh-10023
2017-08-29 16:45:50 +02:00
Stephane Nicoll 26b93e9454 Polish
See gh-10084
2017-08-29 14:03:50 +02:00
Stephane Nicoll 1897d76cda Merge branch '1.5.x' 2017-08-29 14:00:23 +02:00
Stephane Nicoll 8d7d044bef Merge pull request #10084 from pvorb:fix-incomplete-assertions
* pr/10084:
  Identify and fix incomplete assertions
2017-08-29 13:57:35 +02:00
Paul Vorbach 04ca7f137d Identify and fix incomplete assertions
Several calls to assertThat lacked a following assertion most often due
to wrong use of parenthesis.

See gh-10084
2017-08-29 13:49:28 +02:00
Stephane Nicoll 83eee7e65d Fix XA DataSource class name for Firebird
Closes gh-10102
2017-08-29 13:48:57 +02:00
Stephane Nicoll 6967846018 Merge pull request #10101 from izeye:thrown
* pr/10101:
  Remove unused ExpectedExceptions
2017-08-29 13:19:21 +02:00