Commit Graph

1063 Commits (488965bb0611fca0dcaa4a3e2505096dd2a2947b)

Author SHA1 Message Date
Phillip Webb 0b81f78a2a Revert "Create CloudFoundry-specific EndpointWebExtension"
This reverts commit 7189f426ed.
7 years ago
Phillip Webb fc29f54868 Make Context implement AnnotationConfigRegistry
Update `AnnotationConfigReactiveWebServerApplicationContext` to
implement `AnnotationConfigRegistry`.

Fixes gh-11686
7 years ago
Phillip Webb f3379668ac Polish 7 years ago
Phillip Webb 6d93573db0 Merge branch '1.5.x' 7 years ago
Stephane Nicoll ba6be4f22f Merge branch '1.5.x' 7 years ago
Stephane Nicoll 8704cf1fe7 Harmonize metric property names
See gh-11667
7 years ago
Stephane Nicoll efd941bbe0 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 6086bc714f Fix json structure 7 years ago
Stephane Nicoll aa748cb0ef Polish "Use System.lineSeparator()""
Closes gh-11665
7 years ago
Johnny Lim d8c83af987 Use System.lineSeparator()
See gh-11665
7 years ago
Stephane Nicoll 7002507304 Polish 7 years ago
Stephane Nicoll beaa49a2d6 Polish "Add auto-configuration for RabbitMQ metrics"
Closes gh-10887
7 years ago
Arnaud Cogoluègnes 58c8c4d56a Add auto-configuration for RabbitMQ metrics
See gh-10887
7 years ago
Andy Wilkinson 1d9f9716e9 Merge branch '1.5.x'
# Conflicts:
#	spring-boot-project/spring-boot-dependencies/pom.xml
7 years ago
Andy Wilkinson e1ec0562b2 Revert "Disable Reactor Netty's use of kqueue/epoll"
The failure continued to occur so this commit reverts commit
42c1ce65e9.

See gh-10569
7 years ago
Andy Wilkinson d5c9b9e12f Start building against snapshots for Spring Data Kay SR3
See gh-11666
7 years ago
Stephane Nicoll 5cb6c086b6 Rename micrometer instrumentation flags
Closes gh-11667
7 years ago
Stephane Nicoll 49b5fe0c29 Polish
As `validation-api` 2 is available by default, this commit adds the
integration test as a regular test case. The integration test is kept to
exercise what happens in a standard project.

See gh-11512
7 years ago
Stephane Nicoll 60f5cf10ba Merge branch '1.5.x' 7 years ago
Andy Wilkinson 849baa4c02 Do not require after in audit events endpoint
Closes gh-11605
7 years ago
Brian Clozel c233125f1d Don't render error view if response is committed
This commit prevents the default error view from rendering itself if the
response has been committed already. In this case, it is impossible to
change the HTTP response status and write a proper response - trying to
do so often results in a `IllegalStateException` since the response body
has already been written to.

Fixes gh-11580
7 years ago
Andy Wilkinson 42c1ce65e9 Disable Reactor Netty's use of kqueue/epoll
There is a suspicion that the use of epoll is causing the intermittent
failures being tracked by gh-10569. This commit disables the use of
epoll to see if it improves the situation.

See gh-10569
7 years ago
Stephane Nicoll 40c537daa0 Polish 7 years ago
Andy Wilkinson 87182a3a2b Stop configuring the Logback console appender to use UTF-8
Previously, the default Logback configuration set the console
appenders charset to UTF-8. This was inconsistent with the Logback
file appender and Log4j2's console and file appenders, all of which
used the platform's default.

This commit removes the configuration of the Logback console
appender's charset. This means that it will use the platform's
default charset, aligning it with the Logback file appender and
both Log4j2 appenders.

Closes gh-11611
7 years ago
Andy Wilkinson 54c0cf513b Polish 7 years ago
Andy Wilkinson 3904f49c9f Configure ServletContext before initializing S…C…Initializer beans
Previously, the ServletContext was configured after any
ServletContextInitializer beans had been initialized. This meant that
any configuration class that provided such a bean would be initialized
before the ServletContext was configured. If the configuration class
used the ServletContext in its initializtaion that it would see it in
its default, unconfigured state.

This commit reworks the configuration of the ServletContext so that
it happens before any ServletContextInitializer beans are initialized.

