Sam Brannen
59b78cc513
Polishing
2023-08-05 10:49:39 +03:00
rstoyanchev
6630b16771
Polishing
...
See gh-30980
2023-08-04 18:21:42 +03:00
Olga MaciaszekSharma
d1d5b54f12
Support @HttpExchange for server-side handling
...
See gh-30980
2023-08-04 18:21:42 +03:00
Juergen Hoeller
3b1af692cc
Merge branch '6.0.x'
...
# Conflicts:
# spring-beans/spring-beans.gradle
# spring-context/spring-context.gradle
# spring-orm/spring-orm.gradle
# spring-test/spring-test.gradle
# spring-web/spring-web.gradle
# spring-webflux/spring-webflux.gradle
2023-08-02 01:04:31 +02:00
Juergen Hoeller
d250a5155a
Consistent dependency declarations
2023-08-02 00:56:50 +02:00
Juergen Hoeller
b9ae996dfc
Merge branch '6.0.x'
...
# Conflicts:
# spring-context/spring-context.gradle
# spring-context/src/main/java/org/springframework/context/event/SimpleApplicationEventMulticaster.java
# spring-context/src/test/java/org/springframework/scheduling/annotation/EnableSchedulingTests.java
# spring-orm/src/main/java/org/springframework/orm/hibernate5/SpringBeanContainer.java
# spring-test/spring-test.gradle
# spring-webmvc/spring-webmvc.gradle
2023-08-02 00:16:55 +02:00
Juergen Hoeller
ae279eaced
Polishing
2023-08-01 23:52:48 +02:00
Sam Brannen
f00756bc7c
Update copyright headers
2023-08-01 14:55:04 +03:00
rstoyanchev
78d0dbb519
Ensure handling of 404 errors for static resources
...
Closes gh-30930
2023-07-27 22:13:10 +03:00
Rossen Stoyanchev
85704c890e
Use DispatchExceptionHandler for handler errors
...
See gh-30930
2023-07-27 22:13:10 +03:00
Juergen Hoeller
3437e61f98
Merge branch '6.0.x'
2023-07-26 12:08:20 +02:00
Juergen Hoeller
2573ba4a50
Polishing
2023-07-26 12:07:11 +02:00
Juergen Hoeller
bbde68c49e
Polishing
2023-07-25 19:12:07 +02:00
rstoyanchev
37eaded63d
Support BindParam annotation
...
Allows customizing the name of the request parameter to bind a
constructor parameter to.
Closes gh-30947
2023-07-25 16:15:55 +03:00
Juergen Hoeller
5ebbb3ff3e
Merge branch '6.0.x'
...
# Conflicts:
# spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcOperations.java
# spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java
# spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterJdbcTemplate.java
2023-07-25 19:13:33 +02:00
Juergen Hoeller
25ea1f4c0f
Merge branch '6.0.x'
...
# Conflicts:
# spring-context/src/main/java/org/springframework/scheduling/support/CronSequenceGenerator.java
2023-07-19 00:37:06 +02:00
Juergen Hoeller
2f33e77ab4
Consistent equals/hashCode style (and related polishing)
2023-07-19 00:35:19 +02:00
Sam Brannen
a34f9fa66c
Update copyright headers
2023-07-15 13:10:46 +02:00
Sam Brannen
01ceee8de5
Polishing
2023-07-15 13:36:11 +02:00
Johnny Lim
be8bfad3af
Enable KotlinScriptTemplateTests in Spring WebFlux on Java 20
...
See gh-29249
Closes gh-30896
2023-07-15 13:35:59 +02:00
Sam Brannen
70cf754a2f
Suppress warnings in tests
2023-07-15 13:02:16 +02:00
Sam Brannen
e6d360c1c6
Polishing
2023-07-15 12:58:18 +02:00
rstoyanchev
3c9cfa8a0f
Revise order of method declarations in WebFluxConfigurer
...
See gh-30678
2023-07-12 17:09:57 +01:00
rstoyanchev
b016f385e1
Add BlockingExecutionConfigurer to WebFlux config
...
Closes gh-30678
2023-07-12 16:55:02 +01:00
rstoyanchev
74972fb751
Add updateModel to BindingContext
...
The method includes logic that is currently in
ViewResolutionResultHandler but fits well in BindingContext and also
includes the call to saveModel method from the InitBinderBindingContext
subclass, which was called too early until now from
RequestMappingHandlerAdapter before the model has been fully updated.
This mirrors a similar method in ModelFactory on the Spring MVC side
which also combines those two tasks.
Closes gh-30821
2023-07-11 16:34:03 +01: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
rstoyanchev
a3e37597aa
Add ReactiveHttpRequestValues
...
Separate collection and handling of reactive request values into a
subclass of HttpRequestValues.
Closes gh-30117
2023-07-11 07:42:04 +01:00
Rossen Stoyanchev
22376c2efa
Polishing
...
See gh-30117
2023-07-10 11:24:30 +01:00
Rossen Stoyanchev
068dc7db28
Remove use of TestHttpClientAdapter
...
Now that HttpClientAdapter is deprecated and replaced by HttpExchangeAdapter
and ReactorHttpExchangeAdapter, our tests should use the new contracts.
See gh-30117
2023-07-10 10:36:16 +01:00
Sébastien Deleuze
b3de1b8e95
Use consistently *KotlinTests naming for Kotlin tests
...
Closes gh-30837
2023-07-08 11:02:20 +02:00
Sébastien Deleuze
fb17e283d1
Replace @link by proper KDoc class reference in tests
...
Closes gh-30836
2023-07-08 10:44:40 +02:00
Olga MaciaszekSharma
268f3c853e
Add RestTemplate support for HTTP interface client
...
See gh-30117
2023-07-06 19:07:40 +02:00
Juergen Hoeller
f07b9fd217
Polishing
2023-07-04 16:52:44 +02:00
Sébastien Deleuze
d3a249e34d
Reduce the delay used for Coroutines in tests
...
Closes gh-30731
2023-06-23 14:17:56 +02:00
Rossen Stoyanchev
bf82ed7186
Add HttpExchangeAdapter
...
See gh-30117
2023-06-23 11:49:29 +01:00
Sébastien Deleuze
8fb412ea74
Merge branch '6.0.x'
2023-07-08 11:11:37 +02:00
rstoyanchev
deaa493644
Add Visitor to HandlerMethodValidationException
...
Closes gh-30813
2023-07-04 17:19:58 +01:00
Juergen Hoeller
834d22f866
Polishing
2023-07-04 16:08:24 +02:00
rstoyanchev
1fc020cf92
Fix checkstyle violations
2023-07-03 15:31:35 +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
a481c7649f
Refactor to prepare for method validation handling
...
To handle method validation errors in ResponseEntityExceptionHandler,
MethodValidationException and associated types should not depend on
Bean Validation. To that effect:
1. MethodValidationResult and ParameterValidationResult no longer make
the underlying ConstraintViolation set available, and instead expose
only the adapted validation errors (MessageSourceResolvable, Errors),
analogous to what SpringValidatorAdapter does. And likewise
MethodValidationException no longer extends ConstraintViolationException.
2. MethodValidationPostProcessor has a new property
adaptConstraintViolations to decide whether to simply raise
ConstraintViolationException, or otherwise to adapt the ConstraintViolations
and raise MethodValidationException instead, with the former is the default
for compatibility.
3. As a result, the MethodValidator contract can now expose methods that
return MethodValidationResult, which provided more flexibility for handling,
and it allows MethodValidationAdapter to implement MethodValidator directly.
4. Update Javadoc in method validation classes to reflect this shift, and
use terminology consistent with Spring validation in classes without an
explicit dependency on Bean Validation.
See gh-30644
2023-07-03 12:08:11 +01:00
rstoyanchev
91eb2be44c
Remove no longer supported protected methods
...
Closes gh-26721
2023-06-27 16:34:52 +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
d37d6688d8
WebFlux constructs model attribute via DataBinder
...
See gh-26721
2023-06-23 11:15:00 +01:00
rstoyanchev
801f01e23f
Polishing in ModelAttributeMethodArgumentResolver
...
See gh-26721
2023-06-22 20:59:05 +01:00
rstoyanchev
40bf923d7d
Polishing in MultipartFileArgumentResolver
...
Closes gh-30728
2023-06-27 10:51:42 +01:00
Olga Maciaszek-Sharma
e69a1d22f9
Add MultipartFile support to HTTP interface client
...
See gh-30728
2023-06-27 09:55:24 +01:00