Commit Graph

5467 Commits

Author SHA1 Message Date
Andy Wilkinson 3cadde0900 Protect against available port actually being unavailable
Closes gh-19355
2019-12-20 15:22:30 +00:00
Brian Clozel 3e48e36e47 Improve docs on running apps behind proxies
Fixes gh-15046
2019-12-19 15:16:13 +01:00
Johnny Lim 8bbc7f7b67 Remove duplicate entry for Neo4jHealthIndicator
See gh-19377
2019-12-17 09:43:09 +09:00
Phillip Webb 8e03982bca Fix checkstyle violation 2019-12-13 11:45:56 -08:00
Phillip Webb accd830dd5 Update copyright header of changed files 2019-12-13 11:23:24 -08:00
Phillip Webb 9bdad06c10 Polish Netty SSL key alias support
See gh-19197
2019-12-13 11:21:42 -08:00
dreis2211 207a5c5022 Link consistently to Tomcat 9.0 docs
See gh-19340
2019-12-12 16:58:37 +01:00
dreis2211 29b602d6a0 Fix link to Vaadin Spring Boot starter
See gh-19338
2019-12-12 16:53:21 +01:00
dreis2211 20ff764756 Increase cache ttl in CachingOperationInvokerTests
See gh-19193
2019-12-05 11:58:23 -08:00
Andy Wilkinson bc53fe0344 Recommend mockito-inline for mocking and spying of CGLib proxies
This reverts commit 52050c173c.

See gh-17817
Closes gh-19020
2019-12-05 16:13:02 +00:00
Andy Wilkinson effdc8f359 Polish "Honour SSL key alias when using Netty"
See gh-19197
2019-12-05 12:48:13 +00:00
cbono eda7b7c3e6 Honour SSL key alias when using Netty
See gh-19197
2019-12-05 12:10:04 +00:00
luoyuan c6a184474c Remove redundant hasText check as query always has text
See gh-19290
2019-12-05 11:51:35 +00:00
Andy Wilkinson 38340522de Fix Asciidoc syntax 2019-12-05 11:33:58 +00:00
Andy Wilkinson b46bb726ca Clarify limitations of @PropertySource
Closes gh-18900
2019-12-05 10:05:50 +00:00
Andy Wilkinson 3d35efb485 Upgrade to Spring Batch 4.1.3.RELEASE
Closes gh-19072
2019-12-04 17:57:45 +00:00
Andy Wilkinson 6a0ec7e1f4 Upgrade to Spring Data Lovelace-SR14
Closes gh-19068
2019-12-04 17:57:03 +00:00
Andy Wilkinson 72d3137941 Upgrade to Spring Cloud Connectors 2.0.7.RELEASE
Closes gh-19234
2019-12-04 17:55:29 +00:00
Andy Wilkinson 66639702be Upgrade to Jetty El 8.5.49
Closes gh-19233
2019-12-04 17:55:28 +00:00
Andy Wilkinson ff1d2ea381 Upgrade to Aspectj 1.9.5
Closes gh-19232
2019-12-04 17:55:27 +00:00
Andy Wilkinson 7ea088e5fb Upgrade to Activemq 5.15.11
Closes gh-19231
2019-12-04 17:55:26 +00:00
Andy Wilkinson cf80ad46e4 Upgrade to Netty Tcnative 2.0.28.Final
Closes gh-19230
2019-12-04 17:55:24 +00:00
Andy Wilkinson a2b06bbf45 Upgrade to Micrometer 1.1.9
Closes gh-19229
2019-12-04 17:55:23 +00:00
Andy Wilkinson 677f2bc80c Upgrade to Unboundid Ldapsdk 4.0.13
Closes gh-19228
2019-12-04 17:55:22 +00:00
Andy Wilkinson f451145d03 Upgrade to Couchbase Client 2.7.11
Closes gh-19227
2019-12-04 17:55:21 +00:00
Brian Clozel 116699e295 Upgrade to Spring Framework 5.1.12.RELEASE
Closes gh-19051
2019-12-03 15:53:56 +01:00
Madhura Bhave fcc790aa15 Document how properties are applied in JPA auto-config
Closes gh-15361
2019-12-02 10:34:54 -08:00
Andy Wilkinson e8eace2d5b Polish "Fix Liquibase endpoint's output with multiple datasources"
See gh-19171
2019-11-29 09:50:48 +00:00
Leo Li 5302d91930 Fix Liquibase endpoint's output with multiple datasources
Previously, the endpoint used the same change log history service for
for each SpringLiquibase bean that it processed. This resulted in
pollution of the reported changes as the history of each bean was not
isolated.

This commit updates the endpoint to use a new history service for each
SpringLiquibase bean that is processed.

