Juergen Hoeller
d4192b9d35
Expose record-style accessor methods for instance fields as bean properties
...
Closes gh-24391
2020-08-28 18:51:27 +02:00
Juergen Hoeller
874574513c
Replace remaining usage of LinkedList with ArrayList/ArrayDeque
...
Closes gh-25650
2020-08-26 18:32:08 +02:00
Juergen Hoeller
ff11467a0c
Avoid resizing of fixed-size HashMap/LinkedHashMap variants
...
Closes gh-25349
2020-08-25 19:26:18 +02:00
Juergen Hoeller
7324140d20
Merge branch '5.2.x'
2020-08-25 16:21:00 +02:00
Juergen Hoeller
6f0461c569
Polishing
2020-08-25 16:17:22 +02:00
Juergen Hoeller
04df9b8f49
Efficient checks for empty strings and single character matches
...
Closes gh-25552
Closes gh-25553
2020-08-25 16:17:12 +02:00
Sam Brannen
596936f18c
Polishing
2020-08-11 16:42:18 +02:00
Sébastien Deleuze
79dfda7369
Add a comment about gradle/gradle#14017
...
See gh-24171
2020-08-10 16:49:00 +02:00
Sam Brannen
5de549d7d4
Update contentType property via MockHttpServletResponse::setCharacterEncoding()
...
Prior to this commit, MockHttpServletResponse's setCharacterEncoding()
method did not update the contentType property, which violates the
Servlet 2.4 Javadoc for getContentType() and setCharacterEncoding().
This commit addresses this issue; however, some existing tests may have
to be updated as a result of this change.
For example, note how some of the tests in this commit have been
refactored to use MediaType##isCompatibleWith() instead of asserting
exact matches for the value returned by MockHttpServletResponse's
getContentType() method.
Closes gh-25536
2020-08-10 16:05:18 +02:00
Sam Brannen
d0cf90bb8e
Update tests due to deprecations in Reactor
2020-08-08 12:40:23 +02:00
Sam Brannen
01b79514da
Update ReactiveTypeHandlerTests due to deprecations in Reactor
2020-08-08 12:33:26 +02:00
Juergen Hoeller
922f9452f2
Merge branch '5.2.x'
...
# Conflicts:
# build.gradle
2020-08-07 16:05:14 +02:00
Juergen Hoeller
3b9558a269
Polishing
2020-08-07 15:51:33 +02:00
Juergen Hoeller
f4c0ceb1cc
Merge branch '5.2.x'
...
# Conflicts:
# build.gradle
# spring-tx/src/main/java/org/springframework/dao/support/PersistenceExceptionTranslationInterceptor.java
# spring-web/src/main/java/org/springframework/web/bind/support/WebRequestDataBinder.java
# spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerExecutionChain.java
# spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerMapping.java
2020-08-07 13:15:36 +02:00
Juergen Hoeller
8dd285f877
Polishing
2020-08-07 13:02:43 +02:00
Tadaya Tsuyukubo
83df467b3b
Remove @Nullable from CookieLocaleResolver#determineDefaultLocale()
...
By definition, this method should not return `null`.
2020-08-07 10:51:02 +02:00
Juergen Hoeller
b6ef3cfad5
Refactor HandlerExecutionChain towards List-centric interceptor storage
...
Closes gh-25500
2020-08-07 00:32:52 +02:00
Juergen Hoeller
d61c0ee57d
Consistent support for path variable and multipart binding
...
Closes gh-24107
Closes gh-22169
Closes gh-25265
2020-08-06 18:28:09 +02:00
Brian Clozel
b6d2a2980d
Update for Reactor API changes
2020-08-05 13:31:39 +02:00
Sébastien Deleuze
2d08c76ab5
Bring back kotlin-script-runtime dependency
...
See gh-24171
2020-07-30 10:57:53 +02:00
Sébastien Deleuze
5c456db3cc
Upgrade to Kotlin 1.4 RC
...
- The compiler is configured to retain compatibility with Kotlin 1.3.
- Explicit API mode is not yet enabled but could be in the future.
- Some exceptions thrown by Kotlin have changed to NullPointerException,
see https://youtrack.jetbrains.com/issue/KT-22275 for more details.
Closes gh-24171
2020-07-30 10:18:33 +02:00
Rossen Stoyanchev
683cc2eb7f
Add NDJSON and deprecate application/stream+json
...
Closes gh-21283
2020-07-28 17:53:37 +03:00
Rossen Stoyanchev
4252b7fd7d
@ExceptionHandler support for non-@Controller handlers
...
Closes gh-22619
2020-07-27 21:20:50 +03:00
Sam Brannen
335c3d5db6
Polish contribution
...
See gh-25445
2020-07-22 17:26:59 +02:00
XenoAmess
ab859fcc96
Refine use of substring operations
...
Closes gh-25445
2020-07-22 17:26:42 +02:00
Sam Brannen
a8901e3cf8
Polish contribution
...
See gh-25445
2020-07-22 16:36:14 +02:00
XenoAmess
edfc6c0293
Refine use of substring operations
...
Closes gh-25445
2020-07-22 16:28:58 +02:00
XenoAmess
c7f44ff671
Fix links in Javadoc
...
Closes gh-25448
2020-07-22 10:24:55 +02:00
May
24b1caf434
Simplify PathResourceLookupFunction
...
This commit simplified two return statements.
2020-07-20 11:04:32 +02:00
Juergen Hoeller
e0d05153aa
Merge branch '5.2.x'
...
# Conflicts:
# build.gradle
2020-07-17 19:30:03 +02:00
Juergen Hoeller
0b697a3068
Polishing
2020-07-17 19:24:23 +02:00
Juergen Hoeller
198d64d539
Merge branch '5.2.x'
...
# Conflicts:
# build.gradle
2020-07-17 17:52:08 +02:00
Juergen Hoeller
e9898f7d52
Polishing
2020-07-17 17:48:33 +02:00
Rossen Stoyanchev
1dec4f3d0f
DefaultServerRequest parses the path if necessary
...
Closes gh-25353
2020-07-13 13:16:49 +03:00
Rossen Stoyanchev
37366e0c91
Support for custom status in ResponseStatusException
...
Closes gh-20336
2020-07-09 15:06:33 +03:00
Rossen Stoyanchev
4d7418841c
AbstractHandlerMethodMapping refactoring
...
Remove convenience Map that is to avoid. The only downside is that
getHandlerMethods requires a transformation but that should not be used frequently.
See gh-22961
2020-07-09 12:11:15 +03:00
Rossen Stoyanchev
0584c289ab
Support for direct path lookups in WebFlux
...
Closes gh-22961
2020-07-09 11:26:04 +03:00
Rossen Stoyanchev
0e4e25d227
Updates to CORS patterns contribution
...
Closes gh-25016
2020-07-08 13:18:46 +03:00
Rossen Stoyanchev
1181bb1852
Rename originsPattern to originPatterns
...
See gh-25016
2020-07-08 13:18:46 +03:00
Ruslan Akhundov
8632118e8d
CorsConfiguration now supports pattern based origins.
...
Closes gh-24763
2020-07-08 13:18:46 +03:00
Rossen Stoyanchev
34607d96f1
PathPattern caching with HandlerMappingIntrospector
...
This commit evolves the solution from M1 by parsing and caching patterns with the
target HandlerMapping's PathPatternParser. This makes it unnecessary for callers to
be aware of pattern parsing.
Closes gh-25312
2020-07-06 15:31:35 +03:00
Arjen Poutsma
20254f02d2
Polishing
2020-06-30 11:33:12 +02:00
Arjen Poutsma
e9d9de5f99
RouterFunction honors PathPatternParser in config
...
This commit introduces a way to change the PathPatternParser used in
PathPredicates, by way of a ChangePathPatternParserVisitor. This
visitor is used by both WebFluxConfigurationSupport and
WebMvcConfigurationSupport to make sure the configured parser is used.
Closes gh-23236
2020-06-30 11:33:12 +02:00
Sam Brannen
b33d2fe683
Clean up warnings in Gradle build, polishing, etc.
2020-06-24 15:02:24 +02:00
May
bc9b9bc477
Replace cascading if statements with switch statement
...
Closes gh-25308
2020-06-24 13:54:17 +02:00
Rossen Stoyanchev
57f868fcbd
Direct matches by URL path work again
...
This commit fixes a recent regression as a result of 5225a57411
with the determination of non-pattern vs pattern URLs. That in turn affects the ability to perform
direct matches by URL path.
There is also a fix in PathPattern to recognize "catch-all" patterns as pattern syntax.
See gh-24945
2020-06-24 08:07:40 +01:00
Rossen Stoyanchev
22bf62def1
Replace remaining use of deprecated Processors in tests
...
See gh-25085
2020-06-23 20:29:35 +01:00
Juergen Hoeller
d0209e5f1f
Nullability refinements and related polishing
2020-06-23 16:55:09 +02:00
Rossen Stoyanchev
837dfe285a
Set PathPatternParser in RouterFunctionMapping
...
See gh-24945
2020-06-23 15:18:25 +01:00
Sam Brannen
9d5881e0ad
Suppress warnings, remove unused code, etc.
2020-06-20 17:15:35 +02:00