Spring boot 使用YML文件配置多環境

兩種配置方式 1:在一個yml文件中,2:在多個yml文件中web 1 一個yml文件 application.ymlspring spring: profiles: active: dev --- #開發環境配置 spring: profiles: dev server: port: 1000 --- #測試環境配置 spring: profiles: stg
相關文章
相關標籤/搜索