See gh-19171
2019-11-29 09:50:43 +00:00
Johnny Lim 3df9fa6228 Add missing indentations for pom.xml in doc
See gh-19170
2019-11-28 10:57:20 +01:00
Stephane Nicoll e394772864 Upgrade to Reactor Californium-SR14
Closes gh-19052
2019-11-27 18:37:47 +01:00
Stephane Nicoll 2356462587 Polish "Remove '.' and '-' reference in the EndpointId javadoc"
See gh-19101
2019-11-27 11:45:35 +01:00
Lars Grefer 58e599b6c1 Remove '.' and '-' reference in the EndpointId javadoc
Endpoint ID's which contain '-' or '.' cause a deprecation warning.
Therefore they shouldn't be doumented as valid characters.

See gh-19101
2019-11-27 11:44:13 +01:00
Andy Wilkinson f117dbe8a1 Add metadata for spring.main.log-startup.info
See gh-19026
2019-11-27 09:55:06 +00:00
dreis2211 87caa0a331 Add missing health indicators to docs
See gh-19149
2019-11-27 09:52:15 +01:00
Madhura Bhave 53da8da50a Clarify contradictory advice on the use of `@PropertySource`
In general we do not recommend using @PropertySource due to them being
added to the environment too late for auto-configuration to use them. This
commit updates the documentation to mention them in the list of external
sources along with a note.

Closes gh-18900
2019-11-26 17:35:44 -08:00
Madhura Bhave 49e111aef5 Document logging of startup info
Closes gh-19026
2019-11-26 15:29:59 -08:00
Stephane Nicoll 01e0a27159 Upgrade to Maven Enforcer Plugin 3.0.0-M3
Closes gh-19124
2019-11-25 15:32:42 +01:00
Stephane Nicoll a1884d2c10 Upgrade to Hibernate 5.3.14.Final
Closes gh-19123
2019-11-25 15:32:40 +01:00
Stephane Nicoll 90acbb124a Upgrade to Jaybird 3.0.8
Closes gh-19122
2019-11-25 15:32:39 +01:00
Stephane Nicoll f83b08eb59 Upgrade to Jetty 9.4.24.v20191120
Closes gh-19121
2019-11-25 15:32:38 +01:00
Stephane Nicoll f64c6fc0c3 Upgrade to Tomcat 9.0.29
Closes gh-19120
2019-11-25 15:32:37 +01:00
Stephane Nicoll 4a76787c60 Upgrade to Undertow 2.0.28.Final
Closes gh-19119
2019-11-25 15:32:35 +01:00
Stephane Nicoll 1387067208 Upgrade to Rxjava2 2.2.15
Closes gh-19118
2019-11-25 15:32:33 +01:00
Stephane Nicoll ab6d163f73 Upgrade to Netty Tcnative 2.0.27.Final
Closes gh-19117
2019-11-25 15:32:32 +01:00
Stephane Nicoll 4868124371 Upgrade to Querydsl 4.2.2
Closes gh-19116
2019-11-25 15:32:31 +01:00
Stephane Nicoll 3a86a6922c Upgrade to Appengine Sdk 1.9.77
Closes gh-19115
2019-11-25 15:32:29 +01:00
Stephane Nicoll 49433ccef1 Upgrade to Couchbase Client 2.7.10
Closes gh-19114
2019-11-25 15:32:28 +01:00
Stephane Nicoll 5d8fe860d7 Polish "Use ssl.enabled flag when RabbitMQ address has no protocol"
There is a direct link between the sslEnabled flag and the default port
that should be used by an address. The checks are currently set in two
places:

* Determine which port should be used
* Determine if SSL should be enabled

This commit polishes the initial proposal so that secureConnection is
only set if a protocol is available.

See gh-19109
2019-11-25 13:52:27 +01:00
cbono 2210236f82 Use ssl.enabled flag when RabbitMQ address has no protocol
See gh-19109
2019-11-25 11:16:56 +01:00
Adam Michalik c154a014a1 Remove invalid example of spring.mvc.async.request-timout property
See gh-19057
2019-11-21 14:13:22 +01:00
Stephane Nicoll b23a3712c6 Polish "Fix logging in CloudFoundryVcapEnvironmentPostProcessor"
See gh-19027
2019-11-21 13:41:47 +01:00
Mark Bigler f1489e41ec Fix logging in CloudFoundryVcapEnvironmentPostProcessor
See gh-19027
2019-11-21 13:35:50 +01:00
Stephane Nicoll 3c3614d8ef Start building against Spring Batch 4.1.3 snapshots
See gh-19072
2019-11-20 11:20:48 +01:00
Stephane Nicoll 6fa5f0c1d0 Start building against Spring Data Lovelace-SR14 snapshots
See gh-19068
2019-11-20 11:05:09 +01:00
Stephane Nicoll 80eaa16b0d Start building against Spring Framework 5.1.12 snapshots
See gh-19051
2019-11-20 11:04:27 +01:00
Stephane Nicoll 586a5d2c14 Start building against Reactor Californium-SR14 snapshots
See gh-19068
2019-11-20 11:03:18 +01:00
Madhura Bhave 849a76c6c2 Polish 2019-11-19 12:07:05 -08:00
Madhura Bhave a3a53d299f Check authorities when exposing health details
Fixes gh-18998
2019-11-19 11:18:07 -08:00
dreis2211 355505d236 Fix syntax error in configuration metadata sample in docs
See gh-19028
2019-11-16 09:39:46 +03:00
Stephane Nicoll cad2365237 Polish 2019-11-12 14:03:39 +01:00
Andy Wilkinson 3f0367e2dd Apply changes recommended by Jetty team to JettyEmbeddedErrorHandler
Closes gh-18842
2019-11-08 14:57:46 +00:00
Andy Wilkinson 5765cfe010 Allow 5 seconds for child to handle SIGINT before destroying it
Previously, when RunProcess handled a SIGINT it would immediately
attempt to destroy the process that it had run. This created a race
condition between the SIGINT being handled by the child process
and RunProcess destroying the child. The exact behavior of destroy
is implementation dependent and it may result in forcible termination
of the process where shutdown hooks are not called. This is what
happens on Windows. The exit code in such a case is 1 which prevents
anything from waiting for the process to complete from detecting
that it ended as a result of a SIGINT, leaving it with no choice but
to report an error. This is what happens with mvn spring-boot:run
with a forked process on Windows and results in the build failing.

