rstoyanchev
93d5be621b
Merge branch '6.1.x'
2024-07-10 17:55:48 +01:00
rstoyanchev
611d3e5551
Correct type names in docs on Validation in WebFlux
...
Closes gh-33061
2024-07-10 17:55:19 +01:00
rstoyanchev
b93b7e013a
Add FragmentsRendering to documentation for return values
...
Closes gh-33162
2024-07-10 16:50:12 +01:00
Sam Brannen
b64edb2d2a
Update Content-Type based on encoding in MVC FreeMarkerView
...
Closes gh-33119
2024-06-29 17:12:48 +02:00
Sam Brannen
e1567b93c2
Merge branch '6.1.x'
2024-06-27 11:40:16 +02:00
Sam Brannen
8b11ee9ee2
Document that ModelMap is not a supported argument type in WebFlux
...
Prior to this commit, the "Method Arguments" documentation for WebFlux
in the reference manual stated that WebFlux controller methods can
accept arguments of type Map, Model, or ModelMap to access the model.
However, ModelMap is actually not supported and results in exception
due to a type mismatch.
This commit updates the documentation to reflect this.
In addition, this commit updates related Javadoc and tests to avoid
mentioning or using ModelMap in WebFlux.
Closes gh-33107
2024-06-27 11:33:50 +02:00
Sam Brannen
1cf5264163
Polishing
2024-06-27 10:46:00 +02:00
Juergen Hoeller
d9a2e0b731
Merge branch '6.1.x'
2024-06-24 12:27:23 +02:00
rstoyanchev
6e82bf05b6
Document list/map/array constructor data binding
...
Closes gh-32426
2024-06-24 11:25:22 +01:00
Juergen Hoeller
4e2fb308f6
Document contentLength() behavior for InputStreamResource and custom subclasses
...
Closes gh-33089
2024-06-24 12:10:35 +02:00
Stéphane Nicoll
d43dba63a1
Document AssertJ support for MockMvc
...
This commit restructures the section on MockMvc so that the anchors
are easier to read. The standard integration has moved to a
Hamcrest Integration section at the same level as HtmlUnit Integration,
and a new AssertJ Integration section has been created.
Closes gh-32454
2024-06-21 12:51:35 +02:00
Brian Clozel
4cbaaa3b1d
Move Servlet HTTP Message Conversion to its own section
...
Closes gh-33063
2024-06-19 15:45:16 +02:00
Stéphane Nicoll
b7e4fa06c3
Merge branch '6.1.x'
2024-06-10 10:02:41 +02:00
hlmg
c6c64e6fe7
Fix typo
...
See gh-32993
2024-06-10 10:00:37 +02:00
Stéphane Nicoll
5706ee1762
Merge branch '6.1.x'
2024-06-06 08:08:47 +02:00
ypyf
e12d1259d1
Use HttpStatusCode consistently in reference guide
...
See gh-32966
2024-06-06 08:06:33 +02:00
rstoyanchev
f4f89aa2a4
Add headers to data binding values
...
Closes gh-32676
2024-06-05 11:30:32 +01:00
Sébastien Deleuze
f62275d674
Merge branch '6.1.x'
2024-05-23 16:05:54 +02:00
Attacktive
73eb6f0660
Complete a Kotlin code snippet in the refdoc
...
Closes gh-32877
2024-05-23 16:03:34 +02:00
rstoyanchev
89dd247b97
Improve docs on controller method validation
...
Closes gh-32807
2024-05-22 17:15:54 +01:00
rstoyanchev
1ddc84862e
Improve docs on controller method validation
...
Closes gh-32807
2024-05-22 17:12:09 +01:00
Brian Clozel
4d4b343815
Support Content Negotiation with @ExceptionHandler
...
Prior to this commit, `@ExceptionHandler` annotated controller methods
could be mapped using the exception type declaration as an annotation
attribute, or as a method parameter.
While such methods support a wide variety of method arguments and return
types, it was not possible to declare the same exception type on
different methods (in the same controller/controller advice).
This commit adds a new `produces` attribute on `@ExceptionHandler`; with
that, applications can vary the HTTP response depending on the exception
type and the requested content-type by the client:
```
@ExceptionHandler(produces = "application/json")
public ResponseEntity<ErrorMessage> handleJson(IllegalArgumentException exc) {
return ResponseEntity.badRequest().body(new ErrorMessage(exc.getMessage(), 42));
}
@ExceptionHandler(produces = "text/html")
public String handle(IllegalArgumentException exc, Model model) {
model.addAttribute("error", new ErrorMessage(exc.getMessage(), 42));
return "errorView";
}
```
This commit implements support in both Spring MVC and Spring WebFlux.
Closes gh-31936
2024-05-20 17:22:30 +02:00
Juergen Hoeller
7c534eeeeb
Merge branch '6.1.x'
...
# Conflicts:
# framework-platform/framework-platform.gradle
2024-05-14 22:02:32 +02:00
Juergen Hoeller
e509385eae
Add InputStreamResource(InputStreamSource) constructor for lambda expressions
...
Includes notes for reliable InputStream closing, in particular with Spring MVC.
Closes gh-32802
2024-05-14 21:59:42 +02:00
Brian Clozel
80ec951fcf
Merge branch '6.1.x'
2024-05-13 13:15:01 +02:00
Brian Clozel
09b8feadc2
Document streaming/collecting behavior for Flux return values
...
Closes gh-32630
2024-05-13 13:12:53 +02:00
rstoyanchev
10e3d3b434
Merge branch '6.1.x'
2024-05-13 11:41:22 +01:00
rstoyanchev
d03ea0bf19
Update docs on HandlerInterceptor
...
Closes gh-32729
2024-05-13 11:40:32 +01:00
Brian Clozel
5cb4985234
Merge branch '6.1.x'
2024-05-13 10:44:09 +02:00
Brian Clozel
89ce63f1f3
Replace RFC7807 by RFC9457 in documentation
...
This commit updates all references to RFC7807 by RFC9457 since the
former is now obsolete.
Closes gh-32806
2024-05-13 10:42:35 +02:00
Sébastien Deleuze
246f291f67
Use code includes and tabs in WebSocket documentation
...
See gh-22171
2024-04-09 12:21:36 +02:00
Sébastien Deleuze
8af3eb1aea
Polishing
...
See gh-22171
2024-04-02 13:33:29 +02:00
Sébastien Deleuze
bede619e7d
Refine `@EnableWebFlux` documentation
...
This commit refines the documentation related to `@EnableWebFlux` in
order to make it more relevant for modern Boot applications.
See gh-22171
2024-04-02 11:48:12 +02:00
Stéphane Nicoll
81bc586e15
Merge branch '6.1.x'
2024-04-02 09:34:39 +02:00
kexin.an
640b97f33c
Polish reference guide
...
See gh-32557
2024-04-02 09:29:55 +02:00
Sébastien Deleuze
91bb7d8daf
Use code includes and tabs in MVC Config documentation
...
This commit also refines the documentation related to
`@EnableWebMvc` in order to make it more relevant for modern Boot
applications.
See gh-22171
2024-03-29 17:58:01 +01:00
Stéphane Nicoll
875037c431
Merge branch '6.1.x'
2024-03-15 08:28:24 +01:00
Stéphane Nicoll
dfc1b839f3
Polish "Fix default strategy description of ProblemDetail error codes"
...
See gh-32446
2024-03-15 08:27:59 +01:00
Linor Dolev
302c24aaa8
Fix default strategy description of ProblemDetail error codes
...
See gh-32446
2024-03-15 08:02:20 +01:00
Sébastien Deleuze
460ffbc0f6
Use code includes and tabs in mvc-controller/ann.adoc
...
See gh-22171
2024-03-12 19:18:42 +01:00
Sébastien Deleuze
9cc74e78f8
Refine "Redirecting to a resource" section code sample
...
The commit updates the code sample to use a null element friendly list.
Closes gh-32423
2024-03-12 12:22:37 +01:00
rstoyanchev
f9883d8bd6
Polishing contribution
...
Closes gh-31970
2024-03-12 10:43:31 +00:00
injae-kim
76d00d78db
Support splitting STOMP messages in WebSocketStompClient
...
See gh-31970
2024-03-12 10:43:31 +00:00
ZeroCyan
5dc1190930
Fix typo in web documentation
...
Fixed a small typo.
Closes gh-32407
2024-03-10 16:50:00 +01:00
rstoyanchev
38d5c0fed6
Add RFC-7807 response interception
...
Closes gh-31822
2024-03-08 16:56:38 +00:00
Tadaya Tsuyukubo
5bd1c1fddb
Add ThreadLocalAccessor for LocaleContext and RequestAttributes
...
Add `ThreadLocalAccessor` implementations:
- `LocaleThreadLocalAccessor`
- `RequestAttributesThreadLocalAccessor`
See gh-32243
2024-02-15 15:49:55 +01:00
Stéphane Nicoll
48da9524c3
Polish
2024-02-14 02:40:02 +01:00
Sam Brannen
10bc93c058
Polishing
2024-02-13 17:22:35 +01:00
Sébastien Deleuze
8c3fc8c549
Add documentation for functional resource handling
...
Closes gh-27257
2024-02-13 13:36:48 +01:00
Yanming Zhou
6b3bf554ce
Fix typo
...
Introduced by commit f9726ae0c8
Closes gh-32111
2024-01-25 08:32:43 +01:00