spring-boot 1.3 以上版本使用spring-boot-devtools进行版本升级

本文介绍了如何在Spring Boot 1.3及以上版本利用spring-boot-devtools进行版本升级和热部署。首先,在pom.xml中添加Spring Milestones仓库和devtools依赖。接着配置application.properties,设置服务器端口和远程热部署口令。通过mvn package打包程序后在服务器上部署。在Eclipse和IntelliJ IDEA中分别配置运行配置以实现热部署。当本地代码更改并编译后,服务器上的应用会自动更新变化。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.使用maven添加spring-boot-devtools依赖(spring-boot1.3 以后的版本拥有的新特性)

      <repositories>

        <repository>

            <id>spring-milestones</id>

            <name>Spring Milestones</name>

            <url>http://repo.spring.io/milestone</url>

            <snapshots>

                <enabled>false</enabled>

            </snapshots>

        </repository>

    </repositories>

    <parent>

        <groupId>org.springframework.boot</groupId>

        <artifactId>spring-boot-starter-parent</artifactId>

        <version>1.3.3.RELEASE</version>

    </parent>

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

毛志信

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值