Commit Graph

5447 Commits

Author SHA1 Message Date
Andy Wilkinson a0999dadb7 Merge branch '2.1.x'
Closes gh-16642
2019-04-24 13:57:52 +01:00
Andy Wilkinson ba0279be14 Remove race condition in TaskSchedulingAutoConfigurationTests
Closes gh-16640
2019-04-24 11:55:41 +01:00
Andy Wilkinson eb0b852e99 Merge branch '2.1.x'
Closes gh-16639
2019-04-24 10:47:08 +01:00
Andy Wilkinson 5d77b48aed Polish "Polish Maven Plugin's tests"
See gh-16618
2019-04-24 10:40:13 +01:00
daonan.zhan 52c2c534db Polish Maven Plugin's tests
See gh-16618
2019-04-24 10:40:05 +01:00
Andy Wilkinson d0b4dab1c8 Merge pull request #16620 from Christoph Dreis
* gh-16620:
  Optimize JarEntry construction

Closes gh-16620
2019-04-23 15:28:26 +01:00
dreis2211 f40b086ef5 Optimize JarEntry construction
This commit avoids calling the underlying ZipEntry.setExtra() method
that is not very inline friendly in cases where there is no extra
information to be set.

See gh-16620
2019-04-23 15:25:56 +01:00
Andy Wilkinson 915bde0e62 Use MIME decoder to read OAuth2 resource server public key
Fixes gh-16624
2019-04-23 12:30:39 +01:00
Andy Wilkinson dc39540def Merge branch '2.1.x'
Closes gh-16623
2019-04-23 09:52:40 +01:00
Andy Wilkinson e8955852a3 Add missing GlassFish JAXB dependency management
Closes gh-16619
2019-04-23 09:50:46 +01:00
Madhura Bhave 5c2a7e61d0 Fix tests 2019-04-22 22:40:11 -07:00
Madhura Bhave 9fb65e57c0 ConfigurationPropertiesScan should account for conditions
Fixes gh-16612
2019-04-22 18:37:29 -07:00
Madhura Bhave 23cf8565b1 Polish "Apply server customizer beans automatically"
Closes gh-16584
2019-04-22 15:19:42 -07:00
Sergey Serdyuk 8ff78ed4c3 Apply server customizer beans automatically
See gh-16584
2019-04-22 15:19:34 -07:00
Stephane Nicoll fd14cd0bd0 Merge branch '2.1.x' 2019-04-22 10:00:28 +02:00
Stephane Nicoll 1f656e75fc Polish "Fix UndertowWebServer's logger name"
Closes gh-16613
2019-04-22 09:59:24 +02:00
liaozan 360da66333 Fix UndertowWebServer's logger name
See gh-16613
2019-04-22 09:58:59 +02:00
ForeverHex 124d969b2d Fix checkstyle violation
Closes gh-16616
2019-04-21 20:28:16 +02:00
Phillip Webb 1f893d9376 Log warning on slow host resolution
Update `StartupInfoLogger` so that if the `InetAddress` call takes
more than 200ms a warning is logged.

Closes gh-7087
2019-04-19 15:11:22 -07:00
Phillip Webb 405135d5a8 Polish StartupInfoLogger message creation
Rework some of the internals of `StartupInfoLogger` so that fewer
strings are created.
2019-04-19 15:11:22 -07:00
Madhura Bhave ba196b47ac Fix failure analyzer message
See gh-16581
2019-04-19 09:37:31 -07:00
Stephane Nicoll e9447b0dbf Merge branch '2.1.x' 2019-04-19 16:31:34 +02:00
Stephane Nicoll 2448efc028 Polish "Cache MimeTypes to improve performance"
Closes gh-16507
2019-04-19 16:30:54 +02:00
wenqi.huang b3f94c47d9 Cache MimeTypes to improve performance
See gh-16507
2019-04-19 16:29:32 +02:00
Stephane Nicoll d55d6b35d9 Merge branch '2.1.x' 2019-04-19 16:02:10 +02:00
Stephane Nicoll 7b9471836b Polish "Improve DefaultCookieSerializer auto-configuration"
Closes gh-16513
2019-04-19 15:55:13 +02:00
Vedran Pavic 5e02541195 Improve DefaultCookieSerializer auto-configuration
Spring Session's own configuration support (i.e.
SpringHttpSessionConfiguration) will configure the default
DefaultCookieSerializer with rememberMeRequestAttribute if
SpringSessionRememberMeServices bean has been detected in the
application context.

In contrast, Spring Boot's auto-configured DefaultCookieSerializer does
not do this which results in a different out-of-the-box experience for
users that rely on Spring Session's remember-me integration.

