Commit Graph

20610 Commits (b34b217d1e3c255dc85ff56fa74b28fdbf0ab45a)
 

Author SHA1 Message Date
Stephane Nicoll b34b217d1e Upgrade to Kotlin 1.3.21
Closes gh-16195
6 years ago
Stephane Nicoll 341859b5fe Start building against Spring Framework 5.2 snapshots
See gh-16173
6 years ago
Stephane Nicoll c30f9815c1 Fix detection of Autowired constructor with Kotlin
Previously, the import selector wrongly assumed that we should not
use constructor injection with Kotlin. Rather than looking up for the
primary constructor, we retrieve available constructors on the Java
counter-part.

This commit applies the same logic as in the constructor parameter
binder and checks for the primary constructor for Kotlin types.

See gh-8762
6 years ago
Andy Wilkinson 7675802338 Merge branch '2.1.x' 6 years ago
Andy Wilkinson f574213cc8 Mark log file endpoint as producing text/plain
Closes gh-16188
6 years ago
Andy Wilkinson 7d0317419d Polish 6 years ago
Andy Wilkinson 89bb973745 Merge branch '2.1.x' 6 years ago
Andy Wilkinson 7153525ee2 Annotation @JsonTest with @ExtendWith(SpringExtension.class)
Closes gh-16183
6 years ago
Stephane Nicoll d07a6ff0bb Fix binding of bean with no bean definition
See gh-16180
6 years ago
Andy Wilkinson f5eb853f26 Update web starter to depend on validator starter
Previously, the web starter declared direct dependencies on Hibernate Validator
and the Jakarta EE validation API. This meant that it required two exclusions to
exclude validation from a web application that did not need it.

This commit updates the web starter to get its validation dependencies via a
dependency on the validation starter. This allows validation to be excluded
using a single exclusion. The EL dependency from the validation starter has
been excluded to allow the EL implementation from the underlying container
starter (Tomcat, Jetty, or Undertow) to continue to be used instead.

Closes gh-16176
6 years ago
Stephane Nicoll 430571b37b Perform binding at creation time if possible
Previously, environment binding always happened in a post processor once
the bean has been created. Constructor binding requires to perform the
binding at creating time so this commit performs binding at creation
time if possible.

When this happens, a special `ConfigurationPropertiesBeanDefinition` is
created with a supplier that invokes the binder. To avoid a case where
a bean is processed twice, the post-processor now ignores any bean that
has already been bound to the environment.

Closes gh-8762

Co-authored-by: Madhura Bhave <mbhave@pivotal.io>
6 years ago
Madhura Bhave 7ca589d43c Add constructor based binding support
See gh-8762

Co-authored-by: Stephane Nicoll <snicoll@pivotal.io>
6 years ago
Stephane Nicoll 8948c1dac6 Revert 80f4113
See gh-15809
6 years ago
Andy Wilkinson 2bd3d19bee Ensure that DevTools' beans use eager init even when app is lazy
Closes gh-15870
6 years ago
Andy Wilkinson 1431a0f585 Upgrade to Spring Data Moore-M2
Closes gh-15197
6 years ago
Andy Wilkinson 143d68b208 Merge branch '2.1.x' 6 years ago
Andy Wilkinson eeaf057f47 Merge branch '2.0.x' into 2.1.x 6 years ago
Andy Wilkinson fd8a2691a5 Upgrade Maven Wrapper and drop back to Maven 3.5.4
See gh-16167
6 years ago
Brian Clozel 8325fce53e Fix formatting 6 years ago
Brian Clozel 6586bae889 Guard Endpoint bean declarations with ConditionalOnExposedEndpoint
This commit adds the newly introduced `@ConditionalOnExposedEndpoint`
conditional annotation to all auto-configured `Endpoint` in Actuator.

With that change, `EndPoint` instances and related infrastructure will
only be created when they are meant to be exposed and used. This will
save CPU and memory resources when Actuator is present.

Closes gh-16093
6 years ago
Brian Clozel 4ffbe6c9e8 Add @ConditionalOnExposedEndpoint condition
Prior to this commit, Actuator `Endpoint` instantiations would be
guarded by `@ConditionalOnEnabledEnpoint` condition annotations. This
feature saves resources as disabled endpoints aren't unnecessarily
instantiated.

By default, only `"health"` and `"info"` endpoints are exposed over the
web and all endpoints are exposed over JMX.

