Juergen Hoeller
d250a5155a
Consistent dependency declarations
2 years ago
Juergen Hoeller
ae279eaced
Polishing
2 years ago
Juergen Hoeller
bbde68c49e
Polishing
2 years ago
Juergen Hoeller
2f33e77ab4
Consistent equals/hashCode style (and related polishing)
2 years ago
Sam Brannen
30d6ec3398
Update copyright headers
2 years ago
Johnny Lim
ab83972c3e
Add missing @Nullable annotations in AbstractResourceResolver subclasses
...
See gh-30601
Closes gh-30893
2 years ago
Sam Brannen
68f2b0ca59
Rely on auto-boxing in tests
2 years ago
rstoyanchev
20afa3265a
Encapsulate full path initialization
2 years ago
Patrick Strawderman
372282457f
Use Collections.emptyEnumeration() where appropriate
...
Closes gh-30803
2 years ago
Juergen Hoeller
b77d4d01c5
Adapt no-arg value from interface-based InvocationHandler callback
...
Closes gh-30756
2 years ago
Sam Brannen
f86a69ebfb
Update copyright headers and polish
2 years ago
Sam Brannen
39bc7566df
Stop printing to System.out in tests
2 years ago
Sam Brannen
67798a7b52
Fix CSS classes in Javadoc HTML tables due to upgrade to Java 17
...
Closes gh-30701
2 years ago
Stephane Nicoll
294cdba80c
Update copyright year of changed file
...
See gh-30601
2 years ago
cwatzl
072a86149d
Flag PathResourceResolver#resolve*Internal as @Nullable
...
See gh-30601
2 years ago
Sam Brannen
f22f439a68
Suppress deprecation warning due to upgrade to context-propagation 1.0.3
...
See gh-30657
2 years ago
Sam Brannen
6cfb11a360
Upgrade to Micrometer BOM 1.10.8 and context-propagation 1.0.3
...
Cloes gh-30657
2 years ago
rstoyanchev
bbab4faf7a
Method level only, empty RequestMapping matches "" and "/"
...
Closes gh-30293
2 years ago
Juergen Hoeller
cc8c852c2b
Specific check for parent of MethodInvocationInfo ClassLoader
...
See gh-30389
2 years ago
rstoyanchev
938dff7bbe
Remove (recently committed) erroneous character in test
2 years ago
rstoyanchev
7629ea5672
Update docs to mention Boot's HttpMessageConverters
...
Closes gh-30538
2 years ago
rstoyanchev
454a85978f
Allow fallback on subclass of ProblemDetail
...
Closes gh-30533
2 years ago
Sam Brannen
cef597bedd
Update copyright headers
2 years ago
Sam Brannen
01fabfe66d
Suppress warnings in tests
2 years ago
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
2 years ago
Krzysztof Krasoń
1734deca1e
Refactor AssertJ assertions into more idiomatic ones
...
This commit refactors some AssertJ assertions into more idiomatic and
readable ones. Using the dedicated assertion instead of a generic one
will produce more meaningful error messages.
For instance, consider collection size:
```
// expected: 5 but was: 2
assertThat(collection.size()).equals(5);
// Expected size: 5 but was: 2 in: [1, 2]
assertThat(collection).hasSize(5);
```
Closes gh-30104
2 years ago
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
2 years ago
Juergen Hoeller
491ae1e3be
Use MethodInvocationInfo class loader in case of JDK platform loader as well
...
Closes gh-30210
2 years ago
Juergen Hoeller
ce2689eead
Use MethodInvocationInfo class loader in case of core JDK interface type
...
Closes gh-30210
2 years ago
Sam Brannen
0ca02ce677
Disable affected tests on Java 18+/19+
...
See gh-30185
2 years ago
rstoyanchev
202fa5cdb3
Polishing and minor refactoring in HandlerMappingIntrospector
...
Closes gh-30127
2 years ago
Sam Brannen
e17f5c50a8
Update copyright headers
2 years ago
Sam Brannen
00be19c647
Consistently declare Object::equals argument as @Nullable
2 years ago
Sam Brannen
9cf7b0e230
Polishing
2 years ago
Vatsa
d8fbd35467
Add non-null assertions in DefaultServerRequestBuilder
...
This commit adds various non-null assertions to
DefaultServerRequestBuilder, in both Spring MVC and WebFlux.
Closes gh-30046
2 years ago
Sam Brannen
ffe7ec4a99
Apply "instanceof pattern matching" in remainder of spring-webmvc module
...
See gh-30067
2 years ago
Sam Brannen
2d56505ea9
Polishing
2 years ago
Sam Brannen
6d24e62e83
Polishing
2 years ago
Sam Brannen
2e1374b459
Update copyright headers
2 years ago
Arjen Poutsma
88e6544d9d
Fix regression in WebFlux support for WebDAV methods
...
This commit ensures that WebFlux's RequestMethodsRequestCondition
supports HTTP methods that are not in the RequestMethod enum.
- RequestMethod::resolve is introduced, to convert from a HttpMethod
(name) to enum values.
- RequestMethod::asHttpMethod is introduced, to convert from enum value
to HttpMethod.
- HttpMethod::valueOf replaced Map-based lookup to a switch statement
- Enabled tests that check for WebDAV methods
See gh-27697
Closes gh-29981
2 years ago
Johnny Lim
ce3be72e7f
Polish
2 years ago
Juergen Hoeller
3e3f046dc9
Polishing
2 years ago
Juergen Hoeller
f87a87e29d
Consistent ordering of Resource methods
...
See gh-24651
2 years ago
rstoyanchev
9a4df5a97d
DefaultHandlerExceptionResolver respects custom ModelAndView
...
Closes gh-29971
2 years ago
Juergen Hoeller
ac429a4ef7
Restore fallback to request attributes in FreeMarker template model
...
Closes gh-29787
2 years ago
Arjen Poutsma
12d4dc1bae
Polishing external contribution
...
This commit makes several changes to PR #24651 .
- Add byte[] getContentAsByteArray() on Resource.
- Remove getContentAsString() from Resource, as it relied on the default
charset which is not reliable.
- Add getContentAsString() to EncodedResource, as a charset is provided
through the constructor.
See gh-24651
2 years ago
rstoyanchev
dc843adb45
Improve docs on {@code Accept-Language} negotiation
...
Closes gh-28673
2 years ago
rstoyanchev
e5ff54955f
ProblemDetail XML support via Jackson
...
Closes gh-29927
2 years ago
rstoyanchev
ce85fdc5c7
Always use application/problem+json with ProblemDetail
...
See gh-gh-29588
2 years ago
rstoyanchev
7851994a17
Refine empty path handling in MvcUriComponentsBuilder
...
Return "" from methods that obtain controller or method mapping to
avoid side effect of a trailing slash appearing.
Closes gh-29897
2 years ago