Commit Graph

6022 Commits (417f4dd7fae8de8c1b5849a76904b0083e666a8e)

Author SHA1 Message Date
Stephane Nicoll 374e02cac8 Simplify HibernateJpaAutoConfiguration classes check
This commit removes the now outdated `HibernateEntityManagerCondition`
in favour of a simple check of `SessionImplementor`. As of
Hibernate 5.2, a single `hibernate-core` jar is required so a single
class check is enough.

Closes gh-17288
5 years ago
Stephane Nicoll 8a7609f940 Simplify HibernateJpaAutoConfiguration classes check
This commit removes the now outdated `HibernateEntityManagerCondition`
in favour of a simple check of `SessionImplementor`. As of
Hibernate 5.2, a single `hibernate-core` jar is required so a single
class check is enough.

Closes gh-17283
5 years ago
Brian Clozel 7857dd2d72 Update after RSocket changes in Spring Framework
Spring Framework recently removed the `MessageHandlerAcceptor` (which is
a sub-class of `RSocketMessageHandler`).
Instead of implementing directly the `SocketAcceptor` contract, it now
exposes them through `clientAcceptor()` and `serverAcceptor()` methods.

See gh-17280
5 years ago
Stephane Nicoll 62c70140c6 Upgrade to JUnit Jupiter 5.5.0-RC2
See gh-17266
5 years ago
Andy Wilkinson 0497936940 Start building against Spring Framework 5.2.0.RC1 snapshots
See gh-17280
5 years ago
Stephane Nicoll 9eb2650c0f Merge branch '2.1.x' 5 years ago
Stephane Nicoll 86ace26049 Fix broken link to Spring Integration reference guide
Closes gh-17279
5 years ago
Andy Wilkinson 6d8ba654cc Merge branch '2.1.x'
Closes gh-17276
5 years ago
Andy Wilkinson a5ae1de706 Fix spring-boot-loader's tests on Windows
Closes gh-17275
5 years ago
Johnny Lim f283aa18eb Use "JUnit" instead of "Junit"
See gh-17272
5 years ago
Stephane Nicoll ea9a0c7839 Fix @RegisterExtension on CliTester
This reverts commit dfa5480c and rather make the field package private
so that the extension can be registered properly

Closes gh-17266
5 years ago
Stephane Nicoll dfa5480c59 Remove useless @RegisterExtension on CliTester
Closes gh-17266
5 years ago
Stephane Nicoll 45d2f1d7d1 Merge branch '2.1.x'
Closes gh-17269
5 years ago
Stephane Nicoll 7e5ca6d280 Merge branch '2.0.x' into 2.1.x
Closes gh-17268
5 years ago
Stephane Nicoll 11dee3c0d8 Merge branch '1.5.x' into 2.0.x 5 years ago
Stephane Nicoll c9b8d98bcf Upgrade to JUnit Jupiter 5.5.0-RC1
This commit also removes the workaround that required to exclude junit 4
explicitly now that a related issue in JUnit Jupiter has been fixed.

Closes gh-17266
5 years ago
Phillip Webb 59ca46ed54 Remove FIXME 5 years ago
Brian Clozel 809a3965c9 Add missing outcome tag for WebClient metrics
On error cases, the "outcome" tag would be missing from recorded metrics
for the `WebClient`.

This commit fixes this issue and improves the reference documentation by
mentioning the tag values used for error cases, when the client response
is not received (I/O errors, client error, etc).

Fixes gh-17219
5 years ago
Phillip Webb 82949b9cc4 Upgrade to Mariadb 2.4.2
Closes gh-17237
6 years ago
Phillip Webb 1e0cf960f0 Reinstate single page HTML and PDF docs
Closes gh-16854
6 years ago
Phillip Webb e44caec60b Merge branch '2.1.x'
Closes gh-17236
6 years ago
Phillip Webb 3eb7af1506 Upgrade to Infinispan 9.4.15.Final
Closes gh-17235
6 years ago
Phillip Webb 2c2b962204 Merge branch '2.1.x'
Closes gh-17232
6 years ago
Phillip Webb d82ccf1405 Ensure META-INF/MANIFEST.MF remains as first entry
Update Gradle archive tasks to ensure that `META-INF/` and
`META-INF/MANIFEST.MF` remain as the first entries of the archive.