This commit improves Spring Session DefaultCookieSerializer
auto-configuration to match Spring Session's behavior and make the
auto-configured DefaultCookieSerializer aware of
SpringSessionRememberMeServices bean.

See gh-16513
2019-04-19 15:54:26 +02:00
Johnny Lim 62549ffb49 Polish
Closes gh-16597
2019-04-19 10:02:46 +02:00
Phillip Webb b879972d0d Migrate to MergedAnnotations API
Migrate away from `AnnotationUtils` and `AnnotatedElementUtils`
when possible to the new `MergedAnnotations` API.

Closes gh-16551
2019-04-18 15:40:02 -07:00
Madhura Bhave 3ecefdbcdc Add dependency management for okhttp3
Closes gh-6385
2019-04-18 14:14:14 -07:00
Madhura Bhave eda14fb0f6 Analyze failure if configprop scanning results in two beans
Closes gh-16581
2019-04-18 11:43:53 -07:00
Andy Wilkinson 15f28dcc68 Polish "Determine Spring Boot version correctly when using module path"
See gh-16182
2019-04-18 15:09:17 +01:00
Hendrig Sellik ec8fb614f7 Determine Spring Boot version correctly when using module path
In Java 9, a package may return null for its implementation version
even when the manifest attribute specifying the version is present
in the jar from which the package was loaded.

This commit updates SpringBootVersion to fall back to
accessing the jar and its manifest attributes directly when the
implementation version of its package is null.

See gh-16182
2019-04-18 15:09:11 +01:00
Andy Wilkinson ca1a666f58 Polish "Add support for configuring remaining Undertow server options"
See gh-16278
2019-04-18 12:21:28 +01:00
Rafiullah Hamedy 186b1fae6d Add support for configuring remaining Undertow server options
This commit adds support for configuring Undertow's server options that were previously
not configurable via application properties. The additions are the following:

- allow-encoded-slash
- always-set-keep-alive
- decode-url
- max-cookies
- max-headers
- max-parameters,
- url-charset

See gh-16278
2019-04-18 12:19:12 +01:00
Patryk Kostrzewa ff7cf2dc96 Update WebFlux starter to depend on validation starter
Previously, the WebFlux starter declared direct dependencies on Hibernate Validator
and the Jakarta EE validation API. This meant that it required two exclusions to
exclude validation from a reactive web application that did not need it.

This commit updates the WebFlux starter to get its validation dependencies via a
dependency on the validation starter. This allows validation to be excluded
using a single exclusion. The EL dependency from the validation starter has
been excluded to allow the EL implementation from the underlying container
starter to continue to be used instead.

