开发者社区 问答 正文

spring Boot 默认配置文件bootstrap用途是什么?

spring Boot 默认配置文件bootstrap用途是什么?

展开
收起
真的很搞笑 2021-10-21 22:16:19 519 分享 版权
1 条回答
写回答
取消 提交回答
  • 使用配置中心 Spring Cloud Config 时,需要在 bootstrap 中配置配置中心的地址,从而实现父 ApplicationContext 加载时,从配置中心拉取相应的配置到应用中。

    2021-10-21 22:16:32
    赞同 展开评论