Prior to this commit, rewritten archives would violate the implicit
specification of `JarInputStream` that these entries should be first.

Fixes gh-16698
6 years ago
Phillip Webb f4d9e1c650 Fix checkstyle violation 6 years ago
Phillip Webb 69fbd8f20c Merge branch '2.1.x'
Closes gh-17227
Closes gh-17228
6 years ago
Phillip Webb 692bda1595 Polish "Fix connection timeout configuration for Netty"
See gh-16535
6 years ago
ayudovin b0e4c716d3 Fix connection timeout configuration for Netty
Update `NettyWebServerFactoryCustomizer` to deal with the fact that
Netty treats `0` and negative connection timeout values differently to
Tomcat, Undertow and Jetty.

See gh-16535
6 years ago
ayudovin c2d1cb2c70 Chain predicates in PropertyMapper when methods
Update `PropertyMapper` to correctly combine predicates when repeated
calls are made to `when` and `whenNot`. Prior to this commit, subsequent
invocations would replace the previous predicate.

Fixes gh-17225
6 years ago
Andy Wilkinson bd14050859 Merge branch '2.1.x'
Closes gh-17224
6 years ago
Andy Wilkinson 88fbc529e6 Upgrade to Micrometer 1.1.5
Closes gh-17222
6 years ago
Andy Wilkinson f07f030ba9 Merge branch '2.1.x'
Closes gh-17223
6 years ago
Andy Wilkinson fe9db792ee Complete dependency management for JavaBeans Activation Framework
Fixes gh-17062
6 years ago
Andy Wilkinson a189e4cf96 Merge branch '2.1.x'
Closes gh-17220
6 years ago
Andy Wilkinson 645514f848 Polish "Honour base path from @WebAppConfiguration in @WebMvcTest"
See gh-16485
6 years ago
Lorenzo Dee 7340d546b8 Honour base path from @WebAppConfiguration in @WebMvcTest
See gh-16485
6 years ago
Andy Wilkinson 9d355f00e1 Merge branch '2.1.x'
Closes gh-17218
6 years ago
Andy Wilkinson 5dc2339ec2 Polish "Consider properties from @AutoConfigureTestDatabase"
See gh-16814
6 years ago
András Deák 92256c80d0 Consider properties from @AutoConfigureTestDatabase
Both Flyway and Liquibase makes use of DataSourceProperties to get
default properties. Previously, both used strictly the configuration
properties and failed to consider embedded datasource properties
autoconfigured by @AutoConfigureTestDatabase. In case a database layer
test e.g. @JdbcTest relies on the autoconfigured embedded datasource,
Flyway and Liquibase autoconfiguration fails as they are not aware of
the embedded datasource properties.

See gh-16814
6 years ago
Andy Wilkinson f36af7b16d Polish 6 years ago
Andy Wilkinson 78f51a490c Merge branch '2.1.x'
Closes gh-17213
6 years ago
Andy Wilkinson c2a4a3f630 Polish "Auto-configure caching in jOOQ sliced tests"
See gh-17066
6 years ago
Dmytro Nosan 4701d8f82a Auto-configure caching in jOOQ sliced tests
See gh-17066
6 years ago
Andy Wilkinson c62543b514 Merge branch '2.1.x'
Closes gh-17212
6 years ago
Andy Wilkinson 13a7a52c71 Revert "Work around Framework regression in handling of null model values"
This reverts commit 5fc67c545c.

