Sam Brannen
30d6ec3398
Update copyright headers
2023-07-15 16:01:15 +02:00
Johnny Lim
ab83972c3e
Add missing @Nullable annotations in AbstractResourceResolver subclasses
...
See gh-30601
Closes gh-30893
2023-07-15 16:00:32 +02:00
rstoyanchev
8a283e39ff
Update DefaultHandlerExceptionResolver logging
...
Reduce logging for NoResourceFoundException and NoHandlerFoundException.
Closes gh-30884
2023-07-14 15:11:19 +01:00
Sam Brannen
bcd09d7ad8
Merge branch '6.0.x'
2023-07-15 16:01:47 +02:00
Sam Brannen
63fe45d92a
Update copyright headers
2023-07-15 13:11:29 +02:00
rstoyanchev
39e74d89e1
Merge branch '6.0.x'
2023-07-11 11:17:41 +01:00
rstoyanchev
20afa3265a
Encapsulate full path initialization
2023-07-11 11:10:20 +01:00
Arjen Poutsma
d04d7b2e57
Add request binding to functional endpoints
...
This commit introduces form binding to ServerRequest in both WebMVC.fn
and WebFlux.fn's, in the form of a bind(Class) method.
Closes gh-25943
2023-07-11 09:52:39 +02:00
Patrick Strawderman
372282457f
Use Collections.emptyEnumeration() where appropriate
...
Closes gh-30803
2023-07-05 13:47:11 +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
299b86bae3
Merge branch '6.0.x'
2023-07-05 14:02:49 +02:00
Arjen Poutsma
496155525c
Allow built ServerResponse to throw exception
...
This commit ensures that ServerResponse.HeadersBuilder::build can throw
an exception, by introducing a separate functional interface that does
allow for exceptions to be thrown.
Closes gh-30818
2023-07-05 12:01:55 +02:00
Juergen Hoeller
6fa09e1783
Extract AnnotatedMethod base class for consistent annotation exposure
...
As a consequence, the spring-messaging HandlerMethod detects interface parameter annotations as well, and the same is available for other HandlerMethod variants.
Closes gh-30801
2023-07-04 20:42:30 +02:00
rstoyanchev
deaa493644
Add Visitor to HandlerMethodValidationException
...
Closes gh-30813
2023-07-04 17:19:58 +01:00
rstoyanchev
592ab0f350
Add ~.validation.method package
...
Extract classes from ~.validation.beanvalidation without a direct
dependency on beanvalidation.
See gh-30644
2023-07-03 15:05:51 +01:00
rstoyanchev
7a79da589a
Add default web handling of method validation errors
...
Closes gh-30644
2023-07-03 12:08:11 +01:00
rstoyanchev
11a416156b
Use ResolvableType to create WebDataBinder
...
This provides more flexibility to pass a targetType even if
a MethodParameter is not available.
See gh-26721
2023-06-26 13:11:05 +01:00
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
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
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
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
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
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
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
Sam Brannen
cef597bedd
Update copyright headers
2023-04-07 14:24:22 +02:00
Sébastien Deleuze
b5b115e52c
Fix SSE with indenting serializer in WebMvc.fn
...
This commit ensures that HTTP headers like "text/event-stream"
are correctly forwarded to the converter used in
SseServerResponse for proper pretty print handling.
Close gh-30277
2023-04-07 11:25:47 +02:00
Vatsa
6c8ebc7f7e
Add non-null assertions in DefaultServerResponseBuilder
...
This commit adds various non-null assertions to
DefaultServerResponseBuilder, in both Spring MVC and WebFlux.
Closes gh-30157
2023-04-04 12:36:46 +02:00
Juergen Hoeller
491ae1e3be
Use MethodInvocationInfo class loader in case of JDK platform loader as well
...
Closes gh-30210
2023-03-29 13:46:18 +02:00
Juergen Hoeller
ce2689eead
Use MethodInvocationInfo class loader in case of core JDK interface type
...
Closes gh-30210
2023-03-28 13:20:49 +02:00