开发者社区 问答 正文

Spring Boot 的配置文件有哪几种格式?

Spring Boot 的配置文件有哪几种格式?

展开
收起
真的很搞笑 2021-10-21 21:52:51 1010 分享 版权
1 条回答
写回答
取消 提交回答
  • Spring Boot 目前支持两种格式的配置文件: .properties 格式。示例如下: server.port = 9090 .yaml 格式。示例如下: server: port: 9090

    2021-10-21 21:53:06
    赞同 展开评论