在服务器上设置远程debug
nohup java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=debug端口号 xxxx.jar > xxxx.log 2>&1 &
在idea设置
注意事项: