Commit Graph

9872 Commits

Author SHA1 Message Date
Stephane Nicoll
b1525f4f2e Rename spring-boot-deprecated-properties-support
Rename `spring-boot-deprecated-properties-support` to
`spring-boot-properties-migrator`.

See gh-11301
2018-01-24 11:15:17 +01:00
Stephane Nicoll
960989cfe6 Polish "Add support for anonymousReadOnly in LdapProperties"
Closes gh-11744
2018-01-24 10:21:33 +01:00
Stephane Nicoll
af0bdc893b Add support for anonymousReadOnly in LdapProperties
See gh-11744
2018-01-24 09:59:03 +01:00
Eddú Meléndez
633aefa844 Move tests to use ApplicationContextRunner 2018-01-24 09:58:35 +01:00
Brian Clozel
145d46e093 Polish 2018-01-23 15:52:44 +01:00
Stephane Nicoll
1f4a32f0ad Add a way to signal that an endpoint request is invalid
This commit adds InvalidEndpointRequestException as a technology
agnostic way to signal that an endpoint request is invalid. When such
exception is thrown, the web layer translates that to a 400.

Rather than overriding the reason, this commit makes sure to reuse the
error infrastructure.

Closes gh-10618
2018-01-23 14:57:13 +01:00
Madhura Bhave
55c8ceb440 Polish 2018-01-23 17:01:46 +05:30
Brian Clozel
be7c0a15f7 Move reactive ErrorAttributes into spring-boot
Closes gh-11714
2018-01-23 11:55:34 +01:00
Stephane Nicoll
674be06874 Upgrade to Spring Framework 5.0.3.RELEASE
Closes gh-11503
2018-01-23 11:35:55 +01:00
Stephane Nicoll
81b275fa2a Upgrade to Reactor Bismuth-SR5
Closes gh-11572
2018-01-23 09:29:33 +01:00
andrey.onufreyko
b19dcb13e2 Replace string arguments with char
Optimize method calls by replacing single character String arguments
with char.

Closes gh-11680
2018-01-22 16:35:06 -08:00
Johnny Lim
768e7c07e6 Polish
Closes gh-11720
2018-01-22 16:06:45 -08:00
dreis2211
5f66c09844 Narrow scope of some variables
Closes gh-11743
2018-01-22 16:01:02 -08:00
dreis2211
b7e663e820 Polish
Closes gh-11724
2018-01-22 15:59:20 -08:00
Phillip Webb
66d5c03c39 Add checkstyle to prevent reactor Assert import 2018-01-22 15:57:02 -08:00
Phillip Webb
d0ca1a3eea Rename configuration-analyzer
Rename `spring-boot-configuration-analyzer` to
`spring-boot-deprecated-properties-support`.

Also renamed classes to match and polished some of the code.

See gh-11301
2018-01-22 15:57:01 -08:00
Phillip Webb
66f8279f65 Polish 2018-01-22 14:06:18 -08:00
Andy Wilkinson
77596fa8e6 Polish 2018-01-22 21:15:48 +00:00
Andy Wilkinson
a41e28eea2 Merge branch '1.5.x' 2018-01-22 21:00:26 +00:00
Andy Wilkinson
f5a8c2a705 Upgrade to Postgresql 42.2.0
Closes gh-11741
2018-01-22 20:35:37 +00:00
Andy Wilkinson
26ea4037a3 Upgrade to Neo4j Ogm 3.0.3
Closes gh-11740
2018-01-22 20:35:36 +00:00
Andy Wilkinson
d5b58a60e0 Upgrade to Jetty El 8.5.24.1
Closes gh-11739
2018-01-22 20:35:36 +00:00
Andy Wilkinson
89953f0d46 Upgrade to Jooq 3.10.4
Closes gh-11738
2018-01-22 20:35:35 +00:00
Andy Wilkinson
3b760d3620 Upgrade to Kotlin 1.2.20
Closes gh-11737
2018-01-22 20:35:34 +00:00
Andy Wilkinson
0ebff9aa80 Upgrade to Flyway 5.0.6
Closes gh-11736
2018-01-22 20:35:34 +00:00
Andy Wilkinson
37d3416627 Upgrade to Elasticsearch 5.6.6
Closes gh-11735
2018-01-22 20:35:33 +00:00
Andy Wilkinson
c825167ec7 Upgrade to Netty 4.1.20.Final
Closes gh-11734
2018-01-22 20:35:32 +00:00
Andy Wilkinson
67c74ff123 Upgrade to Embedded Mongo 2.0.1
Closes gh-11733
2018-01-22 20:35:31 +00:00
Andy Wilkinson
884486aba7 Upgrade to Hikaricp 2.7.6
Closes gh-11732
2018-01-22 20:35:31 +00:00
Andy Wilkinson
315d2b620e Upgrade to Unboundid Ldapsdk 4.0.4
Closes gh-11731
2018-01-22 20:35:30 +00:00
Andy Wilkinson
59e577d9ac Upgrade to Cassandra Driver 3.4.0
Closes gh-11730
2018-01-22 20:35:28 +00:00
Andy Wilkinson
1fdfcfd042 Upgrade to Couchbase Client 2.5.4
Closes gh-11729
2018-01-22 20:35:27 +00:00
Andy Wilkinson
61eb93f9b0 Upgrade to Atomikos 4.0.6
Closes gh-11728
2018-01-22 20:35:26 +00:00
Andy Wilkinson
b5444430ca Merge branch '1.5.x' 2018-01-22 20:33:36 +00:00
Brian Clozel
a8baf42f2f Ensure that CharacterEncodingFilter is ordered first
This commit makes sure that `CharacterEncodingFilter` is ordered with
the `Ordered.HIGHEST_PRECEDENCE` and that other filters, potentially
reading the request body, are ordered after.

