Commit Graph

26218 Commits

Author SHA1 Message Date
Phillip Webb
3c388cf48e Fix typo 2020-04-16 13:20:47 -07:00
Scott Frederick
70d4994502 Disable exception details on default error views
Prior to this commit, default error responses included the message
from a handled exception. When the exception was a BindException, the
error responses could also include an errors attribute containing the
details of the binding failure. These details could leak information
about the application.

This commit removes the exception message and binding errors detail
from error responses by default, and introduces a
`server.error.include-details` property that can be used to cause
these details to be included in the response.

Fixes gh-20505
2020-04-16 10:46:36 -05:00
Stephane Nicoll
866147405c Merge pull request #20928 from dreis2211
* pr/20928:
  Polish "Optimize AutoConfigurationImportSelector.filter()"
  Optimize AutoConfigurationImportSelector.filter()

Closes gh-20928
2020-04-16 14:16:02 +02:00
Stephane Nicoll
71ecadeaee Polish "Optimize AutoConfigurationImportSelector.filter()"
See gh-20928
2020-04-16 14:13:05 +02:00
dreis2211
2158fadb35 Optimize AutoConfigurationImportSelector.filter()
See gh-20928
2020-04-16 14:12:56 +02:00
Stephane Nicoll
fb2f6bb1af Polish
See gh-20975
2020-04-16 13:57:42 +02:00
Stephane Nicoll
3cdad28b32 Merge pull request #20973 from izeye
* pr/20973:
  Polish

Closes gh-20973
2020-04-16 13:47:10 +02:00
Johnny Lim
5fad43ec40 Polish
See gh-20973
2020-04-16 13:46:53 +02:00
Stephane Nicoll
e9016701e7 Start building against Spring Kafka 2.5.0 snapshots
See gh-20953
2020-04-16 11:47:09 +02:00
Madhura Bhave
b75df92d9e Merge branch '2.2.x'
Closes gh-20977
2020-04-15 16:39:59 -07:00
Madhura Bhave
aebf475e13 Merge branch '2.1.x' into 2.2.x
Closes gh-20979
2020-04-15 16:39:29 -07:00
Madhura Bhave
9d3d202837 Upgrade Java 11 version in CI image
Closes gh-20978
2020-04-15 16:38:04 -07:00
Madhura Bhave
d4f3b34bc6 Merge branch '2.2.x'
Closes gh-20982
2020-04-15 16:34:07 -07:00
Madhura Bhave
a8bd62501d Merge branch '2.1.x' into 2.2.x
Closes gh-20981
2020-04-15 16:33:09 -07:00
Madhura Bhave
fd14c4e72a Switch docker upgrade script to submit issue rather than PR
Closes gh-20976
2020-04-15 16:31:49 -07:00
Stephane Nicoll
04544f9842 Polish 2020-04-15 15:11:28 +02:00
Stephane Nicoll
fae8617829 Merge pull request #20966 from yidongnan
* pr/20966:
  Polish "Add reference to gRPC starter"
  Add reference to gRPC starter

Closes gh-20966
2020-04-15 09:54:29 +02:00
Stephane Nicoll
dbdd84b230 Polish "Add reference to gRPC starter"
See gh-20966
2020-04-15 09:54:12 +02:00
Michael Zhang
8e6028f67c Add reference to gRPC starter
See gh-20966
2020-04-15 09:51:09 +02:00
Stephane Nicoll
4648ecef6e Merge branch '2.2.x'
Closes gh-20969
2020-04-15 09:48:32 +02:00
Stephane Nicoll
4c0592441d Merge pull request #20882 from Konrado85
* pr/20882:
  Polish "Polish JarFile to extra anonymous inner class"
  Polish JarFile to extra anonymous inner class

Closes gh-20882
2020-04-15 09:42:45 +02:00
Stephane Nicoll
1dd8dcc6c9 Polish "Polish JarFile to extra anonymous inner class"
See gh-20882
2020-04-15 09:39:00 +02:00
Konrado85
e0d1cf0e38 Polish JarFile to extra anonymous inner class
See gh-20882
2020-04-15 09:33:24 +02:00
Stephane Nicoll
0a189e9cc1 Merge pull request #20967 from dreis2211
* pr/20967:
  Prevent shaded imports from Datastax

Closes gh-20967
2020-04-15 09:22:29 +02:00
dreis2211
b0eea26260 Prevent shaded imports from Datastax
See gh-20967
2020-04-15 09:21:56 +02:00
Stephane Nicoll
c6a55a5455 Merge pull request #20936 from dreis2211
* pr/20936:
  Upgrade to Testcontainers 1.14.0