Closes gh-10699
7 years ago
Andy Wilkinson d8b3c7cc3c Make AnnotationConfigSWSApp…Context implement AnnotationConfigRegistry
Closes gh-11658
7 years ago
Johnny Lim e7185ea2b1 Polish
Closes gh-11655
7 years ago
Stephane Nicoll d43346d6c2 Polish "Fix potential resource leaks"
Closes gh-11624
7 years ago
igor-suhorukov 5a4238acfc Fix potential resource leaks
See gh-11624
7 years ago
Johnny Lim d27b46cf73 Fix a wrong import for SocketChannel
Closes gh-11648
7 years ago
Eddú Meléndez cecef7a7df Upgrade to JUnit Jupiter 5.0.3
Closes gh-11649
7 years ago
Stephane Nicoll f8af6c8134 Merge branch '1.5.x' 7 years ago
Andy Wilkinson ffc99b03dd Remove use of deprecated Gradle API from plugin's public API
This commit removes the use of the incubating PropertyState and
Provider API that was introduced in Gradle 4.0 and deprecated in
Gradle 4.3. A not-deprecated-but-still-incubating replacement was
introduced in Gradle 4.3. The short life of PropertyState and Provider
has made me wary of using an incubating Gradle API in our public API
as it may not be stable for long. Therefore, this commit does not move
to the replacement as it is incubating. Instead, it falls back to
using Gradle's convention mapping. This is internal API, but its use
is not part of our public API and I perceive the risk of using it to
be lower than using the deprecated and/or incubating API alternatives.

Closes gh-11640
7 years ago
Andy Wilkinson 5e17fc775c Test the Gradle plugin against Gradle 4.4.1
Closes gh-11654
7 years ago
Andy Wilkinson 2668e41dd5 Make it easier to just use Boot’s dependency management with Gradle
Closes gh-11059
7 years ago
Andy Wilkinson 3cf1fb6763 Polish formatting in Actuator API documentation 7 years ago
Andy Wilkinson 67a299020b Rework mappings endpoint
Improve the structure of the response and include mappings from
WebFlux and Servlet and Filter registrations in addition to the
mappings from Spring MVC.

Closes gh-9979
7 years ago
Brian Clozel 1f26a0314c Sanitize inputs in default reactive HTML error view
This commit uses HTML escaping to sanitize error inputs that are
displayed in the default reactive HTML error view.

Fixes gh-11582
7 years ago
Brian Clozel 381d759ef1 Support server.compression with reactive servers
This commit adds support for HTTP compression with reactive servers,
with the following exceptions:

* `server.compression.mime-types` and
`server.compression.exclude-user-agents` are not supported by Reactor
Netty at the moment

* `server.compression.min-response-size` is only supported by Reactor
Netty right now, since other implementations rely on the
`"Content-Length"` HTTP response header to measure the response size
and most reactive responses are using `"Transfer-Encoding: chunked"`.

Closes gh-10782
7 years ago
Stephane Nicoll bf88073f7e Tighten Liquibase auto-configuration to require Liquibase 3
Closes gh-11641
7 years ago
Stephane Nicoll 023bc13fb6 Merge branch '1.5.x' 7 years ago
Brian Clozel 1e648801bd Move spring.mvc.media-types to content-negotiation
This commit moves "spring.mvc.media-types" to the
"spring.mvc.content-negotiation.*" namespaces introduced in gh-11105.

Closes gh-11636
7 years ago
Stephane Nicoll 76057be9ac Merge branch '1.5.x' 7 years ago
Andy Wilkinson f7ddacf937 Update AuditEventRepository javadoc to describe behaviour of after
The behaviour was changed in 2b99962a. This commit updates the
javadoc to hopefully clarify that Instant.isAfter(Instant) is used.

Closes gh-11612
7 years ago
Andy Wilkinson 5b8a2f9675 Improve context hierarchy handling in Actuator endpoints
Previously, a number of Actuator endpoints ignored a context hierarchy
or assumed that it would always be linear. This commit reworks the
affected endpoints so that the no longer assume a linear hierarchy.

A side-effect of a non-linear hierarchy is that there may be multiple
different beans with the same name (in a linear hierarchy, a bean
with the same name as one in an ancestor context, replaces that bean).
The affected endpoints have also been updated so that, when bean names
are used as keys, those keys are grouped by application context. This
prevents a bean in one context from accidentially overwriting a bean
in another context.

Closes gh-11019
7 years ago
sdeleuze d4c91d2fe0 Improve Kotlin extensions doc about type erasure
Since type erasure can be fixed only when using
ParameterizedTypeReference based Java methods, TestRestTemplate
API documentation should be updated to specify which extensions
are subject to type erasure, and which are not.