Closes gh-16991
6 years ago
Andy Wilkinson ece8703278 Merge branch '2.1.x'
Closes gh-17211
6 years ago
Andy Wilkinson 7d59b78829 Fix handling of jar files with + chars in their path
Closes gh-17208
6 years ago
Johnny Lim 368c0eebe4 Fix typo
See gh-17132
6 years ago
Andy Wilkinson 801ce6d0a1 Upgrade to Spring Session Corn-M2
Closes gh-16587
6 years ago
Andy Wilkinson 84c6313332 Upgrade to Spring Session Bom Bean-SR6
Closes gh-17209
6 years ago
Andy Wilkinson fa99bd1d89 Upgrade to Spring Integration 5.2.0.M3
Closes gh-17201
6 years ago
Andy Wilkinson fa8dc04751 Upgrade to Spring Kafka 2.2.7.RELEASE
Closes gh-17206
6 years ago
Andy Wilkinson e842dc7f0c Upgrade to Spring Integration 5.1.6.RELEASE
Closes gh-17205
6 years ago
Andy Wilkinson 88df70c4d0 Upgrade to Spring Amqp 2.1.7.RELEASE
Closes gh-17204
6 years ago
Andy Wilkinson d1dc457a87 Upgrade to Spring AMQP 2.2.0.M3
Closes gh-17203
6 years ago
Andy Wilkinson c059c02dca Upgrade to Spring Kafka 2.3.0.M3
Closes gh-17202
6 years ago
Andy Wilkinson 9fda7add5c Upgrade to Spring Security 5.2.0.M3
Closes gh-16965
6 years ago
Phillip Webb 25839185c1 Fix checkstyle violation 6 years ago
Phillip Webb 0b3015e4ff Polish Binder classes
Polish and rename some of the internal Binder classes to better reflect
their purpose. The `BeanBinder` is now called `DataObjectBinder` and
as a `JavaBeanBinder` implementation for setter based properties, and
a `ValueObjectBinder` implementation for constructor based properties.
6 years ago
Madhura Bhave c6dae5764e Add bindOrCreate for constructor based binding
Deprecate the existing `BindResult.orElseCreate` method in favor of
`bindOrCreate` methods on the `Binder`. These new methods allow us to
implement custom creation logic depending on the type of object being
bound. Specifically, it allows constructor based binding to create new
instances that respect the `@DefaultValue` annotations.

Closes gh-17098

