https://yiqiwuliao.com/post/spring/springbootre-bu-shu#toc_3

 记得修改下面参数

1. build project auto.....

Springboot 热部署的两种方式

 

2. shift + alt + ctrl + / -> regis....

 

Springboot 热部署的两种方式

 

3. 使用下面命令debug运行

mvn spring-boot:run -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"

 

run -> Edit Configura.... -> remote

Springboot 热部署的两种方式

 

拓展:基于Tomcat的远程debug 

vim bin/catalina.sh

在第一行添加 CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8899"

使用IDEA 创建一个remote 填写ip和端口链接即可进行远程debug

 

相关文章:

  • 2022-12-23
  • 2021-10-08
  • 2022-03-03
  • 2021-06-03
  • 2021-06-21
  • 2021-12-15
  • 2022-12-23
猜你喜欢
  • 2021-07-07
  • 2021-05-21
  • 2021-12-12
  • 2021-12-17
相关资源
相似解决方案