IDEA->RUN->Edit Configurations
端口随便选一个,选择调试模块,然后用IDEA生成的命令调试
bash
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8081 -jar backend-1.18.11.jar &