rstoyanchev
ea398d7b7e
Support constructing target object in DataBinder
...
See gh-26721
2023-06-22 20:36:28 +01:00
Juergen Hoeller
3f40452511
Merge branch '6.0.x'
2023-06-26 19:36:20 +02:00
Juergen Hoeller
b77d4d01c5
Adapt no-arg value from interface-based InvocationHandler callback
...
Closes gh-30756
2023-06-26 19:28:19 +02:00
Sam Brannen
854715d9a7
Update copyright headers
2023-06-25 15:39:16 +02:00
Sam Brannen
19686adc01
Merge branch '6.0.x'
2023-06-24 14:15:05 +02:00
Sam Brannen
f86a69ebfb
Update copyright headers and polish
2023-06-24 14:14:02 +02:00
Sam Brannen
39bc7566df
Stop printing to System.out in tests
2023-06-24 14:10:12 +02:00
Sébastien Deleuze
f06cf21341
Support Kotlin parameter default values in handler methods
...
This commit adds support for Kotlin parameter default values
in handler methods. It allows to write:
@RequestParam value: String = "default"
as an alternative to:
@RequestParam(defaultValue = "default") value: String
Both Spring MVC and WebFlux are supported, including on
suspending functions.
Closes gh-21139
2023-06-22 16:08:48 +02:00
Sam Brannen
06b6c4bcf9
Update copyright headers
2023-06-22 14:56:09 +02:00
Sam Brannen
0605172d4d
Merge branch '6.0.x'
...
# Conflicts:
# spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java
2023-06-20 13:29:06 +02:00
Sam Brannen
67798a7b52
Fix CSS classes in Javadoc HTML tables due to upgrade to Java 17
...
Closes gh-30701
2023-06-20 13:24:03 +02:00
rstoyanchev
089d938e15
Set throwExceptionIfNoHandlerFound=true and deprecate
...
Closes gh-29491
2023-06-19 17:18:09 +01:00
rstoyanchev
c00508d6cf
Raise and handle NoResourceFoundException
...
See gh-29491
2023-06-19 17:18:08 +01:00
Stephane Nicoll
83b0f4f394
Merge branch '6.0.x'
2023-06-19 15:47:26 +02:00
Stephane Nicoll
294cdba80c
Update copyright year of changed file
...
See gh-30601
2023-06-19 15:44:04 +02:00
cwatzl
072a86149d
Flag PathResourceResolver#resolve*Internal as @Nullable
...
See gh-30601
2023-06-19 15:37:16 +02:00
Sam Brannen
a2072de391
Update copyright headers
2023-06-15 16:21:13 +02:00
Sam Brannen
526d9eae7f
Merge branch '6.0.x'
2023-06-15 16:20:19 +02:00
Sam Brannen
f22f439a68
Suppress deprecation warning due to upgrade to context-propagation 1.0.3
...
See gh-30657
2023-06-15 16:18:38 +02:00
Juergen Hoeller
220995b830
Move HandlerMethodValidator to web.method.annotation package
...
Avoiding cycle between web.method.support and web.method.annotation packages.
See gh-29825
2023-06-14 21:52:55 +02:00
rstoyanchev
61eaa9333b
Polishing in ErrorResponse
...
See gh-30566
2023-06-14 16:30:15 +01:00
rstoyanchev
9c7b5cb3f5
Add ProblemDetail "type" message code
...
See gh-30566
2023-06-14 16:30:15 +01:00
Arjen Poutsma
8a29bfba3f
Polishing external contribution
2023-06-14 13:44:50 +02:00
Vatsa
0c817f0441
Add non-null assertions in DefaultEntityResponseBuilder
...
This commit adds various non-null assertions to
DefaultEntityResponseBuilder, in Spring MVC.
Closes gh-30433
2023-06-14 13:44:50 +02:00
Sam Brannen
a268203832
Merge branch '6.0.x'
2023-06-13 16:27:20 +02:00
Sam Brannen
6cfb11a360
Upgrade to Micrometer BOM 1.10.8 and context-propagation 1.0.3
...
Cloes gh-30657
2023-06-13 16:21:26 +02:00
Sébastien Deleuze
6a26db80b6
Refine RouterFunctionMapping ordering consistency
...
This commit changes the order of RouterFunctionMapping defined
in WebMvcConfigurationSupport from 3 to -1 in order to achieve
better consistency between WebMVC and WebFlux. It also reduces
the surprise factor. That way, functional routes are always
before annotation-based ones.
Closes gh-30278
2023-06-13 08:17:54 +02:00
rstoyanchev
ccf68878c7
Merge branch '6.0.x'
2023-06-12 16:12:03 +01:00
rstoyanchev
bbab4faf7a
Method level only, empty RequestMapping matches "" and "/"
...
Closes gh-30293
2023-06-12 16:11:42 +01:00
Juergen Hoeller
6501176081
Merge branch '6.0.x'
2023-06-12 12:59:55 +02:00
Juergen Hoeller
cc8c852c2b
Specific check for parent of MethodInvocationInfo ClassLoader
...
See gh-30389
2023-06-12 12:57:10 +02:00
Rossen Stoyanchev
bd054a4918
Add method validation to Spring MVC
...
See gh-29825
2023-06-12 11:37:55 +01:00
Sam Brannen
0093d6e34d
Polish contribution
...
See gh-30587
2023-06-07 19:13:05 +02:00
luohongtu
324c6057fd
Remove duplicate code in RequestResponseBodyMethodProcessor
...
Closes gh-30587
2023-06-07 19:13:05 +02:00
Sébastien Deleuze
66a1be2d86
Enable KotlinScriptTemplateTests with Java 19
...
No support yet for Java 21.
Closes gh-29249
2023-06-06 15:49:04 +02:00
Sam Brannen
05eab703cc
Polishing
2023-06-06 11:29:25 +02:00
Juergen Hoeller
8c6287ef7b
Expose parameter/field name for non-JavaBeans type conversion
...
Supports name-bound PropertyEditor registrations on data classes.
Includes consistent support for field-aware method parameters.
Closes gh-28284
2023-06-02 20:42:05 +02:00
rstoyanchev
67f88482e6
Merge branch '6.0.x'
2023-05-30 17:36:08 +01:00
rstoyanchev
938dff7bbe
Remove (recently committed) erroneous character in test
2023-05-30 17:35:50 +01:00
rstoyanchev
b3f5d20ad8
Merge branch '6.0.x'
2023-05-30 17:18:01 +01:00
rstoyanchev
7629ea5672
Update docs to mention Boot's HttpMessageConverters
...
Closes gh-30538
2023-05-30 17:17:31 +01:00
rstoyanchev
454a85978f
Allow fallback on subclass of ProblemDetail
...
Closes gh-30533
2023-05-30 17:17:31 +01:00
Simon Baslé
3f14ebc4cf
Polish ReactiveTypeHandler when checking wildcard ndjson subtype
...
This commit polishes the previous change, ensuring that if the request
uses a wildcard subtype with an ndjson suffix then the wildcard isn't
present in the response's Content-Type.
Insteand, in that case we would fall back to `applicatin/x-ndjson` (the
base ndjson media type), assuming that the requester is only interested
in the ndjson nature of the underlying representation and not in the
specific semantics of any subtype.
See commit 9332b3f
See gh-26817
2023-05-26 15:23:09 +02:00
Simon Baslé
9332b3f690
Have ReactiveTypeHandler consider +x-ndjson suffix as streaming
...
This commit adds `application/*+x-ndjson`, a wildcard media type which
covers all types that can be parsed as nd-json, to the list of media
types the ReactiveTypeHandler considers for a streaming response in
WebMVC.
As a result, a request which for example `Accept` the
`application/vnd.myapp.v1+x-ndjson` media type will generate a response
with the same `Content-Type`, with newline-delimited json objects being
streamed in the response body.
Closes gh-26817
2023-05-25 16:00:34 +02:00
Brian Clozel
a91effcd86
Ignore some FreeMarker tests for JDK21
...
This reverts commit 07a5d8c91 and instead disables the relevant
FreeMarker tests for JDK21+ runs.
2023-05-11 18:00:23 +02:00
Brian Clozel
07a5d8c91c
Fix FreeMarker tests for JDK21 build
...
Prior to this commit, some FreeMarker tests would fail when involving
property lookup in a template file, where this bean property is linked
with a method implemented as a default method on an interface.
While I did not manage to reproduce this behavior in an independent test
case, this is most likely related to a change in JDK 21:
https://bugs.openjdk.org/browse/JDK-8071693
This commit changes the template expression to using the default method
directly.
2023-05-11 17:10:26 +02:00
Sam Brannen
5e52259fb3
Suppress warnings in tests
2023-05-10 14:27:43 +02:00
Juergen Hoeller
c1014f5989
Relax relative path existence assertion for parsed URIs
...
See gh-29481
See gh-28522
2023-05-01 00:01:49 +02:00
Juergen Hoeller
d39e44c209
Deprecate AutowireCapableBeanFactory.createBean(Class, int, boolean)
...
Includes consistent usage of createBean(Class) in SpringBeanJobFactory and SpringBeanContainer.
Closes gh-30345
See gh-29855
See gh-30041
2023-04-30 23:07:29 +02:00
Juergen Hoeller
9342317291
Avoid use of java.net.URL constructors (for JDK 20 compatibility)
...
Explicit path computation also leads to consistent relative path semantics for resource URLs.
Closes gh-29481
Closes gh-28522
2023-04-30 23:03:39 +02:00