基礎5-profile多環境支持

profile的作用在Spring基礎裏面說過,這裏不再敘述;配置profile,根據文件不同,分爲yml、properties文件2種類型: 當基於properties文件時,其步驟一般是如下步驟: ①根據環境不同,編寫不同的properties文件,文件命名一般是:application-{profile}.properties application-dev.properties serve
相關文章
相關標籤/搜索