springboot項目多環境指定配置文件啓動

在idea中edit configuration 的active profiles設置 test 或者prod 在啓動項目時候,使用 java -jar -Dspring.profiles.active=test xxxx.jar
相關文章
相關標籤/搜索