SpringBoot yml 配置
SpringBoot yml 配置
1. 在 spring boot 中,有两种配置文件,一种是application.properties,另一种是application.yml,两种都可以配置spring boot 项目中的一些变量的定义,参数的设置等。下面来说说两者的区别。
application.properties 配置文件在写的时候要写完整,如:
spring.profile
转载
2017-11-10 10:09:19 ·
267 阅读 ·
0 评论