Springboot 打成jar包后 结合idea remote 远程debug

1、将测试demo打成jar

2、 将jar放到某个目录下,并运行起来

bash 复制代码
java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:10087 base_admin-1.0.0.jar 

3、在Idea中编辑Remote调试

4、在浏览器中打开刚启动的jar,比如我的项目地址:http://127.0.0.1:10086/doc.html![](https://file.jishuzhan.net/article/1768877812904628226/a400eed7eddc272a7cf79583a05d3269.webp)

5、在要调试debug的代码位置加入断点,并启动Remote,然后在浏览器调用要调试的接口地址,比如我的要调试地址:http://127.0.0.1:10086/home2/test

相关推荐
IT_Octopus1 天前
IntelliJ 本地日志路径自定义:`-DLOG_PATH=./logs` 为什么总“不听话“
java·log4j·intellij-idea
Bs_MoneyMagnet1 天前
基于springboot+vue的医疗健康便民服务平台的设计与实现 源码+文档
java·vue.js·spring boot·后端·spring
loser.with.m1 天前
【AgentScope 2.0】05-从数据库配置到可运行 Agent:十个 Builder 开关怎么把一行 JSON 变成 HarnessAgent
人工智能·spring boot·ai
withoutfear1 天前
IntelliJ IDEA卡顿内存分配不足和索引被频繁触发问题解决办法
java·ide·intellij-idea
行百里er1 天前
Spring Insight 里收到的 Span 是怎么存下来的
spring boot·spring·监控
xcl09251 天前
智慧健身场馆系统开发实战:从架构设计到核心模块落地指南
java·spring boot
vx-程序开发1 天前
【计算机毕设】基于Spring Boot的古城景区管理系统88564
java·数据库·spring boot·后端·spring·elasticsearch·课程设计
vx-Biye_Design1 天前
springboot中国传统节日宣传平台49078-计算机课程设计、毕业设计
java·前端·vue.js·spring boot·后端·课程设计·idea
代码调试师1 天前
【毕设分享】springboot攀枝花生鲜电商平台58990
java·vue.js·spring boot·后端·架构·eclipse·课程设计
xcl09251 天前
全民健身解决方案小程序系统开发实战:从架构设计到上线指南
java·spring boot