【win】
java -Dfile.encoding=utf-8 -jar xxx.jar --spring.profiles.active=prod >log/xxx.log 2>&1 &
【说明】-Dfile.encoding=utf-8 解决运行时中文乱码问题
【linux】
nohup java -jar xxx.jar --spring.profiles.active=prod >log/xxx.log 2>&1 &
【win】
java -Dfile.encoding=utf-8 -jar xxx.jar --spring.profiles.active=prod >log/xxx.log 2>&1 &
【说明】-Dfile.encoding=utf-8 解决运行时中文乱码问题
【linux】
nohup java -jar xxx.jar --spring.profiles.active=prod >log/xxx.log 2>&1 &