久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁技術文章
文章詳情頁

Admin - SpringBoot + Maven 多啟動環境配置實例詳解

瀏覽:86日期:2023-03-19 15:56:09

一:父級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@

到此這篇關于Admin - SpringBoot + Maven 多啟動環境配置實例詳解的文章就介紹到這了,更多相關SpringBoot + Maven 環境配置內容請搜索好吧啦網以前的文章或繼續瀏覽下面的相關文章希望大家以后多多支持好吧啦網!

標簽: Spring
相關文章:
主站蜘蛛池模板: 无锡市| 苗栗县| 阿瓦提县| 固镇县| 鄢陵县| 陈巴尔虎旗| 尚义县| 中宁县| 兰州市| 开平市| 东港市| 阿荣旗| 柳江县| 绥棱县| 江川县| 昌平区| 军事| 枝江市| 呼伦贝尔市| 南乐县| 子长县| 吉水县| 深圳市| 镶黄旗| 任丘市| 无棣县| 衡东县| 武胜县| 磐石市| 集安市| 满城县| 太原市| 石泉县| 定日县| 彭州市| 察雅县| 固安县| 南雄市| 西城区| 隆安县| 沂水县|