首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Springdoc+ GraalVM本机@配置类问题

Springdoc+ GraalVM本机@配置类问题
EN

Stack Overflow用户
提问于 2020-09-02 07:00:18
回答 1查看 512关注 0票数 1

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

代码语言:javascript
复制
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]

我已经有以下依赖项:

代码语言:javascript
复制
    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类,有什么解决办法吗?

UPDATE:看起来配置是在Springdoc1.4.6-快照上更新的。然而,其他一些人开始抱怨:

代码语言:javascript
复制
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

现在不知道该去哪里..。

EN

回答 1

Stack Overflow用户

发布于 2020-09-02 21:33:27

自从v1.5.9springdoc 全力支持 GraalVM与春季土生土长。

不需要额外配置。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63700295

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档