Commit Graph

1231 Commits (fba2615a82f03db7427bd6b3953d751004d545b7)

Author SHA1 Message Date
dreis2211 542c3b7c1e Remove usage of Vector collection
Closes gh-11759
7 years ago
Phillip Webb 3bd940baaa Polish "Add more WebEndpointAutoConfiguration tests"
Closes gh-11754
7 years ago
Yunkun Huang d8527a9708 Add tests for WebEndpointAutoConfiguration
Closes gh-11754
See gh-11684
7 years ago
igor-suhorukov 093ca0a687 Use EnumMap whenever possible
Replace regular Map instances with EnumMap to reduce memory consumption.

Closes gh-11760
7 years ago
Phillip Webb ab6ad6aa4b Polish 7 years ago
Phillip Webb e53bef737f Rename property migrator classes
Rename packages and classes to match the new module name.

See gh-11301
7 years ago
Andy Wilkinson 1a1a62b744 Protect tests against Cassandra startup failures
On CI, Cassandra running inside the Docker container sometimes fails
to start or the start times out. This has nothing to do with Boot so
we  attempt to protect our tests from the flakiness of the container
by allowing 3 startup attempts.
7 years ago
Andy Wilkinson 292025936e Omit null properties from actuator endpoint API response examples
Closes gh-11757
7 years ago
Stephane Nicoll 41bfe07964 Upgrade to Spring Data Kay SR3
Closes gh-11666
7 years ago
Stephane Nicoll b1525f4f2e Rename spring-boot-deprecated-properties-support
Rename `spring-boot-deprecated-properties-support` to
`spring-boot-properties-migrator`.

See gh-11301
7 years ago
Stephane Nicoll 960989cfe6 Polish "Add support for anonymousReadOnly in LdapProperties"
Closes gh-11744
7 years ago
Stephane Nicoll af0bdc893b Add support for anonymousReadOnly in LdapProperties
See gh-11744
7 years ago
Eddú Meléndez 633aefa844 Move tests to use ApplicationContextRunner 7 years ago
Brian Clozel 145d46e093 Polish 7 years ago
Stephane Nicoll 1f4a32f0ad Add a way to signal that an endpoint request is invalid
This commit adds InvalidEndpointRequestException as a technology
agnostic way to signal that an endpoint request is invalid. When such
exception is thrown, the web layer translates that to a 400.

Rather than overriding the reason, this commit makes sure to reuse the
error infrastructure.

Closes gh-10618
7 years ago
Madhura Bhave 55c8ceb440 Polish 7 years ago
Brian Clozel be7c0a15f7 Move reactive ErrorAttributes into spring-boot
Closes gh-11714
7 years ago
Stephane Nicoll 674be06874 Upgrade to Spring Framework 5.0.3.RELEASE
Closes gh-11503
7 years ago
Stephane Nicoll 81b275fa2a Upgrade to Reactor Bismuth-SR5
Closes gh-11572
7 years ago
andrey.onufreyko b19dcb13e2 Replace string arguments with char
Optimize method calls by replacing single character String arguments
with char.

Closes gh-11680
7 years ago
Johnny Lim 768e7c07e6 Polish
Closes gh-11720
7 years ago
dreis2211 5f66c09844 Narrow scope of some variables
Closes gh-11743
7 years ago
dreis2211 b7e663e820 Polish
Closes gh-11724
7 years ago
Phillip Webb 66d5c03c39 Add checkstyle to prevent reactor Assert import 7 years ago
Phillip Webb d0ca1a3eea Rename configuration-analyzer
Rename `spring-boot-configuration-analyzer` to
`spring-boot-deprecated-properties-support`.

Also renamed classes to match and polished some of the code.

