Commit Graph

18448 Commits

Author SHA1 Message Date
Juergen Hoeller
103f57a0a6 Polishing 2020-11-05 18:50:34 +01:00
Juergen Hoeller
a2a1a70c32 Suppress NotWritablePropertyException in case of ignoreUnknown=true
Closes gh-25986
2020-11-05 18:35:26 +01:00
Sam Brannen
7795f02988 Preserve registration order in @ActiveProfiles
With this commit, bean definition profiles declared via @ActiveProfiles
are once again stored in registration order, in order to support use
cases in Spring Boot and other frameworks that depend on the
registration order.

This effectively reverts the changes made in conjunction with gh-25973.

Closes gh-26004
2020-11-02 23:32:38 +01:00
Rossen Stoyanchev
0e49291982 Use static accessors in DefaultSimpUserRegistry
Closes gh-26010
2020-11-02 17:36:47 +00:00
Spring Buildmaster
a9edc23533 Next Development Version 2020-10-27 13:26:41 +00:00
Rossen Stoyanchev
b0726ffbb3 Full header support HTTP HEAD Resource requests
Allow the body to be written in order for all headers to be set
as they would be on HTTP GET. The body content is ignored as a
lower level.

See gh-25976
2020-10-27 12:05:58 +00:00
Rossen Stoyanchev
f02a2bef8f Allow Resource to add headers for range requests
Closes gh-25976
2020-10-27 11:50:20 +00:00
Juergen Hoeller
20fe1bcd99 Polishing 2020-10-26 18:19:20 +01:00
Sam Brannen
aa0a3bd4d9 Avoid cache miss for @ActiveProfiles w/ same profiles but different order
Prior to this commit, two @ActiveProfiles declarations with the same
profiles but different order resulted in an identical duplicate
ApplicationContext in the context cache in the Spring TestContext
Framework.

This commit uses a TreeSet to ensure that registered active profiles
are both unique and sorted, thereby avoiding cache misses for
semantically identical active profiles configuration on different test
classes.

Closes gh-25973
2020-10-26 13:16:15 +01:00
Juergen Hoeller
d5e637a33c Restore independent LinkedMultiValueMap implementation (without base class)
Closes gh-25960

(cherry picked from commit 82835b99ec)
2020-10-26 11:31:48 +01:00
Stephane Nicoll
e913167fa4 Upgrade to Reactor Californium-SR22
Closes gh-25948
2020-10-25 18:12:08 +01:00
Stephane Nicoll
ca7198c446 Start building against Reactor Californium-SR22 snapshots
See gh-25948
2020-10-21 14:29:47 +02:00
Juergen Hoeller
6d18ead0b7 Fail on warnings with compileGroovy (since it compiles Java code as well)
(cherry picked from commit d77ecb26a9)
2020-10-16 15:44:29 +02:00
Juergen Hoeller
f49e0e36ff Optimize String argument resolution in MessageTag
Closes gh-25809

(cherry picked from commit d9da663f6d)
2020-10-16 15:44:20 +02:00
Rossen Stoyanchev
3371c23343 Reinstate removal of jsessionid from lookup path
Closes gh-25864
2020-10-13 16:31:27 +01:00
Juergen Hoeller
da84155d8d Avoid outdated Jackson API in tests
See gh-25907
2020-10-13 11:24:15 +02:00
Juergen Hoeller
60a4766e9e Polishing 2020-10-13 01:29:11 +02:00
Juergen Hoeller
3fb51b0743 Polishing 2020-10-13 00:37:37 +02:00
Juergen Hoeller
25a1bfb093 Avoid creation of unused logger instance in AbstractMediaTypeExpression
Closes gh-25901
2020-10-13 00:37:17 +02:00
Juergen Hoeller
187b029671 Include Part headers support in MockMultipartHttpServletRequest
See gh-25829
2020-10-12 19:49:07 +02:00
Juergen Hoeller
87b1b618fb Polishing 2020-10-12 19:25:47 +02:00
Juergen Hoeller
3b09456991 Attempt fallback Part resolution even without StandardMultipartHttpServletRequest
Closes gh-25829
2020-10-12 19:24:38 +02:00
Juergen Hoeller
f4eefc62c1 Construct StringBuilder in StreamUtils with appropriate initial size
Closes gh-25789
2020-10-07 15:08:39 +02:00
Juergen Hoeller
6124a3f0ba Upgrade to Hibernate Validator 6.0.21, Undertow 2.0.32, Checkstyle 8.36.2 2020-10-06 17:50:28 +02:00
Juergen Hoeller
7861cfab6c Polishing 2020-10-06 17:50:08 +02:00
Juergen Hoeller
7ec6a9dc54 Consistent @Nullable declarations on overridden converter methods 2020-10-06 17:49:57 +02:00
Juergen Hoeller
2ade77304a Revise native Hibernate 5 bootstrapping with JTA transaction manager
Closes gh-25858
2020-10-06 17:49:43 +02:00
Rossen Stoyanchev
3a610bcf0d Add missing change related to last commit
See gh-25821
2020-10-01 16:31:15 +01:00
Rossen Stoyanchev
5cc501b9d3 Fix issue with copying headers in NativeMessageHeaderAccessor
Closes gh-25821
2020-10-01 16:07:48 +01:00
Rossen Stoyanchev
afdcaa9d1b Polishing Javadoc
See gh-25821
2020-10-01 16:06:14 +01:00
Sébastien Deleuze
543333f5ba Add missing @Nullable to WebFlux RequestMappingHandlerMapping
Closes gh-25657
2020-09-25 15:25:43 +02:00
Juergen Hoeller
db48b546ac Polishing 2020-09-25 12:20:37 +02:00
Juergen Hoeller
e48292fc07 Add MariaDB to the supported database products for procedures and functions
Closes gh-25811
2020-09-25 12:19:58 +02:00
Juergen Hoeller
6456ba9e60 Translate NullBean result to null for lookup method with bean name
Closes gh-25806

