Stephane Nicoll
2b76c4d847
Polish "Wrap ternary operator within parentheses"
...
See gh-31076
2023-08-22 15:40:16 +02:00
70825
6712c044b1
Wrap ternary operator within parentheses
...
See gh-31076
2023-08-22 15:15:05 +02:00
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
Brian Clozel
646fd3edcc
Avoid thread pinning in SseEmitter write operations
...
This commit changes the `synchronized` usage into a `ReentrantLock`, in
order to guard write operations with a construct that does not pin
virtual threads to the current platform thread on JDK21.
Closes gh-30996
2023-08-04 14:59:15 +02:00
Sam Brannen
376f13f8ef
Update copyright headers
2023-08-04 15:02:41 +03:00
Brian Clozel
c97def0b98
Merge branch '6.0.x'
2023-08-04 10:32:00 +02:00
Brian Clozel
e83793ba7f
Batch SSE events writes when possible
...
Prior to this commit, the `SseEventBuilder` would be used to create SSE
events and write them to the connection using the `ResponseBodyEmitter`.
This would send each data item one by one, effectively writing and
flushing to the network for each. Since multiple data lines are prepared
by the `SseEventBuilder`, a typical write of an SSE event performs
multiple flushes operations.
This commit adds a method on `ResponseBodyEmitter` to perform batch
writes (given a `Set<DataWithMediaType>`) and only flush once all
elements of the set have been written.
This also applies in case of early writes, where now all buffered
elements are written then flushed altogether.
Fixes gh-30912
2023-08-04 10:31:43 +02:00
Juergen Hoeller
d250a5155a
Consistent dependency declarations
2023-08-02 00:56:50 +02:00
Juergen Hoeller
ae279eaced
Polishing
2023-08-01 23:52:48 +02: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
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
Sam Brannen
dde8f4489f
Polish MappedInterceptor
2023-08-01 16:19:26 +03:00
Sam Brannen
f9f7a7cd78
Polish contribution
...
See gh-30971
2023-08-01 16:19:26 +03:00
graceyu
6de95a2b37
Provide methods for obtaining include/exclude patterns in MappedInterceptor
...
Prior to this commit, MappedInterceptor had a getPathPatterns() method
that returned the include patterns.
This commit introduces getIncludePathPatterns() (which effectively
replaces getPathPatterns()) and getExcludePathPatterns(). In addition,
this commit deprecates getPathPatterns().
Closes gh-30971
2023-08-01 15:57:43 +03: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
Juergen Hoeller
bbde68c49e
Polishing
2023-07-25 19:12:07 +02:00
rstoyanchev
67e3d86bd8
Support declarativeBinding mode in DataBinder
...
Closes gh-30948
2023-07-25 18:04:21 +03: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
Sam Brannen
05956d4028
Change MvcSimpleAsyncTaskExecutor.taskExecutorWarning to primitive boolean
2023-07-19 13:21:57 +03: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
rstoyanchev
73c06347be
Update WebMvc docs on use of AsyncTaskExecutor
...
Closes gh-30905
2023-07-18 10:42:27 +01:00
rstoyanchev
4becce1c2b
Consolidate default WebMvc executor log warnings
...
Closes gh-30902
2023-07-18 10:22:45 +01:00
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
0611192dac
Enable KotlinScriptTemplateTests in Spring MVC on Java 20
...
See gh-29249
Closes gh-30896
2023-07-15 13:36:11 +02:00
Sam Brannen
63fe45d92a
Update copyright headers
2023-07-15 13:11:29 +02:00
Sam Brannen
70cf754a2f
Suppress warnings in tests
2023-07-15 13:02:16 +02:00
Sam Brannen
16b9640af2
Merge branch '6.0.x'
2023-07-12 11:50:11 +02:00
Sam Brannen
68f2b0ca59
Rely on auto-boxing in tests
2023-07-12 11:49:02 +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
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
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
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