See gh-11301
7 years ago
Phillip Webb 66f8279f65 Polish 7 years ago
Andy Wilkinson 77596fa8e6 Polish 7 years ago
Andy Wilkinson a41e28eea2 Merge branch '1.5.x' 7 years ago
Andy Wilkinson f5a8c2a705 Upgrade to Postgresql 42.2.0
Closes gh-11741
7 years ago
Andy Wilkinson 26ea4037a3 Upgrade to Neo4j Ogm 3.0.3
Closes gh-11740
7 years ago
Andy Wilkinson d5b58a60e0 Upgrade to Jetty El 8.5.24.1
Closes gh-11739
7 years ago
Andy Wilkinson 89953f0d46 Upgrade to Jooq 3.10.4
Closes gh-11738
7 years ago
Andy Wilkinson 3b760d3620 Upgrade to Kotlin 1.2.20
Closes gh-11737
7 years ago
Andy Wilkinson 0ebff9aa80 Upgrade to Flyway 5.0.6
Closes gh-11736
7 years ago
Andy Wilkinson 37d3416627 Upgrade to Elasticsearch 5.6.6
Closes gh-11735
7 years ago
Andy Wilkinson c825167ec7 Upgrade to Netty 4.1.20.Final
Closes gh-11734
7 years ago
Andy Wilkinson 67c74ff123 Upgrade to Embedded Mongo 2.0.1
Closes gh-11733
7 years ago
Andy Wilkinson 884486aba7 Upgrade to Hikaricp 2.7.6
Closes gh-11732
7 years ago
Andy Wilkinson 315d2b620e Upgrade to Unboundid Ldapsdk 4.0.4
Closes gh-11731
7 years ago
Andy Wilkinson 59e577d9ac Upgrade to Cassandra Driver 3.4.0
Closes gh-11730
7 years ago
Andy Wilkinson 1fdfcfd042 Upgrade to Couchbase Client 2.5.4
Closes gh-11729
7 years ago
Andy Wilkinson 61eb93f9b0 Upgrade to Atomikos 4.0.6
Closes gh-11728
7 years ago
Andy Wilkinson b5444430ca Merge branch '1.5.x' 7 years ago
Brian Clozel a8baf42f2f Ensure that CharacterEncodingFilter is ordered first
This commit makes sure that `CharacterEncodingFilter` is ordered with
the `Ordered.HIGHEST_PRECEDENCE` and that other filters, potentially
reading the request body, are ordered after.

In this particular case, both `WebMvcMetricsFilter` and
`ErrorPageFilter` are now ordered at `Ordered.HIGHEST_PRECEDENCE + 1` to
avoid cases where the request body is read before the encoding
configuration is taken into account.

Closes gh-11607
7 years ago
Stephane Nicoll 6aa639253a Analyse the environment for properties that are no longer supported
This commit adds a new `spring-boot-configuration-analyzer` module that
can be added to any app to analyze its environment on startup.

Each configuration key that has a matching replacement is temporarily
transitioned to the new name with a `WARN` report that lists all of
them.

If the project defines configuration keys that don't have a replacement,
an `ERROR` report lists them with more information if it is available.

Closes gh-11301
7 years ago
sdeleuze d1b18b75d7 Manage dependencies for kotlin-stdlib-jdk7/8
As explained in the "Split package compatibility" section of
https://blog.jetbrains.com/kotlin/2017/09/kotlin-1-2-beta-is-out/
kotlin-stdlib-jdk7 and kotlin-stdlib-jdk8 are the recommended
dependencies to use with Kotlin 1.2 for Java 9+ compatibility.

Closes gh-11716
7 years ago
Johnny Lim a0f6abffb6 Use the platform-specific line separator
Closes gh-11674
7 years ago
Johnny Lim 13a7c9df4b Add missing null checks and volatile keyword
Closes gh-11692
7 years ago
Andy Wilkinson 66164bff14 Polish 7 years ago
Andy Wilkinson fbb1ba1bb3 Move actuator mappings introspection classes into dedicated packages
Closes gh-9979
7 years ago
Andy Wilkinson e973eaf2c3 Configure WebClient to use same address (IPv4 or IPv6) as server
Closes gh-11712
7 years ago
Stephane Nicoll 886ee9c870 Polish 7 years ago
Stephane Nicoll 68cc373daa Polish 7 years ago
Stephane Nicoll 126f8783a2 Polish 7 years ago
Phillip Webb 80bba046a3 Fix broken javadoc import 7 years ago
Phillip Webb bda9b892b3 Add direct WebFlux and WebMvc endpoint support
Add `@ControllerEndpoint` and `@RestControllerEndpoint` annotations that
can be used to develop a Spring-only request mapped endpoint. Both
Spring MVC and Spring WebFlux are supported.