See gh-16593
2019-04-18 10:29:42 +01:00
Stephane Nicoll 2cfcd2690e Polish "Allow to configure the Elasticsearch rest client timeouts"
Closes gh-15965
2019-04-18 11:17:44 +02:00
Dmytro Nosan 5bacb32557 Allow to configure the Elasticsearch rest client timeouts
See gh-15965
2019-04-18 11:17:44 +02:00
Andy Wilkinson af4ce2d537 Merge branch '2.1.x'
Closes gh-16600
2019-04-18 10:15:10 +01:00
Andy Wilkinson 50bcfd25fd Make EL available to reactive web apps as it already is to servlet web apps
Closes gh-16596
2019-04-18 10:10:49 +01:00
Stephane Nicoll e24c17d524 Polish "Add auto-configuration support for ReactiveGridFsTemplate"
Closes gh-16467
2019-04-17 15:36:58 +02:00
ayudovin d9c9ed1d52 Add auto-configuration support for ReactiveGridFsTemplate
See gh-16467
2019-04-17 15:32:07 +02:00
Stephane Nicoll 0f60555031 Polish "Complete Jetty Access Log configuration properties support"
Closes gh-16080
2019-04-17 15:25:54 +02:00
nicolas 55a5a26b95 Complete Jetty Access Log configuration properties support
See gh-16080
2019-04-17 15:25:54 +02:00
Andy Wilkinson 1eac4d6046 Support configuration of Flyway's Pro properties
Closes gh-14989
2019-04-17 12:12:05 +01:00
Andy Wilkinson d3541fa672 Upgrade to Tomcat 9.0.19
Closes gh-16591
2019-04-17 11:38:47 +01:00
Andy Wilkinson 853b4952a0 Upgrade to Tomcat 9.0.19
Closes gh-16591
2019-04-17 11:36:04 +01:00
Johnny Lim 2b2afd785b Polish
Closes gh-16575
2019-04-17 11:57:48 +02:00
Stephane Nicoll a79e49f1dd Merge branch '2.1.x' 2019-04-17 11:57:32 +02:00
Johnny Lim 363994515b Polish
See gh-16575
2019-04-17 11:56:31 +02:00
Stephane Nicoll b710dc71fe Polish "Use BatchErrorHandler when Kafka listener type is batch"
Closes gh-16499
2019-04-17 11:36:10 +02:00
Andy Wilkinson 7d2a99943f Merge branch '2.1.x' 2019-04-17 09:26:28 +01:00
Andy Wilkinson dfbc787737 Test the Gradle plugin against Gradle 5.4
Closes gh-16576
2019-04-17 09:25:28 +01:00
Madhura Bhave bb7940f8e4 Use BatchErrorHandler when Kafka listener type is batch
Closes gh-16499
2019-04-16 15:51:10 -07:00
Madhura Bhave ac2b0093c7 Disable DevTools' post-processors and auto-config when running tests
Closes gh-5307
2019-04-16 11:07:33 -07:00
Andy Wilkinson dacbb65fd7 Merge branch '2.0.x' into 2.1.x
Closes gh-16579
2019-04-16 15:47:17 +01:00
Andy Wilkinson 7260c0f2c4 Merge branch '1.5.x' into 2.0.x 2019-04-16 15:46:49 +01:00
Andy Wilkinson 4941217323 Update docs to reflect rename of @ConfigurationPropertiesDefaultValue
See gh-8762
2019-04-16 10:25:48 +01:00
Andy Wilkinson e7455b454b Merge branch '2.1.x'
Closes gh-16564
2019-04-16 09:47:03 +01:00
Andy Wilkinson 043f0ffbeb Restore indentation in published spring-boot-starter-parent pom
Closes gh-16466
2019-04-16 09:46:16 +01:00
Andy Wilkinson 4e97f7998c Add missing RSocket dependency management
Closes gh-16568
2019-04-16 09:40:29 +01:00
Andy Wilkinson c722cc96fc Merge branch '2.1.x'
Closes gh-16572
2019-04-16 09:12:03 +01:00
Andy Wilkinson 4e4d5f0539 Remove dependency management for solr-uima following upgrade to 7.7.1
Closes gh-16490
2019-04-16 09:10:16 +01:00
Phillip Webb 5f1bbf8c72 Update copyright header of changed files 2019-04-15 17:51:08 -07:00
Phillip Webb 7d4118a0fe Align withBean methods with ApplicationContext
Rework `AbstractApplicationContextRunner.withBean` methods to
align signatures as much as possible with those provided by
the `ApplicationContext`.

Also update the implementation to use a dedicate member
variable rather than adding initializers.

Closes gh-16011
2019-04-15 17:51:08 -07:00
Phillip Webb 2dfd916c96 Polish 2019-04-15 17:51:08 -07:00
Madhura Bhave dabe75a281 Merge branch '2.1.x' 2019-04-15 17:10:07 -07:00
Madhura Bhave f0544fb86f Polish 2019-04-15 17:09:47 -07:00
Madhura Bhave bf6f9b4c43 Polish "Add property for mongo auto-index creation"
See gh-16454
2019-04-15 16:52:44 -07:00
ayudovin 2e9005de14 Add property to configure Mongo auto index creation
Closes gh-16454
2019-04-15 16:38:54 -07:00
Madhura Bhave 08260388bf Merge branch '2.1.x' 2019-04-15 16:30:07 -07:00
Rudy Adams 0aa25fb742 Add tests for CompressionConnectorCustomizer
Closes gh-16515
2019-04-15 16:17:29 -07:00
Madhura Bhave 1d20c73d22 Make nested classes in JsonTestersAutoConfiguration package private
Closes gh-15444
2019-04-15 16:03:31 -07:00
Brian Clozel 8ac69442f1 Deprecate ElasticsearchHealthIndicator
Since the transport client has been deprecated in gh-15008, the health
indicator for that should be deprecated as well.

See gh-15008
2019-04-16 00:26:59 +02:00
Brian Clozel 60cf80f8ce Upgrade to Spring Batch 4.2.0.M1
Closes gh-16529
2019-04-16 00:23:31 +02:00
Brian Clozel ddd400ff87 Upgrade to Spring Integration 5.2.0.M1
Closes gh-16531
2019-04-16 00:22:39 +02:00
Brian Clozel 2e107929a0 Upgrade to Elasticsearch 6.7.1
Closes gh-16569
2019-04-16 00:21:17 +02:00
Brian Clozel 687c58d62c Revert "Upgrade to asciidoctor-maven-plugin 1.6.0"
This commit introduced an incompatible change in the asciidoct
API: both asciidoctorj-pdf and spring-asciidoctor-extensions
expect `org.asciidoctor.extension.JavaExtensionRegistry` to be
a class, not an interface.

