Add support for Transactional in native-image

This commit annotates @Transactional with @Reflective
and registers proxy hints for SpringProxy.

Injection of proxied beans via their interfaces still fails
in native images with a
"No qualifying bean of type MyInterface" error.

See gh-28717
This commit is contained in:
Sébastien Deleuze
2022-07-07 10:27:39 +02:00
parent cdf01ede8d
commit 0387d54607
3 changed files with 41 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
org.springframework.beans.factory.aot.BeanRegistrationAotProcessor=\
org.springframework.aop.scope.ScopedProxyBeanRegistrationAotProcessor
org.springframework.aot.hint.RuntimeHintsRegistrar=\
org.springframework.aop.SpringProxyRuntimeHintsRegistrar