You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: framework-docs/src/docs/asciidoc/core/core-aot.adoc
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ Applying such optimizations early implies the following restrictions:
18
18
** `@Profile`, in particular profile-specific configuration needs to be chosen at build time.
19
19
** Environment properties that impact the presence of a bean (`@Conditional`) are only considered at build time.
20
20
* Bean definitions with instance suppliers (lambdas or method references) can't be transformed Ahead of Time (see https://github.com/spring-projects/spring-framework/issues/29555[spring-framework#29555] related issue)
21
+
* The return type of methods annotated with `@Bean` should be the most specific one in order to allow proper hint inference (typically the concrete class, not an interface).
21
22
22
23
When these restrictions are in place, it becomes possible to perform ahead-of-time processing at build time and generate additional assets.
23
24
A Spring AOT processed application typically generates:
0 commit comments