Commit Graph

12809 Commits

Author SHA1 Message Date
Brian Clozel 7bbae21d62 Start documenting WebFlux support
This commit adds new reference documentation sections about WebFlux
support in Spring Boot:

* Support for multiple HTTP servers (gh-8403)
* `CodecCustomizer` and JSON codecs (gh-8897, gh-9166)
* `WebClient.Builder` auto-configuration (gh-9522)
* Tests with `@WebFluxTest` (gh-8401)
* `WebTestClient` auto-configuration (gh-8399)
* Support for Thymeleafi and Mustache templating (gh-8124, gh-8648)
* Choose another HTTP server with WebFlux (closes gh-9690)
2017-07-07 17:17:56 +02:00
Stephane Nicoll ef5c2afcc9 Polish 2017-07-07 11:11:16 +01:00
Andy Wilkinson dd0ce54425 Improve the type-safety of ContextLoader for servlet and reactive web 2017-07-07 11:11:16 +01:00
Andy Wilkinson 19ddfad63e Migrate some more tests to the new ContextLoader 2017-07-07 11:11:16 +01:00
Andy Wilkinson e91b4d0bb3 Polish ContextLoader 2017-07-07 11:11:16 +01:00
Phillip Webb eb17aa06f9 Merge branch '1.5.x' 2017-07-06 18:38:52 -07:00
Phillip Webb aa57ca7e18 Polish 2017-07-06 16:53:04 -07:00
Madhura Bhave 6bc498cb3a Polish 2017-07-06 15:52:32 -07:00
Madhura Bhave 31101bdbb7 Merge branch '1.5.x' 2017-07-06 15:49:58 -07:00
Madhura Bhave 222a09cfd3 Make ROOT logger name case-insensitive when setting log level
Fixes gh-9693
2017-07-06 14:25:30 -07:00
Madhura Bhave 8dacbbf18a Merge branch '1.5.x' 2017-07-05 18:59:52 -07:00
Madhura Bhave 96b1a8547f Decorate KeyManager for Undertow only when an alias is configured
Fixes gh-9351
2017-07-05 18:40:09 -07:00
Andy Wilkinson b11053afc4 Align with breaking API changes in Spring Data MongoDB 2017-07-04 17:31:07 +01:00
Brian Clozel f2e77e46cd Auto-configure codecs in WebTestClient
This commit applies what's been done in gh-9166 for WebFlux client and
server, but for the `WebTestClient` auto-configuration.

`WebTestClient` can be configured for mock or integration tests and this
change applies `CodecCustomizer` beans to the client being built.

Closes gh-9577
2017-07-03 11:23:06 +02:00
Brian Clozel 64777204d8 Apply codecs auto-configuration to WebFlux
This commit introduces `CodecCustomizer`, a new callback-based interface
for customizing the codecs configuration for WebFlux server and client.

Instances of those customizers are applied to the `WebClient.Builder`
and to the `WebFluxAutoConfiguration` (which deals with both WebFlux and
WebFlux.fn).

For now, only Jackson codecs are auto-configured, by getting the
`ObjectMapper` instance created by Spring Boot. Other codecs can be
configured as soon as WebFlux supports those.

Closes gh-9166
2017-07-03 11:23:06 +02:00
Brian Clozel 4ce726b1a0 Auto-configure WebClient.Builder
This commit adds a new customizer interface for applying
configuration changes to `WebClient.Builder` beans:
`WebClientCustomizer`.

The new WebClient auto-configuration will make available, as a
prototype scoped bean, `WebClient.Builder` instances.
Once injected, developers can use those to create `WebClient`
instances to be used in their application.

`WebClientCustomizer` beans are sorted according to their
`Order` and then applied to the builder instances.

