maven的-D命令使用方法

-Dxxx=xuejian

在启动时向VM中添加这个参数, 是在向系统属性Properties中添加属性xxx=xuejian

系统属性可以在application.properties或bootstrap.properties中直接通过${xxx}取值

-Psit

是在打包时,向pom文件的profile标签属性传递的参数,表示选择哪个profile,此处是sit

原文地址:https://www.cnblogs.com/wangxuejian/p/13551462.html