Co-authored-by: Phillip Webb <pwebb@pivotal.io>
6 years ago
Andy Wilkinson 38fb639147 Merge branch '2.1.x'
Closes gh-17196
6 years ago
Andy Wilkinson 1b495f5a42 Merge branch '2.0.x' into 2.1.x
Closes gh-17195
6 years ago
Andy Wilkinson 4bae91d933 Merge branch '1.5.x' into 2.0.x 6 years ago
Andy Wilkinson 887e39f2fe Update to Spring HATEOAS 1.0.0.M3
Closes gh-17075
6 years ago
Andy Wilkinson 96ac42e405 Upgrade to Spring Data Lovelace-SR9
Closes gh-17193
6 years ago
Andy Wilkinson 8bfe2fa9c9 Update to Spring Data Moore-RC1
Closes gh-16966
6 years ago
Andy Wilkinson 75da4468e5 Merge branch '2.1.x'
Closes gh-17192
6 years ago
Andy Wilkinson d5d96dff96 Honor logback.debug property and write Logback statuses to console
Closes gh-16876
6 years ago
Andy Wilkinson 48adfe626c Log H2 console path and JDBC URL on startup
Closes gh-17063
6 years ago
Andy Wilkinson 24bda8609b Upgrade to Maven War Plugin 3.2.3
Closes gh-17190
6 years ago
Andy Wilkinson e30e1aa60b Upgrade to Mockito 2.28.2
Closes gh-17189
6 years ago
Andy Wilkinson f5a675157d Upgrade to Infinispan 9.4.14.Final
Closes gh-17188
6 years ago
Andy Wilkinson 8506d4247b Upgrade to Hsqldb 2.5.0
Closes gh-17187
6 years ago
Andy Wilkinson 85c1b7e9dc Upgrade to Hibernate Validator 6.0.17.Final
Closes gh-17186
6 years ago
Andy Wilkinson 908aca6b06 Upgrade to Hibernate 5.4.3.Final
Closes gh-17185
6 years ago
Andy Wilkinson c9f0fe3c33 Upgrade to Jaybird 3.0.6
Closes gh-17184
6 years ago
Andy Wilkinson ff1a8e7222 Upgrade to Jetty 9.4.19.v20190610
Closes gh-17183
6 years ago
Andy Wilkinson a2baf33e28 Upgrade to Tomcat 9.0.21
Closes gh-17182
6 years ago
Andy Wilkinson 8caa25e379 Upgrade to Kafka 2.2.1
Closes gh-17181
6 years ago
Andy Wilkinson 0430b35325 Upgrade to Johnzon Jsonb 1.1.12
Closes gh-17180
6 years ago
Andy Wilkinson 4d0c08c4b7 Upgrade to Httpclient 4.5.9
Closes gh-17179
6 years ago
Andy Wilkinson 336563dff5 Upgrade to Artemis 2.9.0
Closes gh-17178
6 years ago
Andy Wilkinson 318bfbf139 Upgrade to Byte Buddy 1.9.13
Closes gh-17177
6 years ago
Andy Wilkinson ff6f616d31 Upgrade to Undertow 2.0.21.Final
Closes gh-17176
6 years ago
Andy Wilkinson e2c5af526f Upgrade to Rxjava2 2.2.9
Closes gh-17175
6 years ago
Andy Wilkinson a269752f56 Upgrade to Lettuce 5.1.7.RELEASE
Closes gh-17174
6 years ago
Andy Wilkinson 7872e6231c Upgrade to Unboundid Ldapsdk 4.0.11
Closes gh-17173
6 years ago
Andy Wilkinson 11641714a6 Upgrade to Rabbit Amqp Client 5.7.1
Closes gh-17172
6 years ago
Andy Wilkinson f8c87e7da7 Upgrade to Hazelcast 3.12.1
Closes gh-17171
6 years ago
Andy Wilkinson daedb5d379 Upgrade to Appengine Sdk 1.9.75
Closes gh-17170
6 years ago
Andy Wilkinson 1950016b45 Upgrade to Couchbase Client 2.7.7
Closes gh-17169
6 years ago
Andy Wilkinson 1aa193e30b Upgrade to Maven War Plugin 3.2.3
Closes gh-17168
6 years ago
Andy Wilkinson a3bc383019 Upgrade to Neo4j Ogm 3.1.11
Closes gh-17167
6 years ago
Andy Wilkinson 491f5f3233 Upgrade to Infinispan 9.4.14.Final
Closes gh-17166
6 years ago
Andy Wilkinson 53c0860151 Upgrade to Hibernate Validator 6.0.17.Final
Closes gh-17165
6 years ago
Andy Wilkinson bc713a6825 Upgrade to Jaybird 3.0.6
Closes gh-17164
6 years ago
Andy Wilkinson 8b44d07944 Upgrade to Jetty 9.4.19.v20190610
Closes gh-17163
6 years ago
Andy Wilkinson 24242ec476 Upgrade to Tomcat 9.0.21
Closes gh-17162
6 years ago
Andy Wilkinson 9a54ec2346 Upgrade to Solr 7.7.2
Closes gh-17161
6 years ago
Andy Wilkinson 34b55818d8 Upgrade to Johnzon Jsonb 1.1.12
Closes gh-17160
6 years ago
Andy Wilkinson 632d2665e8 Upgrade to Httpclient 4.5.9
Closes gh-17159
6 years ago
Andy Wilkinson eec7cbb7e3 Upgrade to Byte Buddy 1.9.13
Closes gh-17158
6 years ago
Andy Wilkinson 9bcf7a2cfd Upgrade to Undertow 2.0.21.Final
Closes gh-17157
6 years ago
Andy Wilkinson 48631c75d8 Upgrade to Rxjava2 2.2.9
Closes gh-17156
6 years ago
Andy Wilkinson 93dc36655a Upgrade to Lettuce 5.1.7.RELEASE
Closes gh-17155
6 years ago
Andy Wilkinson b347c4ddb5 Upgrade to Unboundid Ldapsdk 4.0.11
Closes gh-17154
6 years ago
Andy Wilkinson 27f05d335c Upgrade to Appengine Sdk 1.9.75
Closes gh-17153
6 years ago
Andy Wilkinson f43a1384a2 Upgrade to Couchbase Client 2.7.7
Closes gh-17152
6 years ago
Andy Wilkinson e124269e15 Merge branch '2.1.x'
Closes gh-17151
6 years ago
Andy Wilkinson b6d9c6ee6c Merge branch '2.0.x' into 2.1.x
Closes gh-17150
6 years ago
Andy Wilkinson 4828c19f8f Merge branch '1.5.x' into 2.0.x 6 years ago
Stephane Nicoll 92e449127e Upgrade to Spring Framework 5.2.0.M3
Closes gh-16963
6 years ago
Stephane Nicoll 0bda2d996a Upgrade to Reactor Californium-SR9
Closes gh-16962
6 years ago
Stephane Nicoll fc660bbe5c Upgrade to Spring Framework 5.1.8.RELEASE
Closes gh-16961
6 years ago
Madhura Bhave 0d2e44151b Fix tests following Spring Security changes 6 years ago
Madhura Bhave 4c7e457582 Improve analysis of tomcat bind exception
Using the throwOnFailure attribute on the tomcat connector, we can now
determine if the underlying exception was a BindException and throw
a PortInUseException instead of the generic WebServerException.