Closes gh-9522
2017-07-03 11:23:06 +02:00
Andy Wilkinson 89af4a65cf Upgrade to Sqlite Jdbc 3.19.3
Closes gh-9665
2017-07-02 18:36:53 +01:00
Andy Wilkinson 535005da7b Upgrade to Mockito 2.8.47
Closes gh-9664
2017-07-02 18:36:53 +01:00
Andy Wilkinson 3eafd04ebc Upgrade to Influxdb Java 2.7
Closes gh-9663
2017-07-02 18:36:53 +01:00
Andy Wilkinson 58414b793a Upgrade to Elasticsearch 5.4.3
Closes gh-9662
2017-07-02 18:36:52 +01:00
Andy Wilkinson 7080500db9 Upgrade to Commons Lang3 3.6
Closes gh-9661
2017-07-02 18:36:52 +01:00
Andy Wilkinson 73a1bb848d Upgrade to Activemq 5.15.0
Closes gh-9660
2017-07-02 18:36:51 +01:00
Andy Wilkinson cc4e8212dc Upgrade to Rxjava2 2.1.1
Closes gh-9659
2017-07-02 18:36:51 +01:00
Andy Wilkinson 2b24ded1c1 Upgrade to Mssql Jdbc 6.2.0.jre8
Closes gh-9658
2017-07-02 18:36:50 +01:00
Andy Wilkinson 3f69b84c43 Upgrade to Json Path 2.3.0
Closes gh-9657
2017-07-02 18:36:50 +01:00
Andy Wilkinson 154837eae4 Upgrade to Cassandra Driver 3.3.0
Closes gh-9656
2017-07-02 18:36:50 +01:00
Andy Wilkinson 6db4330328 Prevent Elasticsearch from configuring Netty's available processors 2017-07-01 10:28:11 +01:00
Stephane Nicoll c0e06f1b9b Polish 2017-07-01 09:57:05 +02:00
Stephane Nicoll 82860d6a1f Add reference to release notes
Closes gh-9646
2017-07-01 09:55:38 +02:00
Madhura Bhave b19b515549 Add failure analyzer for invalid config property name
Closes gh-9545
2017-06-30 13:38:21 -07:00
Stephane Nicoll c40668ecbd Polish 2017-06-30 16:48:45 +02:00
Stephane Nicoll de2cdd8528 Use lettuce rather than Jedis for actuator tests 2017-06-30 15:44:15 +02:00
Andy Wilkinson 2204dc6f79 Start building against Spring Security OAuth 2.2.0 snapshots
Closes gh-9589
2017-06-30 14:29:56 +01:00
Stephane Nicoll 6e32f49630 Migrate HealthIndicatorAutoConfigurationTests to ContextLoader 2017-06-30 14:52:56 +02:00
Stephane Nicoll 0fcf6a0e51 Allow to specify multiple auto-configs in autoConfigFirst 2017-06-30 14:52:31 +02:00
Stephane Nicoll f2fe2c4dd5 Polish 2017-06-30 14:08:55 +02:00
Stephane Nicoll eb4f59094a Fix typo 2017-06-30 11:55:37 +02:00
Stephane Nicoll 158510f1be Add reference to GraphQL starter
Closes gh-8026
2017-06-30 11:05:58 +02:00
Madhura Bhave 18816c33ab Test case to prove binding to collection calls setter
Closes gh-9290
2017-06-29 15:52:21 -07:00
Brian Clozel 915ad47a0e Merge pull request #9637 from rstoyanchev/bismuth-snapshot
Upgrade to Bismuth snapshots
2017-06-30 00:12:46 +02:00
Rossen Stoyanchev c81532c48a Upgrade to Bismuth snapshots 2017-06-29 16:34:16 -04:00
Madhura Bhave f6b613b0d4 Merge branch '1.5.x' 2017-06-29 11:33:56 -07:00
Madhura Bhave a064a52f0b Document health aggregation strategy and default status mappings
Closes gh-9580
2017-06-29 11:31:40 -07:00
Madhura Bhave 4dc5346a6d Merge branch '1.5.x' 2017-06-29 10:50:38 -07:00
Madhura Bhave 528e334e1c Document @EnableWebSecurity behavior when management security disabled
Closes gh-9270
2017-06-29 10:45:17 -07:00
Stephane Nicoll 5ecdee0e1b Polish 2017-06-29 16:15:35 +02:00
Stephane Nicoll 18ba414000 Add test helper to manipulate the ApplicationContext
This commit adds ContextLoader, a test helper that configures an
ApplicationContext that is meant to simulate a particular
auto-configuration scenario.

The auto-configuration, user configuration and environment can be
customized. The loader invokes a ContextConsumer to assert the context
and automatically close the context once it is done.

Concretely, tests can create a shared field instance of that helper with
the shared configuration to increase its visibility and tune the context
further in each test.

If the context is expected to fail, `loadAndFail` allows to optionally
assert the root exception and consume it for further assertions.

This commit also migrates some tests to illustrate the practical use of
the helper

Closes gh-9634
2017-06-29 15:34:10 +02:00
Andy Wilkinson 216c5c2179 Set executable permission on Gradle-built archives that include launch script
Closes gh-9632
2017-06-29 12:45:58 +01:00
Stephane Nicoll 8bfd6e890c Merge pull request #9633 from ZhijunZhao:starter
* pr/9633:
  Add GitHub link for Azure Spring Boot Starters
2017-06-29 10:35:45 +02:00
Zhijun Zhao 715442601c Add GitHub link for Azure Spring Boot Starters
Closes gh-9633
2017-06-29 10:35:21 +02:00