Skip to content

spring boot的配置优先级顺序 #4367

@shenhuaxin

Description

@shenhuaxin

描述bug
apollo配置的优先级高于命令行参数,导致启动脚本中设置的命令行参数失效。

#1800 (comment)

image
这一行代码导致了apollo的优先级是最高的,但是 -D配置的优先级高于apollo的配置,是因为下面的代码。
image
我尝试将apollo的配置优先级降低,添加到命令行参数后面,这样脚本的命令行参数就优先于apollo配置。
image

期望
命令行参数优先级高于apollo配置

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