Edit Configurations------> 点击+号 -->Remote JVM Debug------->添加配置
1.Edit Configurations
2. add New Configuration
3.添加配置
4 启动测试环境服务器
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1001 -jar demo-0.0.1-SNAPSHOT.jar
5. 本地启动服务,访问测试环境,进入断点