Second, Spring-boot-devtools Heat deployment

Source: Internet
Author: User

Springboot provides a hot deployment that requires adding dependencies:

<dependency>    <groupId> org.springframework.boot</groupid>    <artifactId> Spring-boot-devtools</artifactid>    <optional>true</optional>//indicates that the dependency does not pass </ Dependency>        

Restart when the file triggers Ctrl + S or the idea class file triggers the build when the Eclipse class path is triggered

auto-trigger reboot : Compile plugin needs to add fork = True

<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>//Does not trigger automatic restart
</configuration>
</plugin>

Note: If the idea tool is set for automatic compilation, then no fork will trigger an automatic restart

The setup steps are as follows:

1) Make project automatically, compiler, settings

2) shift+ctrl+alt+/, registry, compiler.automake.allow.when.app.running, check

Second, Spring-boot-devtools Heat deployment

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.