This reverts commit 120ffb1ed0.
2019-04-15 23:05:22 +02:00
Brian Clozel c0a360fd71 Fix imports ordering 2019-04-15 21:50:56 +02:00
Brian Clozel 71362299ae Polish RSocket server bootstrap
See gh-16021
2019-04-15 21:42:21 +02:00
Andy Wilkinson d4c47a13a0 Upgrade to Spring Security 5.2.0.M2
Closes gh-16534
2019-04-15 19:30:45 +01:00
Stephane Nicoll 9b0c1d305c Upgrade to Spring Session Corn-M1
Closes gh-16532
2019-04-15 17:38:03 +02:00
Stephane Nicoll 120ffb1ed0 Upgrade to asciidoctor-maven-plugin 1.6.0 2019-04-15 16:52:57 +02:00
Stephane Nicoll f9c74d983f Merge branch '2.1.x'
Closes gh-16565
2019-04-15 16:18:22 +02:00
Stephane Nicoll e99deb95f7 Fix source detection in case of multiple candidates
This commit improves the detection of a property source when more than
one group with the same type exist.

Closes gh-16549
2019-04-15 16:17:11 +02:00
Andy Wilkinson 84df37fd73 Merge branch '2.1.x'
Closes gh-16564
2019-04-15 14:27:02 +01:00
Andy Wilkinson bb0037f041 Restore indentation in published spring-boot-dependencies pom
The move to an HTTPS URL for the xmlns:xslt identifier has the unwanted
side-effect of disabling indentation.

This commit moves back to an HTTPS URL. It also changes the indent size
to 2, aligning with the size used by all the other poms that are written
by the flatten plugin.

Closes gh-16466
2019-04-15 14:26:52 +01:00
Andy Wilkinson 9d1f584560 Adapt Gradle plugin tests to change in Kotlin's packaging
Closes gh-16554
2019-04-15 12:36:58 +01:00
Brian Clozel b35424478b Deprecate Elasticsearch transport and Jest clients
As of Spring Data Moore, the Elasticsearch high level REST client is
supported for Spring Data repositories. The transport client is now
deprecated and is likely to be removed in a future Spring Data release.

This commit deprecates the transport client and marks all the associated
configuration properties as deprecated. The Spring Boot starter depends
on the `spring-data-elasticsearch` project, which now depends on both
transport client and high level REST client.

This commit also deprecates the Jest client, as Spring Boot will focus
on supporting the high level REST client and the reactive client
provided by Spring Data - both being in sync with the fast release pace
of Elasticsearch.

Closes gh-15008
2019-04-15 12:05:07 +02:00
Stephane Nicoll fe9da06a7e Remove outdated exclusion to http-client
Closes gh-16510
2019-04-15 10:38:17 +02:00
Stephane Nicoll 5e281fa8ec Switch to snapshots in preparation for the release 2019-04-15 10:17:25 +02:00
Stephane Nicoll 5c37e68a2b Upgrade to Spring AMQP 2.2.0.M1
Closes gh-16530
2019-04-15 09:57:40 +02:00
Sebastien Deleuze 86c75b9fd3 Upgrade to Kotlin 1.3.30
Closes gh-16554
2019-04-15 08:39:46 +02:00
Madhura Bhave b4d6ac1f41 Fix javadoc 2019-04-12 12:32:23 -07:00
Madhura Bhave 7bbeeaa4d2 Fix build following Spring Security changes 2019-04-12 12:24:35 -07:00
Madhura Bhave 8fd8a9b618 Fix javadoc 2019-04-12 11:55:06 -07:00
Madhura Bhave 62ec8f373a Forwarded header auto-config should be conditional on missing bean
See gh-5677
2019-04-12 11:34:38 -07:00
Madhura Bhave 959e161555 Provide an option to use Spring's forwarded header support
Previously, if the `server.use-forward-headers` property
was set to true, X-Forwarded-* headers support was provided
at the server level. The property has been deprecated in favor
of `server.forward-headers-strategy` which can be also be configured
to use Spring's forwarded header support apart from native server support.

Closes gh-5677
2019-04-12 10:34:19 -07:00
Stephane Nicoll 33fecec4a8 Upgrade to Spring Kafka 2.3.0.M1
Closes gh-16302
2019-04-12 12:45:02 +02:00
Brian Clozel ddc8b6f6b9 Fix Javadoc build for new RSocket dependencies
See gh-16021
2019-04-11 21:07:26 +02:00