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. CSS3中Transition屬性詳解以及示例分享2. ASP基礎(chǔ)入門第八篇(ASP內(nèi)建對象Application和Session)3. jsp文件下載功能實現(xiàn)代碼4. 在JSP中使用formatNumber控制要顯示的小數(shù)位數(shù)方法5. asp.net core項目授權(quán)流程詳解6. html中的form不提交(排除)某些input 原創(chuàng)7. ASP常用日期格式化函數(shù) FormatDate()8. CSS3實現(xiàn)動態(tài)翻牌效果 仿百度貼吧3D翻牌一次動畫特效9. ASP動態(tài)網(wǎng)頁制作技術(shù)經(jīng)驗分享10. XMLHTTP資料
