Add support for Async invocation in a native image

This commit adds necessary hints so that Async-annotated method can be
discovered in a native image.

Closes gh-28710
This commit is contained in:
Stephane Nicoll
2022-08-12 16:34:13 +02:00
parent 3086d90e7d
commit 0229cc45a0
3 changed files with 44 additions and 1 deletions

View File

@@ -1,2 +1,5 @@
org.springframework.aot.hint.RuntimeHintsRegistrar= \
org.springframework.scheduling.annotation.SchedulingRuntimeHints
org.springframework.beans.factory.aot.BeanRegistrationAotProcessor= \
org.springframework.context.aot.ReflectiveProcessorBeanRegistrationAotProcessor
org.springframework.context.aot.ReflectiveProcessorBeanRegistrationAotProcessor