This commit updates RunProcess to allow the child process to handle
the SIGINT itself, waiting for up to five seconds for that to happen
before the process is then destroyed. Given this time, the child
process exits with 130 which RunMojo already handles correctly as
indicating that the process died due to SIGINT and the build completes
with success as a result.

Fixes gh-18936
2019-11-08 12:41:13 +00:00
Andy Wilkinson a11661d284 Trim whitespace in BasicJsonParser
Previously, whitespace in between the keys and values in the JSON was
not trimmed correctly in BasicJsonParser which lead to it incorrectly
parsing JSON with whitespace between the opening of a list ([) and the
opening of a map ({).

This commit updates the parser to trim unwanted whitespace and adds a
test to AbstractJsonParserTests to verify the whitespace handling
behaviour across all JsonParser implementations.

Closes gh-18911
2019-11-07 09:56:00 +00:00
Andy Wilkinson d1ead884c4 Fix @ServletComponentScan with a component index
Previously @ServletComponentScan did not work when there was a
component index on the classpath as it made an assumption about
the concrete type of the BeanDefinitions produced by scanning that
does not hold true when an index is present.

This commit updates the scanning and the handlers to correct the
assumpution by working with a bean definition type that is produced
by scanning both when there is and when there is not an index present.

To prevent the problem from reoccuring, a test that uses and index
has been added and the import of ScannedGenericBeanDefinition is now
prohibited by Checkstyle.

Closes gh-18910
2019-11-07 09:20:19 +00:00
Stephane Nicoll c413e5b54e Upgrade to Hazelcast 3.11.5
Closes gh-18897
2019-11-06 09:40:11 +01:00
Andy Wilkinson 59bc3c5602 Prevent recursive config props from causing a stack overflow
Previously, when the configuration properties annotation processor
encountered a property that was the same as an outer type that had
already been processed, it would fail with a stack overflow error.

This commit introduces the use of a stack to track the types that
have been processed. Types that have been seen before are skipped,
thereby preventing a failure from occurring. We do not fail upon
encountering a recursive type to allow metadata generation to
complete. At runtime, the recursive property will not cause a problem
if it is not bound.

Fixes gh-18365
2019-11-05 15:35:11 +00:00
Andy Wilkinson 8b62f448ba Improve documentation on using Jersey alongside Spring MVC
Previously, the documentation did not provide any guidance on using
Jersey alongside Spring MVC or any other web framework.

This improves the documentation in two ways:

1. It notes that, in the presence of both Jersey and Spring MVC, the
   Actuator will prefer Spring MVC for exposing HTTP endpoints.
2. It adds a how-to describing how to configure Jersey to forward
   requests for which it has no handler on to the rest of the filter
   chain. When Spring MVC is the other framework, this allows them to
   be handled by its dispatcher servlet.

Closes gh-17523
2019-11-05 14:21:34 +00:00
Andy Wilkinson bd06a91ac0 Recommend more overrides when using starter parent
This commit is a continuation of the work done in 987a5f81. In
addition to developers and licenses that are covered in the earlier
commit, a number of other settings are still inherited from the
starter parent. This commit updates the documentation to show them
being overridden as well.

Closes gh-18532
2019-11-05 13:25:53 +00:00
Stephane Nicoll 4d1373c94d Polish "Support amqps:// URIs in spring.rabbitmq.addresses"
See gh-18808
2019-11-05 14:07:24 +01:00
Mark Pollack 0fedb24c6f Support amqps:// URIs in spring.rabbitmq.addresses
See gh-18808

Co-Authored-By: Bryan Kelly <xyloman@gmail.com>
2019-11-05 14:07:24 +01:00
Andy Wilkinson ed50bf2494 Honour EndpointFilter configured on an endpoint's superclass
Previously, @EndpointFilter would only have an effect when used as
an annotation or meta-annotation on the endpoint class itself. It
would have no effect when used on a super-class of the endpoint
bean's class.

This commit updates EndpointDiscoverer so that an @EndpointFilter
annotation or meta-annotation on a super-class will be found and
applied to the discovery process. This is achieved by using find…
rather than get… when retrieving the attributes for the EndpointFilter
annotation.

Fixes gh-17866
2019-11-05 10:51:36 +00:00
Andy Wilkinson cb76502a44 Document that JUL is not bridged into SLF4J when deployed to a container
Closes gh-16062
2019-11-05 10:28:39 +00:00
Andy Wilkinson 1c6f2af475 Clarify how to configure a Filter's order
Closes gh-18266
2019-11-05 10:06:17 +00:00
Andy Wilkinson 69a95ce5c1 Allow dependsOn relationships created by post-processor to be overridden
Previously, AbstractDependsOnBeanFactoryPostProcessor was unordered
which meant that it was impossible to guarantee that another bean
factory post-processor would run after it. This prevented overriding
of the dependsOn relationships that is creates.

This commit updates AbstractDependsOnBeanFactoryPostProcessor to give
it a default order of zero. This will allow additional bean factory
post-processors to be configured with a lower precedence order (values
greater than 0) so that they run after any
AbstractDependsOnBeanFactoryPostProcessor and can override the
dependencies that it has configured.

Fixes gh-18362
2019-11-05 09:53:36 +00:00
Andy Wilkinson 987a5f8103 Recommend overriding licences and developers when using starter parent
Publishing to Maven Central requires spring-boot-starter-parent to
declare its license and developers. When a user then uses
spring-boot-starter-parent as their project's parent, these values
are inherited and this is almost certainly unwanted.

This commit updates the documentation to recommend and demonstrate
overriding the license and developers that are inherited from the
starter parent.

Closes gh-18532
2019-11-05 09:39:59 +00:00
Andy Wilkinson 89e050d722 Document security risks of DevTools' remote support more clearly
Previously, the security risks and our recommendations on how to
mitigate them were not documented as clearly as they could have been.
This commit makes some changes to try to address this:

1. The security risk is now noted at the beginning of the section
2. The recommendation to use SSL is now documented more prominently
   and an alternative recommendation to only use remote support on
   a trusted network has been added.
3. The example secret has been removed to prevent copy and paste
4. A recommendation to use a secret that is unique and strong has been
   added

Closes gh-18825
2019-11-05 09:22:39 +00:00
Stephane Nicoll 5863a75c3c Polish "Document Settings as jooq supported auto-configuration type"
See gh-18870
2019-11-05 09:18:32 +01:00
Jens Teglhus Møller c34516cd9e Document Settings as jooq supported auto-configuration type
See gh-18870
2019-11-05 09:17:25 +01:00
Andy Wilkinson de0e8b87d1 Upgrade to Spring Integration 5.1.9.RELEASE
Closes gh-18763
2019-11-05 08:06:03 +00:00
Andy Wilkinson 4b25339d57 Upgrade to Spring Security 5.1.7.RELEASE
Closes gh-18874
2019-11-05 08:05:48 +00:00
Andy Wilkinson c5eaf645d5 Upgrade to Spring Kafka 2.2.11.RELEASE
Closes gh-18765
2019-11-04 16:43:06 +00:00
Andy Wilkinson 4ffd44a235 Upgrade to Spring Ws 3.0.8.RELEASE
Closes gh-18865
2019-11-04 16:42:42 +00:00
Andy Wilkinson d75b855852 Upgrade to Spring AMQP 2.12.RELEASE
Closes gh-18761
2019-11-04 15:50:28 +00:00
Andy Wilkinson 1dc2768198 Upgrade to Slf4j 1.7.29
Closes gh-18860
2019-11-04 15:50:03 +00:00
Andy Wilkinson bf63d66131 Upgrade to Rxjava2 2.2.14
Closes gh-18859
2019-11-04 15:50:01 +00:00
Andy Wilkinson 8cdcafa43b Upgrade to Micrometer 1.1.8
Closes gh-18858
2019-11-04 15:49:59 +00:00
Andy Wilkinson 8aaba58cca Upgrade to Spring Data Lovelace-SR12
Closes gh-18743
2019-11-04 12:31:49 +00:00
dreis2211 8955d5c1b5 Test the Gradle Plugin against Gradle 5.6.4
See gh-18845
2019-11-04 09:56:12 +01:00
Stephane Nicoll 986a74f0f4 Upgrade to Spring Framework 5.1.11
Closes gh-18737
2019-11-02 11:01:09 +02:00
Stephane Nicoll 436f03ec17 Upgrade to Neo4j Ogm 3.1.15
Closes gh-18791
2019-10-29 12:01:47 +01:00
Stephane Nicoll a31cda5cde Upgrade to Mimepull 1.9.12
Closes gh-18790
2019-10-29 12:01:46 +01:00
Stephane Nicoll 71d78ec9a3 Upgrade to Hibernate Validator 6.0.18.Final
Closes gh-18789
2019-10-29 12:01:45 +01:00
Stephane Nicoll cd702a59f0 Upgrade to Hibernate 5.3.13.Final
Closes gh-18788
2019-10-29 12:01:44 +01:00
Stephane Nicoll 004fd06e38 Upgrade to Jetty 9.4.22.v20191022
Closes gh-18787
2019-10-29 12:01:43 +01:00
Stephane Nicoll bddb5f3e2c Upgrade to Tomcat 9.0.27
Closes gh-18786
2019-10-29 12:01:42 +01:00
Stephane Nicoll 1ba2a491fe Upgrade to Mysql 8.0.18
Closes gh-18785
2019-10-29 12:01:41 +01:00
Stephane Nicoll a751e6540c Upgrade to Joda Time 2.10.5
Closes gh-18784
2019-10-29 12:01:40 +01:00
Stephane Nicoll dc2b610c44 Upgrade to Undertow 2.0.27.Final
Closes gh-18783
2019-10-29 12:01:39 +01:00
Stephane Nicoll 362c885557 Upgrade to Rxjava2 2.2.13
Closes gh-18782
2019-10-29 12:01:38 +01:00
Stephane Nicoll 1b32436813 Upgrade to Dropwizard Metrics 4.0.7
Closes gh-18781
2019-10-29 12:01:36 +01:00
Stephane Nicoll 4bd980868d Upgrade to Unboundid Ldapsdk 4.0.12
Closes gh-18780
2019-10-29 12:01:35 +01:00
Stephane Nicoll df0c5beb47 Upgrade to Gson 2.8.6
Closes gh-18779
2019-10-29 12:01:34 +01:00
Stephane Nicoll 97d8754730 Upgrade to Jackson 2.9.10.20191020
Closes gh-18778
2019-10-29 12:01:33 +01:00
Stephane Nicoll a315d4229d Start building against Spring Data Lovelace-SR12 snapshots
See gh-18743
2019-10-29 10:31:00 +01:00
Stephane Nicoll 217c07a701 Start building against Spring Kafka 2.2.11 snapshots
See gh-18765
2019-10-28 15:53:51 +01:00
Stephane Nicoll 72f63fad5c Start building against Spring Integration 5.1.9 snapshots
See gh-18763
2019-10-28 15:53:51 +01:00
Stephane Nicoll d4c4a4c584 Start building against Spring AMQP 2.1.12 snapshots
See gh-18761
2019-10-28 15:53:51 +01:00
Andy Wilkinson b450116cce Upgrade to Reactor Californium-SR13
Closes gh-18739
2019-10-28 13:23:37 +00:00
wwjay9 bd77c170f2 Fix OAuth2 Client redirect-uri references
See gh-18752
2019-10-27 08:42:48 +01:00
Andy Wilkinson 65ef03a5bf Remove nulls from description for bean defs with no res description
Previously, if a bean definition had no resource description, the
failure analysis description would state that the been had been
defined in null which was of no use to the user.

This commit updates the failure analysis to omit information about
where the bean was definied when the definition has no resource
description.

Fixes gh-18721
2019-10-25 14:26:55 +01:00
Stephane Nicoll 8d4aeb1a55 Start building against Californium-SR13 snapshots
See gh-18739
2019-10-25 10:02:38 +02:00
Stephane Nicoll cff570f65c Upgrade to Netty 4.1.43.Final
Closes gh-18740
2019-10-25 10:01:47 +02:00
Stephane Nicoll ff878ca6a6 Start building against Spring Framework 5.1.11 snapshots
See gh-18737
2019-10-25 08:15:34 +02:00
Madhura Bhave 593eca7998 Emphasize need for quotes around YAML bracket notation
Closes gh-18690
2019-10-24 17:00:54 -07:00
Madhura Bhave e59a643e20 Emphasize the need of @Valid on nested configuration properties
Closes gh-18198
2019-10-24 16:02:59 -07:00
Andy Wilkinson d4cd03ebd8 Document need for micrometer-jersey2 dependency to get Jersey metrics
Closes gh-18622
2019-10-24 10:46:18 +01:00
Stephane Nicoll 5be562440c Upgrade to H2 1.4.200
Closes gh-18593
2019-10-24 10:59:55 +02:00
Stephane Nicoll c63630d94e Upgrade to Quartz 2.3.2
Closes gh-18723
2019-10-24 10:59:11 +02:00
nkjackzhang 6ef39d6b91 Fix typos
See gh-18705
2019-10-23 18:16:24 +02:00
Rafiullah Hamedy 81dc6e02e6 Rename `max-http-post-size` server property
Rename `max-http-post-size` to `max-http-form-post-size` for Jetty and
Tomcat to make it clearer that they only apply to POSTed form content.

See gh-18566
2019-10-22 16:00:43 -07:00
Phillip Webb d0d55d3c0a Polish "Upgrade to Jetty 9.4.21.v20190926"
See gh-18536
2019-10-22 14:54:43 -07:00
dreis2211 eae2cf170d Upgrade to Jetty 9.4.21.v20190926
See gh-18536
2019-10-22 14:53:41 -07:00
Phillip Webb 867c4a14cb Clarify Javadoc for ServletContextInitializer
Closes gh-18660
2019-10-22 13:16:02 -07:00
wycm 681a94b0d5 Optimize debug level logs
See gh-18604
2019-10-22 09:36:48 +02:00
xiaokeliu666 57c64eb3bc Polish
See gh-18665
2019-10-21 09:15:16 +02:00
dreis2211 d17f11dbe1 Test the Gradle Plugin against Gradle 5.6.3
See gh-18648
2019-10-18 10:35:54 +01:00
Brian Clozel 9c5ee1126f Polish
See gh-18473
2019-10-16 14:36:19 +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
contextshuffling a8c6540191 Use LinkedHashSet for deterministic order in test assertion
See gh-18612
2019-10-16 10:47:58 +02:00
Andy Wilkinson 00d4b44cbb Remove trailing commas from test SQL scripts
Closes gh-18607
2019-10-15 19:47:27 +01:00
Stephane Nicoll e4ba6049ff Clarify scope of "@SpringBootTest#classes"
See gh-18229
2019-10-15 14:36:28 +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 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
contextshuffling efedd80d4b Use LinkedHashSet for deterministic order in test assertions
See gh-18580
2019-10-15 08:20:53 +02:00
dreis2211 abfb87d1a3 Rename tests to match Surefire expectations
See gh-18579
2019-10-15 08:11:47 +02:00
王洋 152568521e Make the logger static final
See gh-18575
2019-10-14 14:12:26 +01:00
Ted M. Young f553784ebc Fix incorrect backslash escape in documentation sample
See gh-18546
2019-10-13 08:10:14 +02:00
dreis2211 ba46ab6a4f Remove accidental usage of UnsupportedOptionException
See gh-18539
2019-10-10 07:28:51 -05:00
Andy Wilkinson f42b442ce2 Fix handling of encoded URLs in Class-Path manifest attribute
Fixes gh-18410
2019-10-03 15:30:33 +01:00
Andy Wilkinson 3d4157ad6d Correct SCM URLs in published poms
Previously, Maven's default behaviour was relied up which resulted
in the artifact ID being appended to each URL as it was inherited.
This behaviour can only be disabled in Maven 3.6 and later, a version
that we cannot use due to an incompatibility with the Flatten Plugin.

This commit works around Maven's default behaviour by defining
properties for the SCM URL, connection, and developer connection and
then explicitly defining the settings in each pom using these
properties. The explicit definition of the properties in each pom
prevents them being inherited from the parent, thereby disabling the
unwanted appending of the artifact ID to the URL.

Fixes gh-18328
2019-10-02 10:48:30 +01:00
Phillip Webb 40acbfc733 Update copyright header of changed files 2019-10-01 11:39:38 -07:00
Madhura Bhave ecf393461e Skip management context ResourceConfigCustomizers
Update `JerseyManagementContextConfiguration` so that customizer beans
are not longer applied. The endpoint resource endpoints are now added
with a registrar bean `@PostConstruct` method.

Prior to this commit, when running the management server on a different
port a `Resource` added by a customizer could be added two different
`ResourceConfig` instance. This breaks the singleton contract expected
by Jersey.

Fixes gh-17801

Co-authored-by: Phillip Webb <pwebb@pivotal.io>
2019-10-01 11:16:23 -07:00
Johnny Lim 3a63179d81 Fix a broken Asciidoctor syntax
Along the way, this commit also fixes a typo.

Closes gh-18325
2019-10-01 18:32:01 +02:00
Stephane Nicoll b0d6169285 Upgrade to Spring Session Bom Bean-SR8
Closes gh-18466
2019-10-01 15:29:45 +02:00
Stephane Nicoll 9d40d192a0 Upgrade to Micrometer 1.1.7
Closes gh-18465
2019-10-01 15:29:44 +02:00
Stephane Nicoll 47365dc260 Revert to Spring Web Services 3.0.7.RELEASE
See gh-18315
2019-10-01 15:03:11 +02:00
Stephane Nicoll 1357f1b46c Upgrade to Spring AMQP 2.1.11.RELEASE
Closes gh-18312
2019-10-01 09:50:27 +02:00
Stephane Nicoll 00a9eeaaff Upgrade to Spring AMQP 2.1.11.RELEASE
Closes gh-18312
2019-10-01 09:49:42 +02:00
Stephane Nicoll a22046697e Upgrade to Spring Integration 5.1.8.RELEASE
Closes gh-18313
2019-10-01 09:49:01 +02:00
dreis2211 417bfc4c87 Fix comment position in ZipHeaderPeekInputStreamTests
See gh-18445
2019-10-01 08:05:08 +02:00
Stephane Nicoll 2fffa5675d Upgrade to Spring Data Lovelace-SR11
Closes gh-18414
2019-09-30 13:06:28 +02:00
Andy Wilkinson 0c8bb394f7 Upgrade to Spring REST Docs 2.0.4.RELEASE
Closes gh-18271
2019-09-30 10:33:23 +01:00
dreis2211 208fb8f1ef Add Mustache to 'Customize ViewResolvers' docs section
See gh-18378
2019-09-29 16:21:49 +02:00
Stephane Nicoll 17df6ab044 Start building against Spring Data Lovelace-SR11 snapshots
See gh-18414
2019-09-29 10:30:03 +02:00
Phillip Webb 38968d2fff Polish 'Apply TTL invocation caching on reactor types'
Extract reactor specific code to an inner class to protect
against ClassNotFound exceptions if reactor is not in use.

Also add support for `Flux`.

See gh-18339
2019-09-28 21:46:36 -07:00
dreis2211 33d8bfa99d Apply TTL invocation caching on reactor types
Update `CachingOperationInvoker` so that TTL caching is applied directly
to reactive types. Prior to this commit, a `Mono` would be cached, but
the values that it emitted would not.

See gh-18339
2019-09-28 21:43:38 -07:00
Tadaya Tsuyukubo bccdf04358 Use ordered TaskExecutorCustomizers
Use an ordered stream in `TaskExecutionAutoConfiguration` when
obtaining the TaskExecutor customizers.

See gh-18333
2019-09-28 18:44:57 -07:00
Stephane Nicoll 865a1cd994 Upgrade to Spring Framework 5.1.10.RELEASE
Closes gh-18238
2019-09-28 14:50:22 +02:00
Stephane Nicoll d83e3f9070 Upgrade to Lombok 1.18.10
Closes gh-18407
2019-09-28 14:17:50 +02:00
Stephane Nicoll 526f2516e0 Upgrade to Postgresql 42.2.8
Closes gh-18406
2019-09-28 14:17:49 +02:00
Stephane Nicoll ed04be78f4 Upgrade to Neo4j Ogm 3.1.14
Closes gh-18405
2019-09-28 14:17:48 +02:00
Stephane Nicoll 278cffffc5 Upgrade to Hibernate 5.3.12.Final
Closes gh-18404
2019-09-28 14:17:47 +02:00
Stephane Nicoll b0a48c6303 Upgrade to Tomcat 9.0.26
Closes gh-18403
2019-09-28 14:17:45 +02:00
Stephane Nicoll d8f17d318d Upgrade to Httpclient 4.5.10
Closes gh-18402
2019-09-28 14:17:44 +02:00
Stephane Nicoll 82e00d1b2d Upgrade to Joda Time 2.10.4
Closes gh-18401
2019-09-28 14:17:43 +02:00
Stephane Nicoll 94402f4d77 Upgrade to Netty Tcnative 2.0.26.Final
Closes gh-18400
2019-09-28 14:17:40 +02:00
Stephane Nicoll 3ed1713915 Polish 2019-09-28 09:17:51 +02:00
Johnny Lim 7319908b40 Polish
See gh-18347
2019-09-27 16:57:09 +02:00
Roland Weisleder 92ae7b21a1 Fix typo in ApplicationContextAssert
See gh-18372
2019-09-27 16:32:32 +02:00
Phillip Webb 050460f635 Check factory bean for EntityManager datasource
Update `DataSourceInitializedPublisher` to fallback to the
`LocalContainerEntityManagerFactoryBean` if the
`javax.persistence.nonJtaDataSource` property is not defined.

As of Hibernate 4.3 the property is no longer set if the `EntityManager`
is created from a `PersistenceUnitInfo` instance rather than actual
properties.

Although this is being addressed in Hibernate issue HHH-13432, it's
not strictly a requirement of the JPA spec that the property is set.

Fixes gh-17061
2019-09-26 12:14:13 -07:00
Stephane Nicoll 56623bd57b Upgrade to Reactor Californium-SR12
Closes gh-18348
2019-09-25 09:00:13 +02:00
Madhura Bhave 342a0535d7 Explicitly configure SecurityWebFilterChain bean for reactive oauth2 client
This will ensure that ReactiveManagementWebSecurityAutoConfiguration backs
off and that the actuator endpoints are also secured via OAuth2.

Fixes gh-17949
2019-09-24 09:50:45 -07:00
Andy Wilkinson c613418451 Suppress body when handling a no content (204) "error"
Fixes gh-18136
2019-09-24 16:01:18 +01:00
Andy Wilkinson 35ad5cd011 Fix intermittent failure of inMemoryDerbyIsShutdown 2019-09-24 11:45:50 +01:00
Andy Wilkinson 419f92d381 Tune @ConditionalOnMissingBean for interface-based back off
Previously, a number of usages of @ConditionalOnMissingBean prevented
a bean that implements an auto-configured bean's "main" interface from
causing the auto-configuration of the bean to back off. This would
happen when @ConditionalOnMissingBean did not specify a type, the
@Bean method returned the bean's concrete type, and that concreate
type implements a "main" interface.

This commit updates such usages of @ConditionalOnMissingBean to
specify the "main" interface as the type of the bean that must be
missing. This will allow, for example, the auto-configured
MongoTemplate bean to back off when a MongoOperations bean is defined.

Fixes gh-18101
2019-09-24 11:13:35 +01:00
dreis2211 d89adfac91 Test compression with invalid content type for all webservers
Closes gh-18338
2019-09-24 10:03:38 +01:00
leoli 09cf1e6791 Fix property name in "Task Execution and Scheduling" example
See gh-18331
2019-09-24 09:16:17 +02:00
Andy Wilkinson 9df356ec4c Fix destination checking in Artemis auto-configuration tests
Closes gh-18319
2019-09-23 16:45:36 +01:00
Stephane Nicoll 7533bfd0d3 Start building against Spring Web Services 3.0.8 snapshots
See gh-18315
2019-09-23 13:57:31 +02:00
Stephane Nicoll f6589e66c2 Start building against Spring Kafka 2.2.9 snapshots
See gh-18314
2019-09-23 13:56:26 +02:00
Stephane Nicoll d38d3ea940 Start building against Spring Integration 5.1.8 snapshots
See gh-18313
2019-09-23 13:55:14 +02:00
Stephane Nicoll 05f857d1f1 Start building against Spring AMQP 2.1.11 snapshots
See gh-18312
2019-09-23 13:53:54 +02:00
Andy Wilkinson e5f26a4f1a Rename test resource to be Windows-friendly 2019-09-22 11:29:45 +01:00
Phillip Webb 1ceb96f9f2 Ensure matches is not called before initialization
Update `ApplicationContextRequestMatcher` to ensure that the `matches`
method is never called before `initialized`. This fixes an issue
accidentally introduced in commit 5938ca78 where concurrent calls
to `matches` could trigger unexpected errors due to the fact that the
second call proceeded before the `initialized` method had returned.

Fixes gh-18211
2019-09-21 12:29:46 -07:00
Phillip Webb 5427526bcc Fix ApplicationContextRequestMatcher javadoc
Fix an error in the `ApplicationContextRequestMatcher` javadoc.
2019-09-21 12:28:58 -07:00
aohana 51a8c73b7b Test custom comment prefix with one that does not work by default
See gh-18285
2019-09-21 13:33:20 +01:00
Alessandro Falappa b1750defde Fix typo in configuration metadata appendix
See gh-18289

Closes gh-18289
2019-09-21 13:28:43 +01:00
Madhura Bhave 3c4449bf0e Polish "Fix typo in logback example"
See gh-18295
2019-09-20 14:38:57 -07:00
Harald Brabenetz 0091c04720 Fix typo in logback example
See gh-18295
2019-09-20 14:36:01 -07:00
Madhura Bhave f9d94c6ed0 Remove duplicate word in docs 2019-09-19 16:30:25 -07:00
Alessandro Falappa 6dab9bb224 Fix pre-defined logging group documentation
See gh-18270
2019-09-19 09:19:24 +02:00
Stephane Nicoll 9434cb0e22 Keep a live reference of protocol resolvers rather than copying them
This commit makes sure that any subsequent call on addProtocolResolver
on the context will impact the ResourceLoader implementation that
DevTools sets on the context.

This makes sure that any custom ProtocolResolver that is set later in
the lifecycle is taken into account.

Closes gh-17214
2019-09-16 15:08:40 +02:00
Stephane Nicoll a642421661 Force creation of sources jar
Closes gh-18212
2019-09-16 14:22:26 +02:00
Stephane Nicoll 9065c4997d Fix rebase from master 2019-09-16 09:52:55 +02:00
Stephane Nicoll e05f42f0f3 Polish Add Testable to CLASS_ANNOTATIONS in TestTypeExcludeFilter"
See gh-18214
2019-09-16 09:44:01 +02:00
Leonard Brünings b9c8d7dd60 Add Testable to CLASS_ANNOTATIONS in TestTypeExcludeFilter
See gh-18214
2019-09-16 09:42:55 +02:00
Andy Wilkinson b1ca1ae6e9 Add missing dependency management for Janino modules
Closes gh-18225
2019-09-13 17:59:59 +01:00