Commit Graph

866 Commits

Author SHA1 Message Date
Johnny Lim 0f0c6e0729 Polish
Closes gh-11536
2018-01-09 09:28:56 +01:00
Phillip Webb 286a3bb10a Polish GSON customization support
Closes gh-11498
2018-01-08 23:13:46 -08:00
ioann ba552f1d24 Allow GSON customization via properties or beans
Update GSON support to allow customization with either properties or
customize beans.

See gh-11498
2018-01-08 22:37:55 -08:00
Phillip Webb 9cb5f3da89 Create DynamicRegistrationBean
Extract functionality from the `RegistrationBean` into a new class
designed to work with dynamic registration. Servet and Filter
registration beans now extend from `DynaimcRegistrationBean`, where as
`ServletListenerRegistrationBean` extends directly from
`RegistrationBean`.

This refactor allows the removal of `ServletListenerRegistrationBean`
deprecated methods.

Fixes gh-11344
2018-01-08 22:05:00 -08:00
Phillip Webb 85d3f5a180 Fix NPE in test containers
Fix NPE accidentally introduced during refinement.
2018-01-08 22:04:59 -08:00
Phillip Webb fb614c64da Revert "Build against Spring Security 5.0.1 SNAPSHOT"
This reverts commit 2c52b9e87a
since the SNAPSHOT BOM doesn't appear to be published.

See gh-11573
2018-01-08 18:09:07 -08:00
Phillip Webb 2d76aad03e Further refine test containers 2018-01-08 17:24:42 -08:00
Phillip Webb 201da97774 Further refine test containers 2018-01-08 16:32:39 -08:00
Phillip Webb 2c52b9e87a Build against Spring Security 5.0.1 SNAPSHOT
See gh-11573
2018-01-08 15:19:06 -08:00
Phillip Webb cae02ce0b8 Make WebMvcMetricsFilter lazy
Update `WebMvcMetricsFilter` so that it no longer causes early
initialization of Spring MVC concerns.

