Sam Brannen
5b1a84e395
Polish contribution
...
See gh-28789
2022-07-12 10:39:11 +02:00
Marc Wrobel
6985fa8057
Fix and improve Javadoc in spring-webmvc
...
Closes gh-28789
2022-07-12 10:39:03 +02:00
Sam Brannen
d274e893a6
Remove superfluous static declaration for enum, annotation, & interface
2022-07-09 16:16:13 +02:00
Sam Brannen
0621a8eff1
Fix concurrency issues in FreeMarkerMacroTests
...
Prior to this commit, tests in these two classes intermittently failed
with errors similar to the following, due to concurrent modification
of shared files.
expected:
"<input type="text" id="name" name="name" value="Darren" >"
but was:
"<input type="text" id="name" name="name" value="Darren" >
"hidden"/>"
This commit fixes this by creating a new temporary folder for each test
method invocation.
2022-07-05 13:17:50 +02:00
rstoyanchev
b95362a3fd
Avoid request params access for form data in logRequest
...
Close gh-28587
2022-07-01 02:55:16 +01:00
Sam Brannen
e19e9757d4
Polishing
2022-06-20 15:19:02 +02:00
Juergen Hoeller
30c873b4b5
Move NestedServletExceptionTests to spring-web module
...
See gh-25162
2022-06-14 15:09:21 +02:00
rstoyanchev
8c777111fa
Revise commit #52d068 with corrected test
...
Update test detecting RouterFunction beans in parent contexts to use
different bean names and avoid shadowing. Changed the fix accordingly
given that BeanProvider does detect beans in parent contexts.
See gh-28595
2022-06-14 10:07:56 +01:00
rstoyanchev
d28d603081
Polishing
...
See gh-28595
2022-06-14 09:35:17 +01:00
rstoyanchev
52d0681ca1
WebMvc respects RouterFunction beans ordering
...
Closes gh-28595
2022-06-14 09:20:19 +01:00
Sam Brannen
aab9da0366
Polish LocaleResolver support
2022-06-03 13:10:55 +02:00
Sam Brannen
1beb7068f6
Use new AssertJ exception assertions
2022-05-31 14:08:28 +02:00
Sam Brannen
8547f8601d
Polish LocaleResolver tests
2022-05-31 11:55:30 +02:00
rstoyanchev
f95bf96ec9
Correct path encoding/decoding in PathResourceResolver
...
Decoding is required for non-UrlResource when the HandlerMapping is
not expected to decode the path. Encoding is the opposite.
This commit ensures correct determination of whether the HandlerMapping
is expected to have decoded the path or not that in turn depends on
whether PathPattern or PathMatcher is in use.
Closes gh-27791
2022-05-23 11:03:42 +01:00
rstoyanchev
66a5742df3
Polishing
2022-05-23 10:07:03 +01:00
Sam Brannen
06679a5583
Fix tests in DispatcherServletTests
...
See gh-28424
2022-05-11 16:00:26 +02:00
Sam Brannen
745eb1a881
Polish DispatcherServletTests
2022-05-11 15:59:47 +02:00
Sam Brannen
1c10cdd1e8
Update copyright dates
...
See gh-28433
2022-05-10 11:33:32 +02:00
evgeny.bovykin
941b92cbed
Make inner classes static when feasible
...
A static nested class does not keep an implicit reference to its
enclosing instance.
This prevents a common cause of memory leaks and uses less memory per
instance of the class.
Closes gh-28433
2022-05-10 11:32:37 +02:00
Sam Brannen
e26d8839b3
Stop referring to features as Java 6/7 features where unnecessary
2022-05-09 19:09:06 +02:00
Stephane Nicoll
b81c62d064
Update copyright year of changed file
...
See gh-28372
2022-04-24 09:56:39 +02:00
zhangmingqi09
ca1a11acac
Fix github issue reference in RequestMappingHandlerMapping
...
See gh-28372
2022-04-24 09:55:20 +02:00
Sam Brannen
a7cf19cec5
Improve documentation and matching algorithm in data binders
2022-04-13 09:55:40 +02:00
Juergen Hoeller
0cf7f7bd89
Polishing
2022-04-13 00:24:23 +02:00
GatinMI
b158110801
Fix debug log for no matching acceptableTypes
2022-04-04 18:29:01 +02:00
Sam Brannen
c462fe30ed
Use Named arguments in parameterized tests
2022-03-16 14:45:47 +01:00
Sam Brannen
9fbf5dc945
Use String#lastIndexOf(int) where possible
2022-03-15 17:03:20 +01:00
rstoyanchev
ec03e8830e
Remove path variables from pathWithinMapping
...
Closes gh-27913
2022-02-14 20:51:02 +00:00
Stephane Nicoll
d2c7dfb79e
Add convenience factory method for Managed[List|Set|Map]
...
Closes gh-28026
2022-02-10 12:37:19 +01:00
Sam Brannen
f8a5a8d7be
Use modern language features in tests
2022-02-03 14:50:10 +01:00
Juergen Hoeller
cf5b86369d
Explicitly close InputStream after resolution in RequestPartMethodArgumentResolver
...
Closes gh-27773
2022-01-12 16:31:39 +01:00
Sam Brannen
df263d01b9
Use idiomatic AssertJ assertions for true, false, and null
2022-01-10 14:15:55 +01:00
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.
2022-01-04 14:06:13 +01:00
Sam Brannen
3e14cdbc69
Polish tests
2022-01-04 14:02:32 +01:00
Rossen Stoyanchev
e9083d7d20
Apply LogFormatUtils in more places
2021-12-09 14:53:52 +00:00
Katada, Junya
9261766677
Fix for ModelAndView.status not working with RedirectView
2021-12-07 13:39:57 +01:00
Juergen Hoeller
14f24f43d7
Polishing
2021-12-03 22:36:31 +01:00
Rossen Stoyanchev
829bed03af
Polishing contribution
...
Closes gh-27723
2021-11-24 13:05:05 +00:00
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
2021-11-24 13:05:05 +00:00
Rossen Stoyanchev
0d7c562693
Polishing contribution
...
Closes gh-910
2021-11-24 13:05:05 +00:00
/usr/local/ΕΨΗΕΛΩΝ
913cc079af
TagWriter can write empty attribute
...
See gh-910
2021-11-24 13:05:05 +00:00
Arjen Poutsma
5fbdd6dcfe
Throw exception using capturing patterns in AntPathMatcher
...
Closes gh-27688
2021-11-17 16:52:17 +01:00
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
2021-11-10 14:21:48 +01:00
Rossen Stoyanchev
05ea991d62
Removing locations logging in ResourceHttpRequestHandler
...
See gh-27575
2021-10-19 12:25:33 +01:00
Rossen Stoyanchev
76c9306dda
Adjust logging of resource locations
2021-10-14 17:18:34 +01:00
Rossen Stoyanchev
0705454ce0
Fix typo in Javadoc
...
See gh-27484
2021-10-14 09:42:40 +01:00
Rossen Stoyanchev
4dac8339ff
Filter non-existing static resource locations
...
Same as a2c52a97ba
, on the WebFlux side.
See gh-27538
2021-10-13 14:40:34 +01:00
Juergen Hoeller
0f36569d75
Remove dead fallback code
2021-10-13 12:38:39 +02:00
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
2021-10-12 15:13:05 +02:00
Juergen Hoeller
1490d27d75
Decouple urlResourceWithCharset test from existence of tmp directory
...
See gh-25738
2021-10-12 15:10:19 +02:00