Commit Graph

23995 Commits

Author SHA1 Message Date
Brian Clozel 9c5ee1126f Polish
See gh-18473
2019-10-16 14:36:19 +02:00
Brian Clozel 7113d41a80 Merge branch '2.1.x'
Closes gh-18618
2019-10-16 14:09:46 +02:00
Brian Clozel e4fa9ce8c6 Deprecate server.connection-timeout property
Prior to this commit, all supported servers would share the same
configuration property `server.connection-timeout`. Unfortunately, in
many cases the behavior of this timeout changes depending on the server.
From actual connection setup timeout, to detecting and closing idle
connections, this property cannot be properly translated from one server
implementation to another.

This commit deprecates this configuration property and introduces server
specific properties:

* `server.jetty.connection-idle-timeout`
(Time that the connection can be idle before it is closed.)
* `server.netty.connection-timeout`
(Connection timeout of the Netty channel.)
* `server.tomcat.connection-timeout`
(Amount of time the connector will wait, after accepting a connection,
for the request URI line to be presented.)
* `server.undertow.no-request-timeout`
(Amount of time a connection can sit idle without processing a request,
before it is closed by the server.)

`server.connection-timeout` is now deprecated and will be removed in a
future release.

Fixes gh-18473
2019-10-16 13:48:48 +02:00
Stephane Nicoll 64401216b0 Merge branch '2.1.x'
Closes gh-18614
2019-10-16 10:58:03 +02:00
Stephane Nicoll 4eaa3873dd Merge pull request #18612 from contextshuffling
* pr/18612:
  Use LinkedHashSet for deterministic order in test assertion

Closes gh-18612
2019-10-16 10:57:28 +02:00
contextshuffling a8c6540191 Use LinkedHashSet for deterministic order in test assertion
See gh-18612
2019-10-16 10:47:58 +02:00
Andy Wilkinson 6af56a8f07 Upgrade to Netty 4.1.42.Final
Closes gh-18609
2019-10-15 20:42:57 +01:00
Andy Wilkinson 4b4b39853b Merge branch '2.1.x'
Closes gh-18608
2019-10-15 19:47:41 +01:00
Andy Wilkinson 00d4b44cbb Remove trailing commas from test SQL scripts
Closes gh-18607
2019-10-15 19:47:27 +01:00
Andy Wilkinson 15db8d8b0c Upgrade to Spring Kafka 2.3.1.RELEASE
Closes gh-18526
2019-10-15 19:39:35 +01:00
Andy Wilkinson 6e84ae6474 Make SAML 2 login configuration back off with user provider config adapter
Previously, a WebSecurityConfigurerAdapter would be configured
irrespective of whether or not the user had provided their own
WebSecurityConfigurerAdapter. This then required them to use ordering
to diambiguate the configuration and made it harder to take complete
control of security configuration.

This commit updates the configuration of the SAML 2 login configurer
adapter to be conditional on missing bean, aligning it with other
security configuration such as the equivalent OAuth 2 configurer
adapter.

Closes gh-18530
2019-10-15 16:52:18 +01:00
Andy Wilkinson 07d0794827 Consider possibility of missing @ConstructorBinding in failure analysis
Previously, when a NoSuchBeanDefinitionException was being analyzed,
the possibility of a missing @ConstructorBinding annotation on a
@ConfigurationProperties class was not considered.

This commit updates the failure analysis for failed constructor
injection of an instance of a @ConfigurationProperties-annotated
class. When such a failure occurs, adding @ConstructorBinding is
now suggested as an action.

Closes gh-18545
2019-10-15 13:48:20 +01:00
Andy Wilkinson 04e035caff Upgrade to Mongodb 3.11.1
Closes gh-18602
2019-10-15 13:48:20 +01:00
Andy Wilkinson e7ea1f32f7 Upgrade to Mimepull 1.9.12
Closes gh-18601
2019-10-15 13:48:20 +01:00
Andy Wilkinson e542cedc49 Upgrade to Flyway 6.0.6
Closes gh-18600
2019-10-15 13:48:20 +01:00
Andy Wilkinson bbae38c0fa Upgrade to Tomcat 9.0.27
Closes gh-18599
2019-10-15 13:48:20 +01:00
Andy Wilkinson 76651f28e5 Upgrade to Johnzon Jsonb 1.2.1
Closes gh-18598
2019-10-15 13:48:19 +01:00
Andy Wilkinson f7a87be1fe Upgrade to Mysql 8.0.18
Closes gh-18597
2019-10-15 13:48:19 +01:00
Andy Wilkinson 92b4e60ecd Upgrade to Rxjava2 2.2.13
Closes gh-18596
2019-10-15 13:48:19 +01:00
Andy Wilkinson 608f02f060 Upgrade to Unboundid Ldapsdk 4.0.12
Closes gh-18595
2019-10-15 13:48:19 +01:00
Andy Wilkinson 8091183c1f Upgrade to Hazelcast 3.12.3
Closes gh-18594
2019-10-15 13:48:19 +01:00
Andy Wilkinson eafa595ed3 Upgrade to Gson 2.8.6
Closes gh-18592
2019-10-15 13:48:19 +01:00
Stephane Nicoll 0bc5803e34 Merge branch '2.1.x'
Closes gh-18603
2019-10-15 14:38:59 +02:00
Stephane Nicoll e4ba6049ff Clarify scope of "@SpringBootTest#classes"
See gh-18229
2019-10-15 14:36:28 +02:00
Stephane Nicoll 2bf8073446 Polish
See gh-18440
2019-10-15 14:08:38 +02:00
Andy Wilkinson b240c810a8 Fix @ConfigurationProperties on @Bean methods without metadata caching
Due to a current limitation of Spring Framework, when bean metadata
caching is disabled, a merged bean definition may have a null
resolved factory method that would have been non-null if bean metadata
caching was enabled. Configuration property binding for @Bean methods
annotated with @ConfigurationProperties relied upon the resolved
factory method being enabled to find the @ConfigurationProperties
annotation and trigger property binding. As a result, when bean
metadata caching is disabled on the bean factory, such
@ConfigurationProperties beans would not be bound.