As of gh-16090, JMX is now disabled by default. This is an opportunity
to avoid instantiating endpoints if they won't be exposed at all, which
is more likely due to the exposure defaults.

This commit adds a new `@ConditionalOnExposedEndpoint` conditional
annotation that checks the `Environment` for configuration properties
under `"management.endpoints.web.exposure.*"` and
`"management.endpoints.jmx.exposure.*"`. In the case of JMX, an
additional check is perfomed, checking that JMX is enabled first.
The rules implemented in the condition itself are following the ones
described in `ExposeExcludePropertyEndpointFilter`.

See gh-16093
6 years ago
Andy Wilkinson b8dff5fe17 Merge branch '2.1.x' 6 years ago
Andy Wilkinson 9d06d22b99 Merge branch '2.0.x' into 2.1.x 6 years ago
Andy Wilkinson affdbeef41 Polish 6 years ago
Andy Wilkinson e1a7f1e085 Upgrade to Cassandra Driver 3.7.1
Closes gh-16163
6 years ago
Andy Wilkinson c4756e9057 Merge branch '2.1.x' 6 years ago
Andy Wilkinson f46894dfd3 Merge branch '2.0.x' into 2.1.x 6 years ago
Andy Wilkinson 17a1b2822c Isolate LoggerContext state to each test
Closes gh-16162
6 years ago
Andy Wilkinson 3f3966adb0 Merge branch '2.1.x' 6 years ago
Andy Wilkinson 9963ed1249 Merge branch '2.0.x' into 2.1.x 6 years ago
Andy Wilkinson 83216c34e5 Merge branch '1.5.x' into 2.0.x 6 years ago
Andy Wilkinson 3fdf2818b3 Remove reliance on side-effects in LogbackLoggingSystemTests
Closes gh-16160
6 years ago
Andy Wilkinson 7c58d72734 Upgrade to Mongo Driver Reactivestreams 1.11.0
Closes gh-16159
6 years ago
Andy Wilkinson 36cbd00853 Disable AssertJ's bare-named property accessor discovery
AssertJ includes a change in 3.12 that means that, by default, it now incorrectly
identifies some of the builder methods on CacheControl as accessor methods for its fields.
This commit restores the behaviour of 3.11 so that a method is only considered to be a
property accessor if a matches the Java bean naming conventions.

Closes gh-16145
6 years ago
Andy Wilkinson e667911f91 Merge branch '2.1.x' 6 years ago
Andy Wilkinson 80f2e2260e Merge branch '2.0.x' into 2.1.x 6 years ago
Andy Wilkinson e56580ddc6 Merge branch '1.5.x' into 2.0.x 6 years ago
Andy Wilkinson 2916421188 Revert "Upgrade to Jetty 9.4.15.v20190215"
This reverts commit 53e7c5cde1.

See gh-16118
6 years ago
Andy Wilkinson 87d696d697 Align with breaking API change in AssertJ 3.12
Closes gh-16145
6 years ago
Andy Wilkinson c2e9f98655 Upgrade to Spring Plugin 2.0.0.M1
Closes gh-15940
6 years ago
Andy Wilkinson 7c568bb277 Upgrade to Spring HATEOAS 1.0.0.M1
Closes gh-15939
6 years ago
Andy Wilkinson c6811d6427 Upgrade to Maven Javadoc Plugin 3.1.0
Closes gh-16157
6 years ago
Andy Wilkinson 12c1271bcb Upgrade to Maven Invoker Plugin 3.2.0
Closes gh-16156
6 years ago
Andy Wilkinson 970f9abc9c Upgrade to Snakeyaml 1.24
Closes gh-16155
6 years ago
Andy Wilkinson 85f42df77f Upgrade to Webjars Locator Core 0.37
Closes gh-16154
6 years ago
Andy Wilkinson 3635885058 Upgrade to Selenium Htmlunit 2.34.0
Closes gh-16153
6 years ago
Andy Wilkinson 44bc3b0f7a Upgrade to Mongodb 3.10.1
Closes gh-16152
6 years ago
Andy Wilkinson cd68579851 Upgrade to Mockito 2.25.0
Closes gh-16151
6 years ago
Andy Wilkinson 22ef0285bd Upgrade to Mariadb 2.4.0
Closes gh-16150
6 years ago
Andy Wilkinson 12e9160fff Upgrade to Junit Jupiter 5.4.0
Closes gh-16149
6 years ago