rstoyanchev
76be6373a8
ErrorResponse support in Spring MVC exception hierarchy
...
All Spring MVC exceptions from spring-web, now implement ErrorResponse
and expose HTTP error response information, including an RFC 7807 body.
See gh-27052
3 years ago
rstoyanchev
3efedef161
Add ErrorResponse and ErrorResponseException
...
ErrorResponse represents a complete error response with status, headers,
and an RFC 7807 ProblemDetail body.
ErrorResponseException implements ErrorResponse and is usable on its
own or as a base class. ResponseStatusException extends
ErrorResponseException and now also supports RFC 7807 and so does its
sub-hierarchy.
ErrorResponse can be returned from `@ExceptionHandler` methods and is
mapped to ResponseEntity.
See gh-27052
3 years ago
rstoyanchev
714d451260
Add ProblemDetail and `@ExceptionHandler` support
...
ProblemDetail is a representation of an RFC 7807 "problem", and this
commits adds support for it in Spring MVC and WebFlux as a return value
from `@ExceptionHandler` methods, optionally wrapped with
ResponseEntity for headers.
See gh-27052
3 years ago
Sam Brannen
8c6d59aaaf
Polish contribution
...
See gh-28014
3 years ago
a.yazychyan
c5c926726d
Use enhanced switch expressions where feasible
...
Closes gh-28014
3 years ago
rstoyanchev
ec03e8830e
Remove path variables from pathWithinMapping
...
Closes gh-27913
3 years ago
rstoyanchev
7ecfce2386
Polishing contribution
...
See gh-27948
3 years ago
heowc
ad2722b3a3
MissingServletRequestPartException extends ServletRequestBindingException
...
Closes gh-27948
3 years ago
Stephane Nicoll
d2c7dfb79e
Add convenience factory method for Managed[List|Set|Map]
...
Closes gh-28026
3 years ago
Juergen Hoeller
9688e61e20
Upgrade to Groovy 4.0
...
Closes gh-27985
3 years ago
Sam Brannen
b3f786728e
Use modern language features in tests
3 years ago
Sam Brannen
f8a5a8d7be
Use modern language features in tests
3 years ago
Juergen Hoeller
cf5b86369d
Explicitly close InputStream after resolution in RequestPartMethodArgumentResolver
...
Closes gh-27773
3 years ago
Sam Brannen
df263d01b9
Use idiomatic AssertJ assertions for true, false, and null
3 years ago
Sam Brannen
03668f9c10
Replace remaining use of StringBuffer with StringBuilder
...
Although this commit only applies to test classes, it serves to reduce
the noise when searching for undesirable usage of StringBuffer in
production code.
3 years ago
Sam Brannen
3e14cdbc69
Polish tests
3 years ago
izeye
713795cc34
Polish
...
See gh-27827
3 years ago
Rossen Stoyanchev
3600644ed1
Require type-level @Controller annotation
...
Closes gh-22154
3 years ago
Stephane Nicoll
61601de250
Polish formatting
...
See gh-27801
3 years ago
Adam Ostrožlík
4453102e85
Polish ExceptionHandlerMethodResolver mapping
...
See gh-27801
3 years ago
Rossen Stoyanchev
e9083d7d20
Apply LogFormatUtils in more places
3 years ago
Katada, Junya
9261766677
Fix for ModelAndView.status not working with RedirectView
3 years ago
Juergen Hoeller
14f24f43d7
Polishing
3 years ago
Brian Clozel
24cb1def7d
Polish
...
Closes gh-27754
3 years ago
ydh6226
a0ba808217
Use HttpHeaders.ALLOW instead of String constant
...
This commit changes "Allow" strings into HttpHeaders.ALLOW.
See gh-27356
3 years ago
liuzhifei
32359c52b4
Remove transitive dependency on Java EE 8 JAX-B
...
Closes gh-27754
3 years ago
Arjen Poutsma
7a4207cd7b
Changes because HttpMethod changed to class
...
This commit contains changes made because HttpMethod changed from enum
to class.
See gh-27697
3 years ago
Rossen Stoyanchev
829bed03af
Polishing contribution
...
Closes gh-27723
3 years ago
Andreas Grub
ce0aed216b
Add getter for RequestMappingInfo.BuilderConfiguration
...
This improves support for programmatic registration of mappings to
use the same config as that of the RequestMappingHandlerMapping.
See gh-27723
3 years ago
Rossen Stoyanchev
0d7c562693
Polishing contribution
...
Closes gh-910
3 years ago
/usr/local/ΕΨΗΕΛΩΝ
913cc079af
TagWriter can write empty attribute
...
See gh-910
3 years ago
Arjen Poutsma
259bcd60fb
Change deprecated MimeType specificity usages
...
This commit changes all code that uses now deprecated methods in
MimeType and MediaType.
See gh-27580
3 years ago
Juergen Hoeller
4750a9430c
Early removal of 5.x-deprecated code
...
Closes gh-27686
3 years ago
Arjen Poutsma
5fbdd6dcfe
Throw exception using capturing patterns in AntPathMatcher
...
Closes gh-27688
3 years ago
Juergen Hoeller
b88ed7f4bb
Update API version and package references for Jakarta EE 9
...
Closes gh-27689
See gh-25354
3 years ago
Christoph Dreis
5c972fcc54
Use Charset variants of URLEncoder and URLDecoder methods
3 years ago
Juergen Hoeller
2a268701c4
Introduce optimizeLocations flag for resource location filtering on startup
...
This flag is off by default since it requires jar files with directory entries.
Closes gh-27624
3 years ago
Rossen Stoyanchev
05ea991d62
Removing locations logging in ResourceHttpRequestHandler
...
See gh-27575
3 years ago
Sam Brannen
1f248b34f6
Apply "instanceof pattern matching" in spring-webmvc
...
This commit also applies additional clean-up tasks such as the following.
- final fields
- diamond operator (<>) for anonymous inner classes
- try with resources
- multi-catch
This has only been applied to `src/main/java`.
3 years ago
Rossen Stoyanchev
76c9306dda
Adjust logging of resource locations
3 years ago
Rossen Stoyanchev
0705454ce0
Fix typo in Javadoc
...
See gh-27484
3 years ago
liuzhifei
ca999fb38c
fix Javadoc typo in PathMatchConfigurer#setUseSuffixPatternMatch
3 years ago
Rossen Stoyanchev
4dac8339ff
Filter non-existing static resource locations
...
Same as a2c52a97ba
, on the WebFlux side.
See gh-27538
3 years ago
Juergen Hoeller
0f36569d75
Remove dead fallback code
3 years ago
Juergen Hoeller
b53275f2d2
Add efficient existence check to ClassPathResource.isReadable()
...
Includes reduced isReadable() check in PathResourceLookupFunction, aligned with PathResourceResolver.
Closes gh-27538
See gh-21372
3 years ago
Juergen Hoeller
1490d27d75
Decouple urlResourceWithCharset test from existence of tmp directory
...
See gh-25738
3 years ago
Rossen Stoyanchev
a2c52a97ba
Filter non-existing static resource locations
...
See gh-27538
3 years ago
Rossen Stoyanchev
e8f6cd10a5
Apply value formatting to resolved exceptions
3 years ago
Sam Brannen
bdfd983bb4
Fix example code formatting in @EnableWebMvc
3 years ago
Juergen Hoeller
87aaf5049b
Polishing
3 years ago