Closes gh-7130
6 years ago
gaurav bhatnagar 1ec5fb9972 Drop deprecated 'spring.version' POM property
See gh-17043
6 years ago
Phillip Webb 9db20313a1 Polish "Add Printer and Parser beans to conversion service"
Extract common registration code and make use of the Spring Framework
registration methods.

See gh-17064
6 years ago
Dmytro Nosan 955eaa87ae Add Printer and Parser beans to conversion service
Update `WebMvcAutoConfiguration` and `WebFluxAutoConfiguration` so that
`Printer<T>` and `Parser<T>` beans are automatically registered with
the conversion service.

Prior to this commit only `GenericConverter`, `Converter` and
`Formatter` beans were automatically registered.

See gh-17064
6 years ago
Madhura Bhave 30cfe7b4c5 Polish 6 years ago
Stephane Nicoll 54c72cf39f Polish 6 years ago
Stephane Nicoll 985c8f7598 Polish RSocket support 6 years ago
Andy Wilkinson 704b5fb2ee Enable encoding of message/x.rsocket.routing.v0 requests
Closes gh-17135
6 years ago
Stephane Nicoll 4fd389dff4 Upgrade to Reactor Dysprosium-M2
Closes gh-16964
6 years ago
Stephane Nicoll 99b60383ea Upgrade to Rsocket 0.12.2-RC4
Closes gh-17131
6 years ago
Andy Wilkinson cffc870fd6 Fix test failures on Windows
Since the move to JUnit 5, a number of tests were failing on Windows.
The majority were failing due to open file handles preventing the
clean up of the tests' temporary directory. This commit addresses
these failures by updating the tests to close JarFiles, InputStreams,
OutputStreams etc.

