Admin - SpringBoot + Maven 多啟動環(huán)境配置實例詳解
一:父級pom.xml文件 resources目錄下新建指定文件夾,存放Spring配置文件
<profiles> <profile> <id>dev</id> <properties> <profiles.active>dev</profiles.active> </properties> <activation> <activeByDefault>true</activeByDefault> </activation> </profile> <profile> <id>telework</id> <properties> <profiles.active>telework</profiles.active> </properties> </profile> <profile> <id>sit</id> <properties> <profiles.active>sit</profiles.active> </properties> </profile> <profile> <id>pre</id> <properties> <profiles.active>pre</profiles.active> </properties> </profile> <profile> <id>prod</id> <properties> <profiles.active>prod</profiles.active> </properties> </profile></profiles>
二:application.properties
######################### server ###################server.servlet.context-path=/i-admin-apiserver.port=10086spring.profiles.active=@profiles.active@
到此這篇關(guān)于Admin - SpringBoot + Maven 多啟動環(huán)境配置實例詳解的文章就介紹到這了,更多相關(guān)SpringBoot + Maven 環(huán)境配置內(nèi)容請搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!
相關(guān)文章:
1. XML在語音合成中的應(yīng)用2. HTTP協(xié)議常用的請求頭和響應(yīng)頭響應(yīng)詳解說明(學(xué)習(xí))3. 不要在HTML中濫用div4. ASP將數(shù)字轉(zhuǎn)中文數(shù)字(大寫金額)的函數(shù)5. .NET Framework各版本(.NET2.0 3.0 3.5 4.0)區(qū)別6. jscript與vbscript 操作XML元素屬性的代碼7. HTML5實戰(zhàn)與剖析之觸摸事件(touchstart、touchmove和touchend)8. php使用正則驗證密碼字段的復(fù)雜強度原理詳細講解 原創(chuàng)9. ASP基礎(chǔ)入門第四篇(腳本變量、函數(shù)、過程和條件語句)10. XML入門的常見問題(三)
