IDEA设置远程debug调试_spring

 添加到启动参数中:

java -Dspring.profiles.active=test01 -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 zxl-remote-debug-demo.jar