(cherry picked from commit 21cb9e8bff)
2020-09-25 11:55:36 +02:00
Sam Brannen
c275989323 Do not generate reference docs for include-files
Prior to this commit, the Asciidoctor Gradle tasks generated top-level
HTML and PDF documents for AsciiDoc files that are included in other
top-level documents. This causes slower builds and results in each
include-file being published twice:

1) inline in the including document (as intended)
2) as a top-level document but missing surrounding context (unintended)

The reason these include-files are generated as top-level documents is
that the asciidoctor and asciidoctorPdf Gradle tasks are configured to
use '*.adoc' as the input source files.

This commit addresses this issue by moving the following include-files
to new subdirectories. Locating the include-files in the subdirectories
causes them to be ignored in the '*.adoc' pattern used to identify
input source files.

- data-access-appendix.adoc -> data-access/data-access-appendix.adoc
- integration-appendix.adoc -> integration/integration-appendix.adoc
- testing-webtestclient.adoc -> testing/testing-webtestclient.adoc

Closes gh-25783
2020-09-21 16:54:13 +02:00
Sam Brannen
9486ece0d8 Remove unnecessary folders and files from PDF reference documentation
Prior to this commit, the asciidoctor Gradle task was configured to
generate both the HTML5 and PDF backends. Unfortunately, this resulted
in resources such as HTML, JavaScript, CSS, and images being published
alongside the generated PDF documents.

This commit addresses this issue by introducing the use of a dedicated
asciidoctorPdf Gradle task. The existing asciidoctor Gradle task has
been modified to only generate HTML5 output.

In addition, the asciidoctor task now has a dynamic dependency on the
asciidoctorPdf task if the current project version is a non-SNAPSHOT
version. Thus, invoking `./gradlew asciidoctor` will still generate both
the HTML5 and PDF outputs for non-SNAPSHOT versions; whereas,
`./gradlew asciidoctorPdf` will generate only the PDF outputs regardless
of the current project version.

See gh-25783
2020-09-21 16:53:57 +02:00
Juergen Hoeller
560fec51a1 Consistent flushing of given OutputStream
(cherry picked from commit f5d7161d6b)
2020-09-18 19:25:02 +02:00
Juergen Hoeller
8fe530c449 Polishing (backported from 5.2.x) 2020-09-18 18:35:29 +02:00
Juergen Hoeller
5b4f3e871f Construct StringWriter instances with appropriate initial size
Closes gh-25789

(cherry picked from commit 9dfef59af2)
2020-09-18 18:33:00 +02:00
Sam Brannen
547a13985a Fix example in Javadoc for Assert.notNull(object, messageSupplier)
Closes gh-25774
2020-09-15 16:30:35 +02:00
Spring Buildmaster
216c4a1c93 Next Development Version 2020-09-15 09:02:55 +00:00
Juergen Hoeller
a3bb9b2fe4 Polishing
(cherry picked from commit f010368a66)
2020-09-15 10:12:51 +02:00
Juergen Hoeller
c2b2701f23 Upgrade to Reactor Californium-SR21
Includes Undertow 2.0.31 and Checkstyle 8.36.1 as well.

Closes gh-25731
2020-09-14 23:15:45 +02:00
Juergen Hoeller
ec87fdb028 Polishing 2020-09-14 23:13:24 +02:00
Juergen Hoeller
c1f534548d Javadoc refinement (aligned with 5.2.x)
See gh-25509
2020-09-08 12:42:03 +02:00
Juergen Hoeller
b7883c3e37 FileUrlResource.isWritable() exclusively relies on getFile() implementation
Closes gh-25584

(cherry picked from commit c6cc6705ef)
2020-09-08 12:38:49 +02:00
Rossen Stoyanchev
5de4f756f3 Explain how to provide serialization view programmatically
Closes gh-25596
2020-09-08 11:33:13 +01:00
Rossen Stoyanchev
385c97db9f Expose protected method in AbstractJackson2HttpMessageConverter
Closes gh-25509
2020-09-08 11:27:27 +01:00
Rossen Stoyanchev
32cbbfe111 UriComponentsBuilder Javadoc update
Closes gh-25604
2020-09-08 11:24:01 +01:00
Rossen Stoyanchev
ca4a696a70 Switch to Reactor Californium snapshots
See gh-25731
2020-09-08 11:10:39 +01:00