Spring-boot Hot Deploy IntelliJ IDE

Source: Internet
Author: User

1. Using springloadded plug-in:

How to use:

A, first in the IDE to deploy your service, (MVN spring-boot:run)

b, modify the code,

C, Command+f9 (or Build->make)

The springloadded plugin will help you redeploy as soon as you've finished doing it. Of course you can also do this by setting the IntelliJ make when save (the code changes it again, this setting is intellij->preferences->build,excution,deployment-> Compile->make Project automatically.), and then you modify the code to save a bit.

2, through the Spring-boot-devtools plug-in to complete, this plug-in than springloadded to more simple. You just have to modify the code and it will automatically redeploy it for you.

Join in the <dependcies></dependcies> of your project

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
Just do it, and then if you want to support the changes in the code immediately after you see the effect in the browser, you have to say make Project automatically settings, pay attention to your
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.5.RELEASE</version>
The version is not too low, otherwise it may compile but

3, JRebel

Spring-boot Hot Deploy IntelliJ IDE

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.