Skip to content

springboot3.3.0启动报错Invalid value type for attribute ‘factoryBeanObjectType‘: java.lang.String #2

@rayliang123

Description

@rayliang123

当springboot升级到3.3.0之后,使用@MongoMapperScan去扫描mapper的时候,启动报错
image
原因大概是这样
在 Spring Boot 3.2 版本中FactoryBeanRegistrySupport#getTypeForFactoryBeanFromAttributes方法已变更,如果 factoryBeanObjectType 不是 ResolvableType 或 Class 类型会抛出 IllegalArgumentException 异常。

此时因为 factoryBeanObjectType 是 String 类型,不符合条件而抛出异常

希望尽快修复

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions