(2)Spring boot 配置(1)

1.會使用兩種配置文件: Application.properties, Application.yml,或者yaml也可以。 配置文件得名字是固定得。 作用是修改spring boot自動配置的默認配置。 2.yaml的寫法:        Server:               Port: 8081 基本語法: Key : (必須有空格) 對象的寫法: 數組的寫法: 當然,以上得可以混合寫
相關文章
相關標籤/搜索