Spring boot Springdoc用户界面&x2B;GraalVM本机@配置类问题

Spring boot Springdoc用户界面&x2B;GraalVM本机@配置类问题,spring-boot,graalvm,springdoc,graalvm-native-image,springdoc-openapi-ui,Spring Boot,Graalvm,Springdoc,Graalvm Native Image,Springdoc Openapi Ui,为了学习GraalVM+SpringBoot的细节,我正在开发一个示例应用程序,其中只包含一小部分操作和特性。 其中之一是可能公开SpringDoc端点(目前使用的是1.4.5版)。 即使应用程序已正确编译且本机映像可执行文件已启动,但一旦开始配置内容,就会引发异常: org.springframework.beans.factory.BeanDefinitionStoreException: @Configuration classes need to be marked as proxyBe

为了学习GraalVM+SpringBoot的细节,我正在开发一个示例应用程序,其中只包含一小部分操作和特性。 其中之一是可能公开SpringDoc端点(目前使用的是1.4.5版)。 即使应用程序已正确编译且本机映像可执行文件已启动,但一旦开始配置内容,就会引发异常:

org.springframework.beans.factory.BeanDefinitionStoreException: @Configuration classes need to be marked as proxyBeanMethods=false. Found: [org.springdoc.core.SpringDocConfigProperties, org.springdoc.core.SpringDocConfiguration, org.springdoc.core.SwaggerUiConfigParameters, org.springdoc.core.SwaggerUiConfigProperties, org.springdoc.core.SwaggerUiOAuthProperties, org.springdoc.webmvc.core.SpringDocWebMvcConfiguration, org.springdoc.webmvc.ui.SwaggerConfig]
        at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:71) ~[poc-graalvm-native.exe:na]
我已经有以下依赖项:

    implementation("org.springframework.experimental:spring-graalvm-native:0.7.1")
    implementation("org.springframework.boot:spring-boot-configuration-processor")
    annotationProcessor("org.springframework:spring-context-indexer:5.2.4.RELEASE")
并且在我的主类上也有
@SpringBootApplication(proxyBeanMethods=false)

对于没有proxyBeanMethods=false属性的@Configuration类的这些情况,是否有任何解决方法

更新: 似乎Springdoc 1.4.6-Snapshot上更新了配置。然而,另一些事情开始抱怨:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'modelConverterRegistrar' defined in class path resource [org/springdoc/core/SpringDocConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springdoc.core.converters.ModelConverterRegistrar]: Factory method 'modelConverterRegistrar' threw exception; nested exception is java.lang.NullPointerException

现在不知道该去哪里…

因为
v1.5.9
springdoc openapi GraalVM带有spring native


无需额外配置。

因为
v1.5.9
springdoc openapi GraalVM带有spring native


无需额外配置。

再次感谢您的回复。我现在使用的是1.4.6版,您之前指出的更正已经出现在我的本机映像配置中。但是我仍然有我问题中提到的最后一个错误。再次感谢你的回复。我现在使用的是1.4.6版,您之前指出的更正已经出现在我的本机映像配置中。但我还有问题中提到的最后一个错误。