“`配置文件有 . properties 格式和 . yml 格式,它们主要的区别是书法风格不同。 properties 配置如下:spring. RabbitMQ. port=5672 yml 配置如下:spring:RabbitMQ:port: 5672 yml 格式不支持 @PropertySource 注解导入。 “` Was this helpful? YesNo 0 / 0 上一篇: spring boot 有哪些方式可以实现热部署? 下一篇: 为什么要用 spring boot? 发表回复 取消回复0 Your email address will not be published. 在此浏览器中保存我的显示名称、邮箱地址和网站地址,以便下次评论时使用。