Spring-boot-devtools Hot deployment method in idea

Source: Internet
Author: User

Prevent connection failures, make a backup, transfer from

Https://www.cnblogs.com/sprinkle/p/7058630.html

1 pom.xml File

Note : the thermal deployment feature spring-boot-1.3 started

<!--Add Dependency -<Dependency>    <groupId>Org.springframework.boot</groupId>    <Artifactid>Spring-boot-devtools</Artifactid>    <!--optional=true, dependencies are not passed, the project relies on Devtools, and projects that depend on myboot projects, if you want to use Devtools, need to reintroduce -    <Optional>True</Optional></Dependency>

Note : Adding Spring-boot-maven-plugin to project is primarily used in eclipse, and it is not necessary to add this configuration in idea.

<Build>    <Plugins>        <plugin>            <groupId>Org.springframework.boot</groupId>            <Artifactid>Spring-boot-maven-plugin</Artifactid>            <Configuration>                <Fork>True</Fork>            </Configuration>        </plugin>    </Plugins></Build>

2 Changing the idea configuration

1) "File", "Settings", "Build,execution,deplyment", "Compiler", tick "Build Project automatically".

2) key combination: "shift+ctrl+alt+/", select "Registry", tick "compiler.automake.allow.when.app.running".

3 Chrome Disables caching

F12 or "Ctrl+shift+i", open developer tools, "Network" tab Check tick "Disable Cache (while DevTools is open)"

Spring-boot-devtools Hot deployment method in idea

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.