Closes gh-11604
7 years ago
Gary Russell 0af67b86ed Polish Kafka documentation
Closes gh-11638
7 years ago
Brian Clozel 22c22a1ced Move server.session.* to server.servlet.session.*
Closes gh-11589
7 years ago
Stephane Nicoll 199d2e30d7 Polish 7 years ago
Andy Wilkinson 23d8d608c4 Polish 7 years ago
Stephane Nicoll b2ec7c58a6 Merge branch '1.5.x' 7 years ago
Stephane Nicoll e258884dd3 Polish doc
Closes gh-11529
7 years ago
Andy Wilkinson f7e408945e Use Instant for Session creation and last accessed times
Closes gh-10976
7 years ago
Brian Clozel 67e5897c40 Disable suffix pattern matching in Spring MVC
This commit disables by default suffix pattern matching in Spring MVC
applications. As described in the Spring MVC documentation (see
https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#mvc-ann-requestmapping-suffix-pattern-match),
this is considered as best practice.

This change also introduces new configuration properties to achieve
similar results in a safer way (using query parameters) or to rollback
to the former default.

Closes gh-11105
7 years ago
Stephane Nicoll 2bf662f231 Remove hdrhistogram managed dependency
Closes gh-10923
7 years ago
Johnny Lim 77150f8dc9 Polish
Closes gh-11630
7 years ago
Stephane Nicoll 3f88906b97 Fix handling of ResponseStatusException
This commit updates DefaultErrorAttributes to handle
ResponseStatusException explicitly. This exception is used in a
WebFlux application to signal that the processing of the query has
failed with an HTTP status code and a reason phrase. The latter is now
properly mapped to the `message` attribute of the response body.

Closes gh-11614
7 years ago
Eddú Meléndez fb88a56af0 Upgrade to Spring Session 2.0.0.RELEASE
Closes gh-11619
7 years ago
Johnny Lim f6780bed65 Remove an unnecessary assertion
Closes gh-11622
7 years ago
Andy Wilkinson 2b99962a85 Replace use of Date with OffsetDateTime and Instant in Actuator
Closes gh-10976
7 years ago
Stephane Nicoll a99adb1047 Upgrade to Micrometer 1.0.0-rc.7
See gh-11598
7 years ago
Stephane Nicoll 8aaf95b792 Polish 7 years ago
Johnny Lim 136e26e307 Fix typo in DynamicRegistrationBean class name
Closes gh-11606
7 years ago
Stephane Nicoll ae3cd75d1a Polish "Upgrade to Micrometer 1.0.0-rc.6"
Closes gh-11598
7 years ago
Jon Schneider ccc820f723 Upgrade to Micrometer 1.0.0-rc.6
See gh-11598
7 years ago
Brian Clozel 69d5b7a4e8 Add missing header expectations in tests
Fixes gh-11318
7 years ago
Stephane Nicoll f10210f769 Make MetricsEndpoint response types public
Closes gh-11602
7 years ago
Andy Wilkinson a051e30fe0 Publish an event after refresh but before runners are called
This commit partially reverts the changes made in ec470fbe. While
the started message continues to be logged before any application and
command line runners are called, the publishing of
ApplicationReadyEvent now happens after the runners have been called.
Additionally, a new event, named ApplicationStartedEvent, has been
introduced. This new event is published after the context has been
refreshed but before any application and command line runners are
called.

Closes gh-11484

The reworking of the events described above also means that either
an ApplicationReadyEvent or an ApplicationFailedEvent will be
published and the latter should never be published once the former
has been published.

Closes gh-11485
7 years ago
Stephane Nicoll 4a9123d6e3 Detect user-defined RedisCacheConfiguration
This commits improves the cache auto-configuration for Redis by looking
up a custom "RedisCacheConfiguration" bean that allows to take full
control over the `RedisCacheManager`.

Closes gh-11599
7 years ago
Stephane Nicoll 7d12dc2e02 Polish description
See gh-11428
7 years ago
Stephane Nicoll 7189f426ed Create CloudFoundry-specific EndpointWebExtension
Closes gh-11428
7 years ago
Brian Clozel 6ecdd6e9c1 Add SSL client Auth support with Reactor Netty
This commit adds SSL client Authentication support
to Reactor Netty and adds the relevant tests to
`AbstractReactiveWebServerFactoryTests` for all servers.

Fixes gh-11488
7 years ago
Brian Clozel 98ac2218db Apply server.undertow.* config to reactive servers
This commit applies `server.undertow.*` configuration properties
to Undertow when configured as a reactive web server.

See gh-11500
7 years ago
Brian Clozel 15bc718248 Apply server.jetty.* config to reactive servers
This commit applies `server.jetty.*` configuration properties
to Jetty when configured as a reactive web server.

It also removes some infrastructure support for Jetty 8, which
is not supported anymore in Spring Boot 2.0 (partial fix for
gh-11504).

See gh-11500
7 years ago
Brian Clozel d264af8142 Apply server.tomcat.* config to reactive servers
This commit applies most `server.tomcat.*` configuration
properties to Tomcat when set up as a reactive web server.

Some Servlet-specific properties are not applied:

* server.tomcat.additional-tld-skip-patterns
* server.tomcat.redirect-context-root
* server.tomcat.use-relative-redirects

Fixes gh-11334
7 years ago
Stephane Nicoll 4b59d5f517 Rationalize AuditEventRepository contract
Closes gh-11331
7 years ago
Stephane Nicoll b2eae0006d Polish "Make GsonAutoConfiguration align with JacksonAutoConfiguration"
Closes gh-11591
7 years ago
Johnny Lim 50518514b0 Make GsonAutoConfiguration align with JacksonAutoConfiguration
See gh-11591
7 years ago
Stephane Nicoll 027e6baba5 Improve documentation for WebTestClient
Closes gh-11203
7 years ago
Andy Wilkinson db83a80deb Correct test expectations following changes to application context ID
See gh-11023
7 years ago
Andy Wilkinson 2059922735 Make ContextIdApplicationContextInitializer produce unique IDs
Closes gh-11023
7 years ago
Madhura Bhave e57aafd63d Provide EndpointRequest for WebFlux-based Security
Closes gh-11022
7 years ago
Madhura Bhave fa8bca41f8 Fix javadoc 7 years ago
Madhura Bhave 8fedc29ed7 Update copyright year of changed files 7 years ago
Madhura Bhave 3d30c62162 Fix package tangle in cloudfoundry configuration
Fixes gh-11273
7 years ago
Phillip Webb b078698f20 Update copyright year of changed files 7 years ago
Phillip Webb b3ec2c9d1d Polish 7 years ago
Phillip Webb b9bb31cfd4 Extract RestDocsProperties
Extract properties used by RestDocs to their own class.
7 years ago
Stephane Nicoll c373c0e830 Add missing artifact required for the Javadoc task
See gh-10696
7 years ago
Stephane Nicoll df647605af Merge branch '1.5.x' 7 years ago
Andy Wilkinson 964939d3a9 Polish "Add auto-configuration for using REST Docs with WebTestClient"
Closes gh-10696
7 years ago
Roman Zaynetdinov ab7c47d340 Add auto-configuration for using REST Docs with WebTestClient
See gh-10969
7 years ago
Andy Wilkinson 16c52bce84 Introduce WebTestClientBuilderCustomizer callback
Closes gh-11579
7 years ago
Andy Wilkinson 0666a62434 Upgrade to Javax Cache 1.1.0
Closes gh-11578
7 years ago
Stephane Nicoll 1b1852d5c8 Polish WebFlux.fn documentation
Closes gh-11576
7 years ago
Johnny Lim b8706c47d6 Use instance equality for Class
Closes gh-11534
7 years ago
Johnny Lim 0f0c6e0729 Polish
Closes gh-11536
7 years ago
Phillip Webb 286a3bb10a Polish GSON customization support
Closes gh-11498
7 years ago
ioann ba552f1d24 Allow GSON customization via properties or beans
Update GSON support to allow customization with either properties or
customize beans.

See gh-11498
7 years ago
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
7 years ago
Phillip Webb 85d3f5a180 Fix NPE in test containers
Fix NPE accidentally introduced during refinement.
7 years ago
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
7 years ago
Phillip Webb 2d76aad03e Further refine test containers 7 years ago
Phillip Webb 201da97774 Further refine test containers 7 years ago
Phillip Webb 2c52b9e87a Build against Spring Security 5.0.1 SNAPSHOT
See gh-11573
7 years ago
Phillip Webb cae02ce0b8 Make WebMvcMetricsFilter lazy
Update `WebMvcMetricsFilter` so that it no longer causes early
initialization of Spring MVC concerns.

Fixes gh-11571
7 years ago
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