Skip to content

[ISSUE #285] Fix 服务端配置修改后,不支持@value值的动态变更 这个提交里有个问题 #355

@VanillaIceCreams

Description

@VanillaIceCreams

新增的那个SpringValueAnnotationBeanPostProcessor有BUG啊,我properties配置文件里写了个“product.install.specification=”的配置,等于号后面没有填东西。 然后我代码里用 @Value("${product.install.specification:0}") private Integer installSpecification;注入,代码里会解析出个null,然后往injectedObjectsCache里注入。ConcurrentHashMap又不支持value=null,直接空指针了

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions