Commit Graph

906 Commits (6086bc714f9ca4b97918fee8e3627ea84d2c7388)

Author SHA1 Message Date
Phillip Webb 19ce0aa4f0 Refine BackgroundPreinitializer
Update `BackgroundPreinitializer` to start initialization earlier. Also
refine the startup order and initialize Charsets.

Fixes gh-11570
See gh-11412
7 years ago
Phillip Webb 79fc8838fd Propagate Map conversion failures
Align `MapBinder` with `IndexedBinder` so that if a value is specified
any converter exception are propagated.

See gh-11493
7 years ago
Phillip Webb 25609c060e Polish 7 years ago
Phillip Webb a62a27e686 Polish InvalidConfigurationPropertyValueException 7 years ago
Phillip Webb 937a62e0b8 Polish ConfigurationPropertiesBinder
Remove unused code and polish implementation so that the binder is not
created on each invocation.
7 years ago
Madhura Bhave 9a6c339243 Use TestContainers util from spring-boot-test-support
See gh-10516
7 years ago
Andy Wilkinson 996b3ef7f2 Refine test containers 7 years ago
Phillip Webb 87bccb96f1 Merge branch '1.5.x' 7 years ago
Madhura Bhave 41c02b307b Try to convert value in MapBinder
Fixes gh-11493
7 years ago
Andy Wilkinson 47acf8acdc Start building against Reactor Bismuth snapshots
See gh-11572
7 years ago
Stephane Nicoll 0822fcf0c5 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 66d58294d5 Merge branch '1.5.x' 7 years ago
Andy Wilkinson 12e1fcbfab Do not pass null credential from ConnectionString to Mongo builder 7 years ago
Stephane Nicoll f2d3f51f3f Merge branch '1.5.x' 7 years ago
Andy Wilkinson c7f5f0735d Stop reusing the Cluster when waiting for Cassandra to start
See gh-10516
7 years ago
Andy Wilkinson 927003e0b7 Polish 7 years ago
Stephane Nicoll 8941dc746e Polish 7 years ago
Stephane Nicoll b98c7ed9f8 Add InvalidConfigurationPropertyValueException
This commit adds a new exception type that denotes the value of a
configuration key is invalid, alongside a FailureAnalyzer that reports
a human-readable report when such exception is thrown on startup.

ResourceNotFoundException being a (useless) specialization of this new
exception, its usage has been refactored to use the more general
exception type.

