Sam Brannen
29a9016809
Merge branch '5.3.x'
2022-05-23 20:36:47 +02:00
Sam Brannen
7b95c928d1
Fix Javadoc for ResourcePatternResolver
2022-05-23 20:32:01 +02:00
Sam Brannen
53f88d455f
Fix Javadoc for AbstractFileResolvingResource.isFile(URI)
2022-05-23 20:32:01 +02:00
Sam Brannen
53a506f6bb
Polishing
2022-05-23 20:22:37 +02:00
Sam Brannen
f07e7ab39d
Create UrlResource factory methods that throw unchecked exceptions
...
UrlResource constructors throw checked exceptions which makes it
difficult to use them in java.util.Stream and java.util.Optional APIs
or other scenarios when a checked IOException is undesirable.
To support such use cases, this commit introduces `from(URI)` and
`from(String)` factory methods in UrlResource that throw
UncheckedIOExceptions.
Closes gh-28501
2022-05-23 14:22:52 +02:00
Sam Brannen
4515180195
Polish PathMatchingResourcePatternResolver
2022-05-23 14:22:43 +02:00
rstoyanchev
5e979af95a
Merge branch '5.3.x'
2022-05-23 11:24:58 +01:00
rstoyanchev
2a2fba6a37
Resolve placeholders in HttpExchange#url
...
Closes gh-28492
2022-05-23 11:06:14 +01:00
rstoyanchev
ce568468ae
Refine JSON encoding of non-streaming Flux
...
Closes gh-28398
2022-05-23 11:06:14 +01:00
rstoyanchev
496c1dcae1
Add RequestAttributeArgumentResolver
...
Closes gh-28458
2022-05-23 11:06:14 +01:00
rstoyanchev
495507e5d4
AbstractNamedValueArgumentResolver supports Object values
...
See gh-28458
2022-05-23 11:06:14 +01: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
Stephane Nicoll
2f94713078
Make sure that annotation hierarchy is registered
...
This commit improves registerAnnotation to also registers the meta
annotation sources, if any. Without them, the annotation could not
be fully resolved.
See gh-28497
2022-05-23 08:57:02 +02:00
Sam Brannen
16a4a9ad3f
Polishing
2022-05-21 14:30:46 +02:00
Sam Brannen
ea9b1fccbd
Fix attribute return types in @PutExchange
...
The return types for the `value` and `url` attributes don't match those
in `@HttpExchange`.
See gh-28498
2022-05-21 14:28:47 +02:00
Eddú Meléndez
163bad38ef
Fix attribute return types in @DeleteExchange and @PatchExchange
...
The return types for the `value` and `url` attributes don't match those
in `@HttpExchange`.
Closes gh-28498
2022-05-21 14:25:00 +02:00
Stephane Nicoll
d0afbe40e6
Tag EventListener as a reflective operation
...
This commit adds compatibility of declarative event listeners in a
native image.
See gh-28475
2022-05-20 15:14:59 +02:00
Stephane Nicoll
4cca190aad
Add support of declarative use of reflection
...
This commit adds a `@Reflective` annotation that can be used to declare
that the annotated element requires reflection at runtime. By default,
the annotated element is exposed but this can be customized by
specifying a dedicated `ReflectiveProcessor`.
Closes gh-28469
2022-05-20 15:02:46 +02:00
Stephane Nicoll
2517c72f7d
Add a common utility to register hints for an annotation
...
This commit adds a utility that takes care of registering the necessary
hints to make an annotation visible at runtime. The core framework may
create a JDK proxy if necessary, which requires specific handling.
Closes gh-28497
2022-05-20 14:54:27 +02:00
wonwoo
9181ac70f5
Correctly detect Optional return type for @HttpExchange methods
...
Prior to this commit, a ClassCastException was thrown for an Optional
return type for an @HttpExchange method. This is because the check for
an Optional return type was based on the type contained in the Optional
instead of the Optional itself.
Closes gh-28493
2022-05-20 11:25:31 +02:00
Stephane Nicoll
9487e8ce1e
Polish
2022-05-18 13:57:48 +02:00
Sam Brannen
65066bd1e1
Fix Java 17 compiler warning about varargs
2022-05-17 15:44:55 +02:00
Sam Brannen
70415b1781
Merge branch '5.3.x'
2022-05-17 15:41:08 +02:00
Sam Brannen
59c7bb1f86
Use Arrays.toString instead of Arrays.asList when generating Strings
2022-05-17 15:36:31 +02:00
Sam Brannen
a1c3efbb5f
Polish ManagedList[Tests] and ManagedSet[Tests]
2022-05-17 15:36:31 +02:00
Sam Brannen
874077d16e
Apply "advanced" instanceof pattern matching
2022-05-17 11:24:32 +02:00
Sam Brannen
578d3f4466
Polish error message
2022-05-17 11:22:56 +02:00
Sam Brannen
0d4d383068
Merge branch '5.3.x'
2022-05-16 11:22:17 +02:00
Sam Brannen
6efe3aee34
Polishing
2022-05-16 11:20:20 +02:00
Sam Brannen
fe7c6f075b
Polishing
2022-05-16 10:53:35 +02:00
Sam Brannen
bf8a54decf
Switch focus to JUnit Jupiter in testing examples
2022-05-16 10:05:37 +02:00
izeye
0fb0335aa0
Add level guards for trace logging in SpringFactoriesLoaderRuntimeHintsRegistrar
...
Closes gh-28465
2022-05-16 09:07:25 +02:00
Sam Brannen
5220410768
Update copyright date
2022-05-15 19:19:04 +02:00
Eddú Meléndez Gonzales
506b78f469
Use getHost instead of getContainerIpAddress in Redis examples
...
getContainerIpAddress is deprecated.
Closes gh-28461
2022-05-15 15:12:03 +02:00
Sam Brannen
3d39dfc4ce
Polishing
2022-05-14 18:35:58 +02:00
Sam Brannen
754636ee56
Merge branch '5.3.x'
2022-05-14 18:32:14 +02:00
Sam Brannen
f2fe7f335c
Improve nullReturningBeanPostProcessor() test
...
See gh-28459
2022-05-14 18:30:39 +02:00
Sam Brannen
0cf2bd0bcf
Suppress warning in test in Gradle build
2022-05-14 17:10:54 +02:00
Brian Clozel
a6cd8a78e2
Upgrade to oci-build-task 0.10.0 in CI task
2022-05-13 08:55:28 +02:00
Arjen Poutsma
944c14bdf9
Fix email adress in '.mailmap'
2022-05-12 15:56:02 +02:00
Juergen Hoeller
a8c3c746af
Avoid package cycle with web.service.invoker through plain javadoc reference
...
See gh-28386
2022-05-12 13:17:12 +02:00
Juergen Hoeller
fc8e6705d6
Move AutowiredArguments support classes to beans.factory.aot
...
This reduces the package cycle between aot and annotation to an Autowired annotation reference in ConstructorOrFactoryMethodResolver, to be resolved along with gh-27920.
See gh-28414
2022-05-12 13:15:08 +02:00
rstoyanchev
f0e23b66f3
The "consumes" condition compares MediaType parameters
...
Closes gh-9257
2022-05-11 17:52:04 +01:00
Sam Brannen
4b0531b4aa
Merge branch '5.3.x'
2022-05-11 17:33:52 +02:00
Sam Brannen
48c797e429
Fix Kotlin example for static factory method
...
Closes gh-28399
2022-05-11 17:33:31 +02:00
Sam Brannen
5ddbdb6ba7
Merge branch '5.3.x'
2022-05-11 17:17:20 +02:00
Sam Brannen
be782a2197
Polish ref docs regarding the BeanFactory API
...
See gh-28403
2022-05-11 17:16:40 +02:00
Andy Wilkinson
1d825440c3
Update Javadoc since type-level @Controller is now required
...
See gh-22154 which removed support for a type-level @RequestMapping
annotation alone being sufficient for handler detection.
Closes gh-28448
2022-05-11 16:46:10 +02:00
izeye
6c8de96992
Add Javadoc since tag for RootBeanDefinition(ResolvableType) constructor
...
This commit also removes unnecessary super() invocations.
See gh-28418
Closes gh-28449
2022-05-11 16:42:28 +02:00