A change has also been made to CachingOperationInvokerTests to make
a flakey test more robust. Due to System.currentTimeMillis() being
less precise on Windows than it is on *nix platforms, the test could
fail as it would not sleep for long enough for the TTL period to have
expired.
6 years ago
Andy Wilkinson c56fbf8c3d Allow Archives to be closed so they can release resources
Closes gh-17126
6 years ago
Stephane Nicoll 46c2da4a19 Polish "Use existing properties field"
See gh-17129
6 years ago
Ingyu Hwang 725cbd9bc8 Use existing properties field
See gh-17129
6 years ago
Phillip Webb e0aa90cf32 Fix incomplete polish of RedisSessionProperties
Fix polish commit from 919913ae66 to correctly name the property
getter/setters.

See gh-17022
6 years ago
Madhura Bhave b59dc5bce4 Update examples in documentation in accordance with JUnit 5
See gh-17096
6 years ago
Phillip Webb 919913ae66 Polish "Add session property for ConfigureRedisAction"
See gh-17022
6 years ago
Dmytro Nosan a0fabc9851 Add session property for ConfigureRedisAction
Add a new property to `RedisSessionProperties` that allows the default
`ConfigureRedisAction` to be changed. Users can still also configure
the action using a `@Bean`.

See gh-17022
6 years ago
Phillip Webb aad21d1996 Polish "Support default headers with RestTemplateBuilder"
Broaden the scope of customizer support so that instead of focusing
just on headers, we can now customize any outgoing `HttpClientRequest`.
Also update auto-configuration to automatically add any
`RestTemplateRequestCustomizer` beans to the builder.

See gh-17091
6 years ago
Ilya Lukyanovich 43b1a667ce Support default headers with RestTemplateBuilder
Update `RestTemplateBuilder` so that it is easier to apply custom
headers to the outgoing request. The update is particularly useful
for setting the `User-Agent` header, for example so that a GitHub
username can be used when calling `api.github.com`.

See gh-17091
6 years ago
Andy Wilkinson 9b5cb4f9b8 Remove need for public constructor on inner-class
Closes gh-17086
6 years ago
Brian Clozel 7a9d1a1e34 Change default Freemarker template file extension
This commit changes the default file extension for Freemarker templates
from `*.ftl` to `*.ftlh`. This commit also enables by default the
Freemarker setting `"recognize_standard_file_extensions"` to ensure that
HTML escaping is performed by default in Spring Boot applications.

Applications should adapt to this change by changing the file extensions
of existing templates to `.ftlh`.

Closes gh-15131
6 years ago
Andy Wilkinson 048be1813e Ensure JarFile created for nested entry InputStream is closed
Closes gh-17127
6 years ago
Andy Wilkinson 29d1cd3b2d Merge branch '2.1.x'
Closes gh-17124
6 years ago
Andy Wilkinson c12ccfb342 Close JarFile if failure occurs during construction
Fixes gh-17123
6 years ago
Andy Wilkinson 5e3c86ab8d Merge branch '2.1.x'
Closes gh-17122
6 years ago
Andy Wilkinson 4222c5b8ce Prevent URLResource and JarURLConnection from leaking an InputStream
Fixes gh-17121
6 years ago
Andy Wilkinson 5375681fa5 Merge branch '2.1.x'
Closes gh-17120
6 years ago
Andy Wilkinson df9a6a0f4f Wait for up to 30s for access logs to be written during shutdown
Closes gh-17119
6 years ago
Andy Wilkinson 405b4ad441 Merge branch '2.1.x'
Closes gh-17118
6 years ago
Andy Wilkinson 2833f60344 Avoid leaving streams open when writing libraries
Fixes gh-17115
6 years ago
Andy Wilkinson 38552065e8 Merge branch '2.1.x'
Closes gh-17114
6 years ago
Andy Wilkinson 7103eab2e6 Close JarFiles when looking for Class-Path manifest entries
Fixes gh-17095
6 years ago
Andy Wilkinson a084cc3f6c Merge branch '2.1.x'
Closes gh-17112
6 years ago
dreis2211 23b09ecca6 Make dependency available for javadoc generation
See gh-17111
6 years ago