Closes gh-10794
7 years ago
Stephane Nicoll 6daad1f562 Allow to inject the Environment in FailureAnalyzer
Closes gh-11569
7 years ago
Andy Wilkinson 6a0dbc5ce0 Upgrade to Sqlite Jdbc 3.21.0.1
Closes gh-11567
7 years ago
Andy Wilkinson 3f8c99d1b6 Upgrade to Selenium 3.8.1
Closes gh-11566
7 years ago
Andy Wilkinson b5ee0031b4 Upgrade to Selenium Htmlunit 2.29.0
Closes gh-11565
7 years ago
Andy Wilkinson b1371a703f Upgrade to Reactive Streams 1.0.2
Closes gh-11564
7 years ago
Andy Wilkinson 750265ee39 Upgrade to Jetty El 8.5.24
Closes gh-11563
7 years ago
Andy Wilkinson 2a9ab811bc Upgrade to Mongo Driver Reactivestreams 1.7.0
Closes gh-11562
7 years ago
Andy Wilkinson 461ab35249 Upgrade to Mongodb 3.6.1
Closes gh-11561
7 years ago
Andy Wilkinson bdced553f1 Upgrade to Mariadb 2.2.1
Closes gh-11560
7 years ago
Andy Wilkinson f051eb5858 Upgrade to Jooq 3.10.3
Closes gh-11559
7 years ago
Andy Wilkinson a7296fb8c0 Upgrade to Influxdb Java 2.8
Closes gh-11558
7 years ago
Andy Wilkinson 51026183c6 Upgrade to Infinispan 9.1.4.Final
Closes gh-11557
7 years ago
Andy Wilkinson 91e64c6a60 Upgrade to Hibernate Validator 6.0.7.Final
Closes gh-11556
7 years ago
Andy Wilkinson dbd05c57ec Upgrade to Flyway 5.0.5
Closes gh-11555
7 years ago
Andy Wilkinson 9918916181 Upgrade to Jaybird 3.0.3
Closes gh-11554
7 years ago
Andy Wilkinson a88ddca754 Upgrade to Janino 3.0.8
Closes gh-11553
7 years ago
Andy Wilkinson b91baa5d12 Upgrade to Assertj 3.9.0
Closes gh-11552
7 years ago
Andy Wilkinson 2487d8878a Upgrade to Commons Pool2 2.5.0
Closes gh-11551
7 years ago
Andy Wilkinson a43365ee58 Upgrade to Commons Dbcp2 2.2.0
Closes gh-11550
7 years ago
Andy Wilkinson 3a56398b68 Upgrade to Htmlunit 2.29
Closes gh-11549
7 years ago
Andy Wilkinson 330bd0a9b1 Upgrade to Jna 4.5.1
Closes gh-11548
7 years ago
Andy Wilkinson 9b6ea87f6a Upgrade to Javax Validation 2.0.1.Final
Closes gh-11547
7 years ago
Andy Wilkinson d98d40d7fd Upgrade to Rxjava2 2.1.8
Closes gh-11546
7 years ago
Andy Wilkinson 2f5dfd6238 Upgrade to Netty 4.1.19.Final
Closes gh-11545
7 years ago
Andy Wilkinson 955a1f5e50 Upgrade to Dropwizard Metrics 3.2.6
Closes gh-11544
7 years ago
Andy Wilkinson 833cbfdce5 Upgrade to Unboundid Ldapsdk 4.0.3
Closes gh-11543
7 years ago
Andy Wilkinson f54ee2ae23 Upgrade to Jmustache 1.14
Closes gh-11542
7 years ago
Andy Wilkinson f0ac8ab695 Upgrade to Rabbit Amqp Client 5.1.1
Closes gh-11541
7 years ago
Andy Wilkinson e7ebb94c5f Upgrade to Hazelcast 3.9.2
Closes gh-11540
7 years ago
Andy Wilkinson 62fe20c8a1 Upgrade to Caffeine 2.6.1
Closes gh-11539
7 years ago
Andy Wilkinson 1d4f5b654c Upgrade to Couchbase Client 2.5.3
Closes gh-11538
7 years ago
Stephane Nicoll b7f60c2ded Configure NettyStreamFactoryFactory by default if available
Closes gh-11526
Closes gh-10961
7 years ago
Stephane Nicoll 2b38ee9daf Polish 7 years ago
Stephane Nicoll 06572b0101 Polish 7 years ago
Stephane Nicoll f527c4b88c Add reference to migration guide
Closes gh-11302
7 years ago
Stephane Nicoll 71aad04ea9 Update copyright header 7 years ago
Johnny Lim 67a5144112 Remove unnecessary condition in ConfigurationPropertyName
Closes gh-11486
7 years ago
Brian Clozel 2bf15f814e Polish
This commit fixes the `responseCommitted` test in
`DefaultErrorWebExceptionHandlerIntegrationTests` and reworks the whole
test class to use the `ContextRunner` infrastructure.

Fixes gh-11519
7 years ago
Brian Clozel 11d4426b4d Provide client factory with supplier in RestTemplateBuilder
This commit removes
`RestTemplateBuilder.requestFactory(ClientHttpRequestFactory factory)`
because it can be misleading. This builder class is meant to be
immutable, but calling that method and then timeout related ones will
affect the `ClientHttpRequestFactory` instance.

Instead, this method is replaced with a
`Supplier<ClientHttpRequestFactory>` that is called every time a
`RestTemplate` is being built.

That approach may reduce the reusability of request factories, but it is
much more consistent.

Closes gh-11255
7 years ago
Stephane Nicoll c4db22007c Polish "Add support for additional Kafka listener properties"
Closes gh-11502
7 years ago
Gary Russell 6fcbf80b31 Add support for additional Kafka listener properties
See gh-11502
7 years ago
Stephane Nicoll 5baedf9275 Polish "Deduplicate tag values in metrics actuator endpoint"
Closes gh-11492
7 years ago
Jon Schneider ebb51d5533 Deduplicate tag values in metrics actuator endpoint
See gh-11492
7 years ago
Stephane Nicoll 1962cbb623 Polish
This is no longer necessary as of micrometer 1.0 rc5
7 years ago
Andy Wilkinson 94d5836618 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 59d5ed5842 Add support for advanced customization of Hibernate settings
As HibernateJpaConfiguration is package private, it is no longer
possible to extend the default Spring Boot configuration to apply
advanced settings. The most notable use case for this is the
customization of Hibernate properties using instance value vs. string
value that can be set using the "spring.jpa.properties" namespace.