In this particular case, both `WebMvcMetricsFilter` and
`ErrorPageFilter` are now ordered at `Ordered.HIGHEST_PRECEDENCE + 1` to
avoid cases where the request body is read before the encoding
configuration is taken into account.

Closes gh-11607
2018-01-22 21:08:21 +01:00
Stephane Nicoll
6aa639253a Analyse the environment for properties that are no longer supported
This commit adds a new `spring-boot-configuration-analyzer` module that
can be added to any app to analyze its environment on startup.

Each configuration key that has a matching replacement is temporarily
transitioned to the new name with a `WARN` report that lists all of
them.

If the project defines configuration keys that don't have a replacement,
an `ERROR` report lists them with more information if it is available.

Closes gh-11301
2018-01-22 17:31:03 +01:00
sdeleuze
d1b18b75d7 Manage dependencies for kotlin-stdlib-jdk7/8
As explained in the "Split package compatibility" section of
https://blog.jetbrains.com/kotlin/2017/09/kotlin-1-2-beta-is-out/
kotlin-stdlib-jdk7 and kotlin-stdlib-jdk8 are the recommended
dependencies to use with Kotlin 1.2 for Java 9+ compatibility.

Closes gh-11716
2018-01-22 17:03:22 +01:00
Johnny Lim
a0f6abffb6 Use the platform-specific line separator
Closes gh-11674
2018-01-22 16:11:34 +01:00
Johnny Lim
13a7c9df4b Add missing null checks and volatile keyword
Closes gh-11692
2018-01-22 16:05:11 +01:00
Andy Wilkinson
66164bff14 Polish 2018-01-22 11:30:49 +00:00
Andy Wilkinson
fbb1ba1bb3 Move actuator mappings introspection classes into dedicated packages
Closes gh-9979
2018-01-22 11:25:40 +00:00
Andy Wilkinson
e973eaf2c3 Configure WebClient to use same address (IPv4 or IPv6) as server
Closes gh-11712
2018-01-22 09:47:37 +00:00
Stephane Nicoll
886ee9c870 Polish 2018-01-20 12:00:07 +01:00
Stephane Nicoll
68cc373daa Polish 2018-01-20 11:37:39 +01:00
Stephane Nicoll
126f8783a2 Polish 2018-01-20 11:07:07 +01:00
Phillip Webb
80bba046a3 Fix broken javadoc import 2018-01-19 22:24:47 -08:00
Phillip Webb
bda9b892b3 Add direct WebFlux and WebMvc endpoint support
Add `@ControllerEndpoint` and `@RestControllerEndpoint` annotations that
can be used to develop a Spring-only request mapped endpoint. Both
Spring MVC and Spring WebFlux are supported.

This feature is primarily for use when deeper Spring integration is
required or when existing Spring Boot 1.5 projects want to migrate to
Spring Boot 2.0 without re-writing existing endpoints. It comes at the
expense of portability, since such endpoints will be missing from
Jersey.

Fixes gh-10257
2018-01-19 21:06:32 -08:00
Phillip Webb
340ef52f78 Refactor endpoint path concerns
Create a `PathMappedEndpoint` interface that allows any `ExposedEndpoint`
to provide root path details. The `EndpointPathResolver` interface has
been renamed to `PathMapper` and is now only used during endpoint
discovery.

`EndpointPathProvider` has been replaced with `PathMappedEndpoints`
which simply finds relevant path mapped endpoints.

Fixes gh-10985
2018-01-19 20:44:24 -08:00
Phillip Webb
1d39feffea Overhaul actuator endpoint code
Refactor several areas of the actuator endpoint code in order to make
future extensions easier. The primary goal is to introduce the concept
of an `ExposableEndpoint` that has technology specific subclasses and
can carry additional data for filters to use. Many other changes have
been made along the way including:

* A new EndpointSupplier interface that allows cleaner separation of
  supplying vs discovering endpoints. This allows cleaner class names
  and allows for better auto-configuration since a user can choose to
  provide their own supplier entirely.

* A `DiscoveredEndpoint` interface that allows the `EndpointFilter`
  to be greatly simplified. A filter now doesn't need to know about
  discovery concerns unless absolutely necessary.

* Improved naming and package structure. Many technology specific
  concerns are now grouped in a better way. Related concerns are
  co-located and concepts from one area no longer leakage into another.

* Simplified `HandlerMapping` implementations. Many common concerns have
  been pulled up helping to create simpler subclasses.

* Simplified JMX adapters. Many of the intermediary `Info` classes have
  been removed. The `DiscoveredJmxOperation` is now responsible for
  mapping methods to operations.

* A specific @`HealthEndpointCloudFoundryExtension` for Cloud Foundry.
  The extension logic used to create a "full" health endpoint extension
  has been made explicit.

Fixes gh-11428
Fixes gh-11581
2018-01-19 20:44:24 -08:00
Phillip Webb
dc935fba48 Polish 2018-01-19 20:44:18 -08:00