Fixes gh-11571
2018-01-08 15:19:06 -08:00
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
2018-01-08 15:19:06 -08:00
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
2018-01-08 15:19:06 -08:00
Phillip Webb 25609c060e Polish 2018-01-08 15:19:06 -08:00
Phillip Webb a62a27e686 Polish InvalidConfigurationPropertyValueException 2018-01-08 15:05:52 -08:00
Phillip Webb 937a62e0b8 Polish ConfigurationPropertiesBinder
Remove unused code and polish implementation so that the binder is not
created on each invocation.
2018-01-08 15:05:52 -08:00
Madhura Bhave 9a6c339243 Use TestContainers util from spring-boot-test-support
See gh-10516
2018-01-08 14:05:15 -08:00
Andy Wilkinson 996b3ef7f2 Refine test containers 2018-01-08 14:05:05 -08:00
Phillip Webb 87bccb96f1 Merge branch '1.5.x' 2018-01-08 13:17:51 -08:00
Madhura Bhave 41c02b307b Try to convert value in MapBinder
Fixes gh-11493
2018-01-08 10:17:55 -08:00
Andy Wilkinson 47acf8acdc Start building against Reactor Bismuth snapshots
See gh-11572
2018-01-08 17:47:53 +00:00
Stephane Nicoll 0822fcf0c5 Merge branch '1.5.x' 2018-01-08 17:48:46 +01:00
Stephane Nicoll 66d58294d5 Merge branch '1.5.x' 2018-01-08 17:46:16 +01:00
Andy Wilkinson 12e1fcbfab Do not pass null credential from ConnectionString to Mongo builder 2018-01-08 15:21:14 +00:00
Stephane Nicoll f2d3f51f3f Merge branch '1.5.x' 2018-01-08 16:04:19 +01:00
Andy Wilkinson c7f5f0735d Stop reusing the Cluster when waiting for Cassandra to start
See gh-10516
2018-01-08 14:13:21 +00:00
Andy Wilkinson 927003e0b7 Polish 2018-01-08 13:59:14 +00:00
Stephane Nicoll 8941dc746e Polish 2018-01-08 14:38:10 +01:00
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
2018-01-08 14:24:57 +01:00
Stephane Nicoll 6daad1f562 Allow to inject the Environment in FailureAnalyzer
Closes gh-11569
2018-01-08 14:24:23 +01:00
Andy Wilkinson 6a0dbc5ce0 Upgrade to Sqlite Jdbc 3.21.0.1
Closes gh-11567
2018-01-08 12:36:42 +00:00
Andy Wilkinson 3f8c99d1b6 Upgrade to Selenium 3.8.1
Closes gh-11566
2018-01-08 12:36:42 +00:00
Andy Wilkinson b5ee0031b4 Upgrade to Selenium Htmlunit 2.29.0
Closes gh-11565
2018-01-08 12:36:42 +00:00
Andy Wilkinson b1371a703f Upgrade to Reactive Streams 1.0.2
Closes gh-11564
2018-01-08 12:36:42 +00:00
Andy Wilkinson 750265ee39 Upgrade to Jetty El 8.5.24
Closes gh-11563
2018-01-08 12:36:42 +00:00
Andy Wilkinson 2a9ab811bc Upgrade to Mongo Driver Reactivestreams 1.7.0
Closes gh-11562
2018-01-08 12:36:42 +00:00
Andy Wilkinson 461ab35249 Upgrade to Mongodb 3.6.1
Closes gh-11561
2018-01-08 12:36:42 +00:00
Andy Wilkinson bdced553f1 Upgrade to Mariadb 2.2.1
Closes gh-11560
2018-01-08 12:36:42 +00:00
Andy Wilkinson f051eb5858 Upgrade to Jooq 3.10.3
Closes gh-11559
2018-01-08 12:36:42 +00:00
Andy Wilkinson a7296fb8c0 Upgrade to Influxdb Java 2.8
Closes gh-11558
2018-01-08 12:36:42 +00:00
Andy Wilkinson 51026183c6 Upgrade to Infinispan 9.1.4.Final
Closes gh-11557
2018-01-08 12:36:42 +00:00
Andy Wilkinson 91e64c6a60 Upgrade to Hibernate Validator 6.0.7.Final
Closes gh-11556
2018-01-08 12:36:42 +00:00
Andy Wilkinson dbd05c57ec Upgrade to Flyway 5.0.5
Closes gh-11555
2018-01-08 12:36:42 +00:00
Andy Wilkinson 9918916181 Upgrade to Jaybird 3.0.3
Closes gh-11554
2018-01-08 12:36:42 +00:00
Andy Wilkinson a88ddca754 Upgrade to Janino 3.0.8
Closes gh-11553
2018-01-08 12:36:42 +00:00
Andy Wilkinson b91baa5d12 Upgrade to Assertj 3.9.0
Closes gh-11552
2018-01-08 12:36:42 +00:00
Andy Wilkinson 2487d8878a Upgrade to Commons Pool2 2.5.0
Closes gh-11551
2018-01-08 12:36:42 +00:00
Andy Wilkinson a43365ee58 Upgrade to Commons Dbcp2 2.2.0
Closes gh-11550
2018-01-08 12:36:42 +00:00
Andy Wilkinson 3a56398b68 Upgrade to Htmlunit 2.29
Closes gh-11549
2018-01-08 12:36:42 +00:00
Andy Wilkinson 330bd0a9b1 Upgrade to Jna 4.5.1
Closes gh-11548
2018-01-08 12:36:42 +00:00
Andy Wilkinson 9b6ea87f6a Upgrade to Javax Validation 2.0.1.Final
Closes gh-11547
2018-01-08 12:36:42 +00:00
Andy Wilkinson d98d40d7fd Upgrade to Rxjava2 2.1.8
Closes gh-11546
2018-01-08 12:36:42 +00:00
Andy Wilkinson 2f5dfd6238 Upgrade to Netty 4.1.19.Final
Closes gh-11545
2018-01-08 12:36:42 +00:00
Andy Wilkinson 955a1f5e50 Upgrade to Dropwizard Metrics 3.2.6
Closes gh-11544
2018-01-08 12:36:42 +00:00
Andy Wilkinson 833cbfdce5 Upgrade to Unboundid Ldapsdk 4.0.3
Closes gh-11543
2018-01-08 12:36:42 +00:00
Andy Wilkinson f54ee2ae23 Upgrade to Jmustache 1.14
Closes gh-11542
2018-01-08 12:36:42 +00:00
Andy Wilkinson f0ac8ab695 Upgrade to Rabbit Amqp Client 5.1.1
Closes gh-11541
2018-01-08 12:36:42 +00:00
Andy Wilkinson e7ebb94c5f Upgrade to Hazelcast 3.9.2
Closes gh-11540
2018-01-08 12:36:42 +00:00
Andy Wilkinson 62fe20c8a1 Upgrade to Caffeine 2.6.1
Closes gh-11539
2018-01-08 12:36:42 +00:00
Andy Wilkinson 1d4f5b654c Upgrade to Couchbase Client 2.5.3
Closes gh-11538
2018-01-08 12:36:42 +00:00
Stephane Nicoll b7f60c2ded Configure NettyStreamFactoryFactory by default if available
Closes gh-11526
Closes gh-10961
2018-01-08 10:46:51 +01:00
Stephane Nicoll 2b38ee9daf Polish 2018-01-08 10:38:59 +01:00
Stephane Nicoll 06572b0101 Polish 2018-01-08 10:10:50 +01:00
Stephane Nicoll f527c4b88c Add reference to migration guide
Closes gh-11302
2018-01-08 09:35:13 +01:00
Stephane Nicoll 71aad04ea9 Update copyright header 2018-01-06 17:42:21 +01:00
Johnny Lim 67a5144112 Remove unnecessary condition in ConfigurationPropertyName
Closes gh-11486
2018-01-06 17:40:55 +01:00
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
2018-01-05 18:55:13 +01:00
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
2018-01-05 16:29:18 +01:00
Stephane Nicoll c4db22007c Polish "Add support for additional Kafka listener properties"
Closes gh-11502
2018-01-05 14:35:04 +01:00
Gary Russell 6fcbf80b31 Add support for additional Kafka listener properties
See gh-11502
2018-01-05 14:11:34 +01:00
Stephane Nicoll 5baedf9275 Polish "Deduplicate tag values in metrics actuator endpoint"
Closes gh-11492
2018-01-05 13:42:58 +01:00
Jon Schneider ebb51d5533 Deduplicate tag values in metrics actuator endpoint
See gh-11492
2018-01-05 13:42:58 +01:00
Stephane Nicoll 1962cbb623 Polish
This is no longer necessary as of micrometer 1.0 rc5
2018-01-05 13:42:47 +01:00
Andy Wilkinson 94d5836618 Merge branch '1.5.x' 2018-01-05 12:02:11 +00:00
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
2018-01-05 12:19:22 +01:00
Andy Wilkinson 268b97bf98 No-op ResetMocksTestExecutionListener when Mockito is not present
Closes gh-11508
2018-01-05 11:13:36 +00:00
Stephane Nicoll 641013787d Polish 2018-01-05 11:40:26 +01:00
Stephane Nicoll ac004eabf3 Update copyright header
See gh-11510
2018-01-05 10:30:43 +01:00
Johnny Lim 37d8eedae3 Polish
Closes gh-11510
2018-01-05 10:29:22 +01:00
Madhura Bhave 7c5cf903fc Remove management.security.enabled from documentation
Fixes gh-11383
2018-01-04 16:23:14 -08:00
Madhura Bhave fc3b43e832 Wait for neo4j to start accepting connections
See gh-10516
2018-01-04 14:26:34 -08:00
Madhura Bhave e28915bd4b Make integration tests self-contained
Fixes gh-10516
2018-01-04 11:26:40 -08:00
Andy Wilkinson 3955c284f5 Start building against Spring Framework 5.0.3 snapshots
See gh-11503
2018-01-04 17:42:54 +00:00
Andy Wilkinson 0e3d873d85 Start building against Spring Integration 5.0.1 snapshots
See gh-11501
2018-01-04 16:56:23 +00:00
Brian Clozel 6525bc46ef Add Jetty libraries to Javadoc build 2018-01-04 16:17:20 +01:00
Brian Clozel c6a1fc93bd Polish 2018-01-04 14:48:23 +01:00
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).
2018-01-04 14:34:50 +01:00
Andy Wilkinson 0aedd3f11d Exclude tomcat-annotations-api and use javax.annotations-api instead
Closes gh-10133
2018-01-04 10:25:39 +00:00
Andy Wilkinson a7808388ad Make github-tag property available when generating Gradle plugin docs
Closes gh-11490
2018-01-04 10:11:41 +00:00
Stephane Nicoll 03dd53f347 Fix broken merge 2018-01-04 10:16:27 +01:00
Stephane Nicoll e3bfd797a3 Merge branch '1.5.x' 2018-01-04 10:11:32 +01:00
Phillip Webb bee5fa7fc6 Polish 2018-01-03 13:24:04 -08:00
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
2018-01-03 13:19:31 -08:00
Phillip Webb 37fe7bc8f6 Update validator background initializer
Update the validator background initializer to actually create
the validator.

Closes gh-11412
2018-01-03 13:19:31 -08:00
Madhura Bhave 716543828a Refactor some tests to use ApplicationContextRunner 2018-01-03 11:07:19 -08:00
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
2018-01-03 17:43:32 +01:00
Stephane Nicoll ea70b2ed2e Upgrade to Kotlin 1.2.10
See gh-11235
2018-01-03 17:25:14 +01:00
Andy Wilkinson 6d8676c268 Merge branch '1.5.x' 2018-01-03 15:04:00 +00:00
Stephane Nicoll 0515ca0dd0 Auto configure micrometer cache metrics
Closes gh-11221
2018-01-03 15:22:08 +01:00
Andy Wilkinson 38ac595615 Polish 2018-01-03 10:50:16 +00:00
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
2018-01-02 17:50:15 +00:00