This commit adds a HibernatePropertiesCustomizer callback interface that
can be implemented to tune Hibernate properties at will.

Closes gh-11211
7 years ago
Andy Wilkinson 268b97bf98 No-op ResetMocksTestExecutionListener when Mockito is not present
Closes gh-11508
7 years ago
Stephane Nicoll 641013787d Polish 7 years ago
Stephane Nicoll ac004eabf3 Update copyright header
See gh-11510
7 years ago
Johnny Lim 37d8eedae3 Polish
Closes gh-11510
7 years ago
Madhura Bhave 7c5cf903fc Remove management.security.enabled from documentation
Fixes gh-11383
7 years ago
Madhura Bhave fc3b43e832 Wait for neo4j to start accepting connections
See gh-10516
7 years ago
Madhura Bhave e28915bd4b Make integration tests self-contained
Fixes gh-10516
7 years ago
Andy Wilkinson 3955c284f5 Start building against Spring Framework 5.0.3 snapshots
See gh-11503
7 years ago
Andy Wilkinson 0e3d873d85 Start building against Spring Integration 5.0.1 snapshots
See gh-11501
7 years ago
Brian Clozel 6525bc46ef Add Jetty libraries to Javadoc build 7 years ago
Brian Clozel c6a1fc93bd Polish 7 years ago
Jay Bryant 0e7dbd59b2 Full editing pass plus linking
I made a complete editing pass plus another pass to see where I could add more links, both within the document and to other parts of Spring. The result was a thorough edit (though I'm sure I missed things, purely due to the size of the thing).
7 years ago
Andy Wilkinson 0aedd3f11d Exclude tomcat-annotations-api and use javax.annotations-api instead
Closes gh-10133
7 years ago
Andy Wilkinson a7808388ad Make github-tag property available when generating Gradle plugin docs
Closes gh-11490
7 years ago
Stephane Nicoll 03dd53f347 Fix broken merge 7 years ago
Stephane Nicoll e3bfd797a3 Merge branch '1.5.x' 7 years ago
Phillip Webb bee5fa7fc6 Polish 7 years ago
Phillip Webb 6bac365a72 Polish micrometer cache metrics
Change `CacheMeterBinderProvider` to include a cache type
generic which helps to simplify implementations. Also move
and extract a few classes.

See gh-11221
7 years ago
Phillip Webb 37fe7bc8f6 Update validator background initializer
Update the validator background initializer to actually create
the validator.

Closes gh-11412
7 years ago
Madhura Bhave 716543828a Refactor some tests to use ApplicationContextRunner 7 years ago
Brian Clozel 3ab32df242 Add support for HTTP/2 in Jetty with Conscrypt
This commit configures Jetty for HTTP/2 support as soon as the following
conditions are met:

* `server.http2.enabled=true`
* Both `org.eclipse.jetty:jetty-alpn-conscrypt-server` and
`org.eclipse.jetty.http2:http2-server` are on classpath

This will use the Conscrypt library for ALPN and TLS support using
native libraries shipped within the Conscrypt uber Jar. This does not
require a JVM agent or patching the JDK classes.

Closes gh-10902
7 years ago
Stephane Nicoll ea70b2ed2e Upgrade to Kotlin 1.2.10
See gh-11235
7 years ago
Andy Wilkinson 6d8676c268 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 0515ca0dd0 Auto configure micrometer cache metrics
Closes gh-11221
7 years ago
Andy Wilkinson 38ac595615 Polish 7 years ago
Andy Wilkinson 70e14edaf7 Work around incorrect layout of generated epub archive
Previously, the Docbook Maven plugin would generate an epub archive
with the majority of contents in OEBPS/, including content.opf, while
the META-INF/container.xml file reference to content.opf in the root
of the archive.

This commit overrides the epub.oebps.dir variable to move the content
into the root of the archive where it's expected to be. Implementing
this override highlighted that our customization stylesheet was not
being applied as the configuration property was incorrect (it was
epubCustomnization rather than the required epub3Customization). This
has been corrected along with a problem with missing images that
fixing it revealed.

Closes gh-11470
7 years ago
Brian Clozel 8286cbc9f3 Merge branch '1.5.x' 7 years ago
Stephane Nicoll f0b210c751 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 6277d0ceb7 Update copyright header 7 years ago
dreis2211 eb1ae2dd79 Fix typos
Closes gh-11460
7 years ago
Andy Wilkinson b545330d8e Fix reusable archive creation with Gradle 4.1 and later
Closes gh-11468
7 years ago
Johnny Lim a462255383 Polish
Closes gh-11451
7 years ago
dreis2211 67a84cd4f9 Fix typos
Closes gh-11450
7 years ago
Stephane Nicoll edc43f75cb Merge branch '1.5.x' 7 years ago
Johnny Lim 24b5a78e39 Polish
Closes gh-11448
7 years ago
Madhura Bhave a46d1416ee Reinstate required parameter 7 years ago
Madhura Bhave 8102dc78cb Remove redundant throws declarations 7 years ago
Stephane Nicoll 1ab5b833af Add reference to liquigraph 7 years ago
Stephane Nicoll 106642a8d4 Polish 7 years ago
Johnny Lim 8ae2be6043 Fix property names in MeterBindersConfiguration
Closes gh-11443
7 years ago
Madhura Bhave be9291a365 Match trailing slash in actuator endpoints
Fixes gh-11024
7 years ago
Madhura Bhave c29fe05708 Remove redundant property from tests 7 years ago
Stephane Nicoll cfa3cab988 Polish "Improve Spring Data Web configuration properties"
Closes gh-11403
7 years ago
Marcel Overdijk be93eabc6b Improve Spring Data Web configuration properties
See gh-11403
7 years ago
Stephane Nicoll 8d1bd7eb3c Polish 7 years ago
Stephane Nicoll 81af02fde7 Improve JVM metrics
This commit adds GC and thread jvm metrics to the existing memory
metrics. All three are now managed by a unique
management.metrics.binders.jvm.enabled property.

Closes gh-11425
7 years ago
sdeleuze 945ca00b5b Upgrade to Kotlin 1.2
apiVersion and languageVersion options are set to 1.1
in order to avoid incompatibilities with Kotlin 1.1
based projects.

Closes gh-11235
7 years ago
Stephane Nicoll 2bd8c2bfca Polish
See gh-11181
7 years ago
Stephane Nicoll c709ff8e3b Polish "Apply customize() to createCredentialNetworkMongoClient()"
Closes gh-11376
7 years ago
Johnny Lim 90369996a9 Apply customize() to createCredentialNetworkMongoClient()
See gh-11376
7 years ago
Stephane Nicoll 601b5e4d9a Replace SystemProperties by TestPropertyValues
Closes gh-9852
7 years ago
Stephane Nicoll f0d94a46fd Polish 7 years ago
Stephane Nicoll afba8fed79 Harmonize management.server.context-path property
This commit moves management.server.context-path to
management.server.servlet.context-path to align with the configuration
key for the application's main context path.

Closes gh-11359
7 years ago
Stephane Nicoll 5328508421 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 2738147947 Polish "Move CorsEndpointProperties to the parent package"
Closes gh-11439
7 years ago
Johnny Lim 8383b76138 Move CorsEndpointProperties to the parent package
`CorsEndpointProperties` lives in `endpoint.web.servlet` but is also used
in `endpoint.web.reactive`, so this PR moves it to its common parent
package.

This commit also extracts `CorsConfiguration` creation logic duplicated
in `WebMvcEndpointManagementContextConfiguration` and
`WebFluxEndpointManagementContextConfiguration` into
`CorsEndpointProperties`.

See gh-11439
7 years ago
Stephane Nicoll f57ff3a777 Merge branch '1.5.x' 7 years ago
Johnny Lim 38a188f557 Add a Checkstyle rule to prevent Commons Lang/Lang 3 imports
Closes gh-11432
7 years ago
Johnny Lim 8f7ab95e0e Use BufferedReader.lines()
Closes gh-11436
7 years ago
Stephane Nicoll 50a4982a52 Merge branch '1.5.x' 7 years ago
Joe Kutner c5695c8f78 Fix spring.quartz.jdbc.initialize-schema value
Use enum value from DataSourceInitializationMode instead of Boolean.

Closes gh-11433
7 years ago
Johnny Lim 3c5ccb1166 Polish
Closes gh-11418
7 years ago
Johnny Lim b35348b41d Remove org.flywaydb.core.internal.util.StringUtils import
Closes  gh-11396
7 years ago
Stephane Nicoll a8f5e1a361 Merge branch '1.5.x' 7 years ago
Johnny Lim e32287164b Use Supplier version of Assert.state()
Closes gh-11362
7 years ago
Johnny Lim 3a276d2a87 Rename CloudFoundryHealthWebEndpointManagementContextConfiguration
Closes gh-11400
7 years ago
Johnny Lim 4cc598ac5e Replace contains() with indexOf()
Closes gh-11373
7 years ago
Stephane Nicoll 544c40d46d Upgrade to Spring Kafka 2.1.0.RELEASE
Closes gh-11415
7 years ago
Johnny Lim 240aaadd83 Fix package name for InfluxDB
Closes gh-11364
7 years ago
Johnny Lim e4f0ad2165 Polish
Closes gh-11372
7 years ago
dreis2211 a434e5cc5f Fix JsonbHttpMessageConvertersConfiguration javadoc
Closes gh-11368
7 years ago
Eddú Meléndez cc9b2a9786 Fix property key to enable influxdb health endpoint
Closes gh-11365
7 years ago
Phillip Webb ad1c8d773f Start properties validator in background thread
Change the default JSR-303 validator used by the configuration
properties binder so that it's initialized in a background thread.
This change allows the context to carry on loading additional beans
whilst the validator is initializing.

Fixes gh-11412
7 years ago
Phillip Webb 5f10c82284 Change property mapper to use array returns
Update the `PropertyMapper` interface to return arrays rather than
Lists. Since implementations are package-private it's possible for us
to control how they are used and it helps to save a little memory.

Fixes gh-11411
7 years ago
Phillip Webb 2efa21c570 Make hot methods in-line friendly
Refactor a few hot methods so that they are more likely to be in-lined
by the JIT.

Fixes gh-11409
7 years ago
Phillip Webb e141f77801 Share BinderConversionService with a static
Use a single shared static `BinderConversionService` instance for all
created binders to save memory and improve performance.

Fixes gh-11352
7 years ago
Phillip Webb 6cb331ed2c Cache endpoint enabled-by-default result
Update `OnEnabledEndpointCondition` so that the result of
`management.endpoints.enabled-by-default` is cached between calls.

Fixes gh-11407
7 years ago
Phillip Webb 7f0048a899 Use fast exceptions when enumerating resources
Update the `LaunchedURLClassLoader` used for fat jar support so that
each iteration on a `findResources` result also allows for fast
exceptions.

Fixes gh-11406
7 years ago
Phillip Webb aa66d5dfb8 Reduce garbage created when loading fat jars
Refactor fat jar loader classes so that less `char[]` instances are
created. This is primarily achieved by adding a new `StringSequence`
class that can chop up Strings without needing to copy the underlying
array. Since Java 8, calls to `String.subString(...)` always copy the
underlying char array. For many of the operations that we need, this
is unnecessary.

Fixes gh-11405
7 years ago
Phillip Webb c024313141 Drop environment variable "__" list support
Remove support for the `__` environment variable list shortcut in order
to reduce complexity. The shortcut was developed before the new `Binder`
code was fully formed and isn't really necessary now since comma-lists
can be converted automatically.

Fixes gh-11410
7 years ago
Phillip Webb 1ea921bfdd Migrate to OAuth2Client to use PropertyMapper
See gh-9018
7 years ago
Phillip Webb ba86b68484 Polish 7 years ago
Phillip Webb 6eabe8235c Add optional javax.money dependency
Add an optional dependency to `javax.money` to Eclipse errors in
`WebConversionService`.

See gh-5523
See gh-11402
7 years ago
dreis2211 00d12c5b2d Align 'behavior' spelling to style guide
Closes gh-11394
7 years ago
Christoph Dreis 1a7fd6c359 Fix typo
Closes gh-11388
7 years ago
Brian Clozel 2fa0539e7f Support date conversion format for java.time types
Prior to this change, the Spring MVC auto-configuration would add a new
formatter to convert `java.util.Date` to/from `String` using the
configured configuration property `spring.mvc.date-format`.

This commit adds a new `WebConversionService` class that registers
date formatters with a custom date format, or register the default ones
if no custom configuration is provided.
This avoids duplicating equivalent formatters in the registry.

With this change, date types from `java.util`, `org.joda.time` and
`java.time` are now all supported.

This commit also replicates this feature for WebFlux applications by
adding a new `spring.webflux.date-format` configuration property.

Closes gh-5523
Closes gh-11402
7 years ago