This commit works around the limitation by adding a fallback that
performs a reflection-based search for the factory method when the
resolved factory method on the bean definition is null. This allows
the bean's factory method and any @ConfigurationProperties annotation
on it to be found, ensuring that propoerty binding is then performed.

Fixes gh-18440
2019-10-15 11:21:53 +01:00
Stephane Nicoll 3dac8e9abd Merge pull request #18477 from dsyer
* pr/18477:
  Polish "Add some more notes on running exploded jar files"
  Add some more notes on running exploded jar files

Closes gh-18477
2019-10-15 10:03:09 +02:00
Stephane Nicoll 4efb4d1dd3 Polish "Add some more notes on running exploded jar files"
See gh-18477
2019-10-15 10:02:53 +02:00
Dave Syer 3f2dd30808 Add some more notes on running exploded jar files
See gh-18477
2019-10-15 10:01:23 +02:00
Stephane Nicoll 391eb279df Merge branch '2.1.x'
Closes gh-18588
2019-10-15 08:51:31 +02:00
Stephane Nicoll c5e14a89b1 Merge pull request #18581 from polarbear567
* pr/18581:
  Polish "Add metadata entry for spring.main.register-shutdown-hook"
  Add metadata entry for spring.main.register-shutdown-hook

Closes gh-18581
2019-10-15 08:46:15 +02:00
Stephane Nicoll 22f44917ca Polish "Add metadata entry for spring.main.register-shutdown-hook"
See gh-18581
2019-10-15 08:41:07 +02:00
leoli 9b781449cf Add metadata entry for spring.main.register-shutdown-hook
See gh-18581
2019-10-15 08:37:08 +02:00
Stephane Nicoll 75bd15650f Merge branch '2.1.x'
Closes gh-18587
2019-10-15 08:33:51 +02:00
Stephane Nicoll 34287fd556 Merge pull request #18578 from rhamedy
* pr/18578:
  Polish "Clarify formatting recommendations for configuration property javadoc"
  Clarify formatting recommendations for configuration property javadoc

Closes gh-18578
2019-10-15 08:33:32 +02:00
Stephane Nicoll f05d7902e2 Polish "Clarify formatting recommendations for configuration property javadoc"
See gh-18578
2019-10-15 08:32:48 +02:00
Rafiullah Hamedy 1f9b68707f Clarify formatting recommendations for configuration property javadoc
This commit adds a note to spring-boot-features.adoc to clarify that
using javadoc tags to format configuration property descriptions is not
supported.

See gh-18578
2019-10-15 08:29:51 +02:00
Stephane Nicoll 98f676ca46 Merge branch '2.1.x'
Closes gh-18586
2019-10-15 08:25:25 +02:00
Stephane Nicoll f6d5f7777f Merge pull request #18580 from contextshuffling
* pr/18580:
  Use LinkedHashSet for deterministic order in test assertions

Closes gh-18580
2019-10-15 08:25:07 +02:00
contextshuffling efedd80d4b Use LinkedHashSet for deterministic order in test assertions
See gh-18580
2019-10-15 08:20:53 +02:00
Stephane Nicoll 9c6e5f0904 Merge branch '2.1.x'
Closes gh-18585
2019-10-15 08:15:42 +02:00
Stephane Nicoll 4d181c5b6b Merge pull request #18579 from dreis2211
* pr/18579:
  Rename tests to match Surefire expectations

Closes gh-18579
2019-10-15 08:14:17 +02:00
dreis2211 abfb87d1a3 Rename tests to match Surefire expectations
See gh-18579
2019-10-15 08:11:47 +02:00
Phillip Webb e20aa7dc73 Clarify ConfigurationPropertiesBean Javadoc
Update the `ConfigurationPropertiesBean` Javadoc to clarify its purpose.

Closes gh-18487
2019-10-14 20:50:42 -07:00
Andy Wilkinson 3fc51f8063 Isolate the effects of initializing Reactor's debug agent in the tests 2019-10-14 20:08:59 +01:00
Andy Wilkinson e7efe0cbfe Merge branch '2.1.x'
Closes gh-18576
2019-10-14 14:12:57 +01:00
Andy Wilkinson bc6de8d572 Merge pull request #18575 from wycm
* gh-18575:
  Make the logger static final

Closes gh-18575
2019-10-14 14:12:47 +01:00
王洋 152568521e Make the logger static final
See gh-18575
2019-10-14 14:12:26 +01:00
Andy Wilkinson 4bc3931a23 Merge pull request #18573 from sdeleuze
* gh-18573:
  Polish "Update Kotlin-related reference documentation"
  Update Kotlin-related reference documentation

Closes gh-18573
2019-10-14 11:42:35 +01:00
Andy Wilkinson 65818038fe Polish "Update Kotlin-related reference documentation"
See gh-18573
2019-10-14 11:41:03 +01:00