Spring Boot应用程序的Graal本机映像在启用调度时失败



本机Spring Boot应用程序支持调度吗?

一个非常简单的带有这些注释的Spring Boot应用程序在使用graal编译为本地映像时无法启动。

@SpringBootApplication
@EnableScheduling
@EnableAsync
public class MyApplication {}

错误如下:

容器类型的声明无效用于可重复的annotation[org.springframework.schedding.annotation.Scheduled];嵌套异常为java.lang.NoSuchMethodException:无值方法找到

Spring Boot 2.4.1,org.springframework.实验:Spring-graalvm原生:0.8.4

编译脚本如下(取自StarBuxman(:

native-image 
--verbose 
-H:EnableURLProtocols=http 
-H:+RemoveSaturatedTypeFlows 
-H:Name=$ARTIFACT 
-Dspring.native.verbose=true 
-Dspring.native.remove-jmx-support=true 
-Dspring.native.remove-spel-support=true 
-Dspring.native.remove-yaml-support=true 
-cp $CP $MAINCLASS  

已修复-从0.8.3更新到0.8.4已修复。

最新更新