Add native image runtime hints.
We provide an initial set of runtime hints required to spin up data repositories on GraalVM native image. Additionally we skip synthetic types during type inspection. Original Pull Request: #2624
This commit is contained in:
@@ -20,6 +20,7 @@ import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
import org.springframework.aot.hint.annotation.Reflective;
|
||||
import org.springframework.stereotype.Indexed;
|
||||
|
||||
/**
|
||||
@@ -30,6 +31,7 @@ import org.springframework.stereotype.Indexed;
|
||||
*/
|
||||
@Indexed
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Reflective
|
||||
@Target(value = { ElementType.TYPE, ElementType.FIELD, ElementType.PARAMETER })
|
||||
public @interface Persistent {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user