前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >SpringBoot_05_热部署和debug

SpringBoot_05_热部署和debug

作者头像
shirayner
发布2018-08-10 10:23:49
2490
发布2018-08-10 10:23:49
举报
文章被收录于专栏:Java成神之路

一、pom.xml配置

增加以下pom.xml配置

代码语言:javascript
复制
 <!--1.spring-boot插件-->
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <fork>true</fork>
                    <jvmArguments>
                        -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
                    </jvmArguments>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>springloaded</artifactId>
                        <version>1.2.6.RELEASE</version>
                    </dependency>
                </dependencies>
            </plugin>

二、添加一个remote

在工具栏中的Run -> Edit Configurations... -> Remote,

新建一个启动项,什么都不用改,但为了方便名字随便起一个你能区分开的就行,

我这里叫debug了

三、以debug方式启动

1.执行 spring-boot:run

2.以 debug 方式启动 remote

二、参考资料

1.SpringBoot 热加载以及添加debug调试

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2018-03-12 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 一、pom.xml配置
  • 二、添加一个remote
  • 三、以debug方式启动
    • 1.执行 spring-boot:run
      • 2.以 debug 方式启动 remote
      • 二、参考资料
      领券
      问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档