SpringBoot多环境配置Maven Profile组
Maven profile组
注意切换配置时 mvn clean下 或者 clean 加install 或者compile 编译
clean之后 install下 或者compile 编译
nohup java -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -jar demo.jar --spring.profiles.active=prod > system.log 2>&1 &
Maven profile组
注意切换配置时 mvn clean下 或者 clean 加install 或者compile 编译
clean之后 install下 或者compile 编译
nohup java -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -jar demo.jar --spring.profiles.active=prod > system.log 2>&1 &