springboot中多場景配置文件使用

Profile 1、多Profile文件 在編寫配置文件時可以是 application-{profile}.properties/yml 默認使用application.properties的配置 2、yml多文檔塊模式 使用—進行分割 3、激活指定profile 在配置文件中指定 spring.profiles.active=dev 命令行: —spring.properties.active
相關文章
相關標籤/搜索