This feature is primarily for use when deeper Spring integration is
required or when existing Spring Boot 1.5 projects want to migrate to
Spring Boot 2.0 without re-writing existing endpoints. It comes at the
expense of portability, since such endpoints will be missing from
Jersey.

Fixes gh-10257
7 years ago
Phillip Webb 340ef52f78 Refactor endpoint path concerns
Create a `PathMappedEndpoint` interface that allows any `ExposedEndpoint`
to provide root path details. The `EndpointPathResolver` interface has
been renamed to `PathMapper` and is now only used during endpoint
discovery.

`EndpointPathProvider` has been replaced with `PathMappedEndpoints`
which simply finds relevant path mapped endpoints.

Fixes gh-10985
7 years ago
Phillip Webb 1d39feffea Overhaul actuator endpoint code
Refactor several areas of the actuator endpoint code in order to make
future extensions easier. The primary goal is to introduce the concept
of an `ExposableEndpoint` that has technology specific subclasses and
can carry additional data for filters to use. Many other changes have
been made along the way including:

* A new EndpointSupplier interface that allows cleaner separation of
  supplying vs discovering endpoints. This allows cleaner class names
  and allows for better auto-configuration since a user can choose to
  provide their own supplier entirely.

* A `DiscoveredEndpoint` interface that allows the `EndpointFilter`
  to be greatly simplified. A filter now doesn't need to know about
  discovery concerns unless absolutely necessary.

* Improved naming and package structure. Many technology specific
  concerns are now grouped in a better way. Related concerns are
  co-located and concepts from one area no longer leakage into another.

* Simplified `HandlerMapping` implementations. Many common concerns have
  been pulled up helping to create simpler subclasses.

* Simplified JMX adapters. Many of the intermediary `Info` classes have
  been removed. The `DiscoveredJmxOperation` is now responsible for
  mapping methods to operations.

* A specific @`HealthEndpointCloudFoundryExtension` for Cloud Foundry.
  The extension logic used to create a "full" health endpoint extension
  has been made explicit.

Fixes gh-11428
Fixes gh-11581
7 years ago
Phillip Webb dc935fba48 Polish 7 years ago
Madhura Bhave d9ff51ccd3 Add StaticResourceRequest for WebFlux Security
Closes gh-11040
7 years ago
Madhura Bhave 5e2cc02499 Move servlet specific security auto-config 7 years ago
Stephane Nicoll 5c164d850e Upgrade to Spring Kafka 2.1.1.RELEASE
Closes gh-11524
7 years ago
Andy Wilkinson fedc4647e1 Use same InetAddress for client and server in endpoint tests
Previously, the server was created with out an explicitly configured
address. This lead to it using any local address which will prefer
IPv6 (::0) if it's available. By contrast, the client was created
with a base URL that specified localhost as the host. This meant the
the client would prefer to connect to IPv4. Normally this wouldn't
cause a problem as nothing would be listening on the port in the IPv4
stack so the client would then connect to the server being tested
using the IPv6 stack. However, if another process was listening to the
port in the IPv4 stack, the client would connect to the wrong server.
This could lead to an unexpected 404 response (if the wrong server
was an HTTP server) or a hang if it was not.

There's a chance, although I think it's unlikely, that the problem
described above is the cause of gh-10569. I think it's unlikely as
the hang tracked by gh-10569 only occurs when running the WebFlux
endpoint integration tests using Reactor Netty. If it was the problem
described above, there's no reason that I can think of why we
wouldn't have also seen it with the Web MVC endpoint integration
tests.
7 years ago
Brian Clozel fb7026b832 Add documentation for HTTP/2 support in Jetty
See gh-10902
7 years ago
Stephane Nicoll c926bed6f5 Polish "Fix modifiers order"
Closes gh-11681
7 years ago
igor-suhorukov e2d05607f2 Fix modifiers order
See gh-11681
7 years ago
Johnny Lim 9d24186942 Use this() in EndpointRequests
Closes gh-11690
7 years ago
Brian Clozel 247b7f0842 Fix WebFlux default error view for null exception messages
This commit prevents NullPointerExceptions when the default HTML error
view is being rendered with a `null` message.

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