Closes gh-20936
2020-04-15 09:21:19 +02:00
dreis2211
5b9d8bfc17 Upgrade to Testcontainers 1.14.0
See gh-20936
2020-04-15 09:20:31 +02:00
Stephane Nicoll
17e5b08cba Polish 2020-04-15 09:09:27 +02:00
Stephane Nicoll
5b4c13d767 Start building against Spring Kafka 2.4.6 snapshots
See gh-20953
2020-04-15 08:49:51 +02:00
Stephane Nicoll
88d790a96c Start building against Spring Integration 5.3.0 snapshots
See gh-20951
2020-04-15 08:49:51 +02:00
Stephane Nicoll
d02218d838 Start building against Spring Data Neumann-RC2 snapshots
See gh-20949
2020-04-15 08:49:51 +02:00
Stephane Nicoll
b05bdbbf0b Start building against Spring AMQP 2.2.6 snapshots
See gh-20947
2020-04-15 08:49:51 +02:00
Stephane Nicoll
abfe8940e0 Start building against Spring Framework 5.2.6 snapshots
See gh-20945
2020-04-15 08:49:51 +02:00
Stephane Nicoll
55c8811f2c Start building against Reactor Dysprosium-SR7 snapshots
See gh-20943
2020-04-15 08:49:51 +02:00
Stephane Nicoll
8fa6ec36f4 Remove @ConditionalOnMissingBean check on deprecated class
Closes gh-20968
2020-04-15 08:49:37 +02:00
Madhura Bhave
d648b98991 Merge branch '2.2.x'
Closes gh-20964
2020-04-14 16:55:40 -07:00
Madhura Bhave
947594addd Merge branch '2.1.x' into 2.2.x
Closes gh-20963
2020-04-14 16:54:54 -07:00
Madhura Bhave
c98fe51914 Make it more obvious that Jolokia does not work with a WebFlux app
Closes gh-20623
2020-04-14 16:45:31 -07:00
Phillip Webb
24ee9737c0 Rework some aspects of the probes support
Closes gh-20962
2020-04-14 16:40:56 -07:00
Phillip Webb
28da1da241 Update availability/probe documentation
Update the application availability and probes documentation following
the recent set of updates.

See gh-20962
2020-04-14 16:40:36 -07:00
Phillip Webb
5311c04437 Change HealthEndpointGroups customization support
Update the `HealthEndpointGroups` customization support to use a
post-processor rather than a mutable registry. Although this approach
is slightly less flexible, it removes a lot of complexity from the
`HealthEndpointGroups` code. Specifically, it allows us to drop the
`HealthEndpointGroupsRegistry` interface entirely.

The probe health groups are now added via the post-processor if they
aren't already defined. Unlike the previous implementation, users are
no longer able to customize status aggregation and http status code
mapping rules _unless_ they also re-define the health indicators that
are members of the group.

See gh-20962
2020-04-14 16:40:36 -07:00
Phillip Webb
f32a37e289 Support management.health.probes.enabled=false
Update `AvailabilityProbesAutoConfiguration` to allow the
`management.health.probes.enabled` property to override the platform
detection logic. Prior to this commit, it was possible to use the
property to enable the probes, but it was not possible to disable
them when deploying to Kubernates.

See gh-20962
2020-04-14 16:40:36 -07:00
Phillip Webb
82cfd7c6c9 Restructure probes auto-configuration
Relocate probe auto-configuration from the `kubernetes` package to
`availability` since probes could also be used on other platforms.

The classes have also been renamed to named to `AvailabilityProbes...`

See gh-20962
2020-04-14 16:40:36 -07:00
Phillip Webb
71e4801e68 Rename probe health indicators
Rename `LivenessProbeHealthIndicator` to `LivenessStateHealthIndicator`
and `ReadinessProbeHealthIndicator` to `ReadinessStateHealthIndicator`.

Also introduce a general purpose `AvailabilityStateHealthIndicator`
class.

See gh-20962
2020-04-14 16:40:36 -07:00
Phillip Webb
bb79c847b2 Allow custom availability states
Create a general purpose `AvailabilityState` interface and refactor
the existing `LivenessState` and `ReadinessState` to use it. A single
`AvailabilityChangeEvent` is now used to carry all availability state
updates.

This commit also renames `ApplicationAvailabilityProvider` to
`ApplicationAvailabilityBean` and extracts an `ApplicationAvailability`
interface that other beans can inject. The helps to hide the event
listener method, which is really internal.

Finally the state enums have been renamed as follows:

 - `LivenessState.LIVE` -> `LivenessState.CORRECT`
 - `ReadinessState.READY` -> `ReadinessState.ACCEPTING_TRAFFIC`
 - `ReadinessState.UNREADY` -> `ReadinessState.REFUSING_TRAFFIC`

See gh-20962
2020-04-14 16:40:36 -07:00
Phillip Webb
473d4fd73d Add gradle default task 2020-04-14 16:40:28 -07:00
Stephane Nicoll
7c3369cca8 Merge branch '2.2.x' 2020-04-14 15:15:10 +02:00
Brian Clozel
7a4fa7ee3e Upgrade to Spring Doc Resources 0.2.1.RELEASE
Closes gh-20958
2020-04-14 14:47:42 +02:00
Stephane Nicoll
6e1ff50328 Start building against Spring Kafka 2.3.8 snapshots
See gh-20952
2020-04-14 14:29:41 +02:00
Stephane Nicoll
fafac58311 Start building against Spring Integration 5.2.6 snapshots
See gh-20950
2020-04-14 14:29:06 +02:00