Spring-boot Crash (2) Devtools Heat deployment

Source: Internet
Author: User
Tags automake

Jrebel Hot Deployment Plugin I believe a lot of people know, but this is a commercial plug-in, Spring-boot framework also provides a similar function, namely: Devtools, the key is free! Here's how to use it:

First, add Devtools dependency

dependencies {    compile (' org.springframework.boot:spring-boot-starter-web ')    compile (' Org.springframework.boot:spring-boot-devtools ')    compileonly (' Org.projectlombok:lombok ')    testcompile (' Org.springframework.boot:spring-boot-starter-test ')}

Just add the org.springframework.boot:spring-boot-devtools dependency.

Second,the idea of enabling project automatic construction

third,idea in compiler.automake.allow.when.app.running attribute changed to True

This option is very discreet, especially on Mac, the correct treasure hunt posture is as follows (the average person I don't tell him):

3.1 Keymap, other, maintenance

Note This shortcut key: SHIFT + OPTION + COMMAND +/

3.2 back to the Idea main window, press these 4 magic key combinations

3.3 Then find the compiler.automake.allow.when.app.running option and open it

Then turn it off, the Gaocheng.

Now as soon as the code changes, and then save, it will trigger the compilation in real-time, and reload, the implementation of the non-restart of the hot deployment, development debugging is very convenient.

Spring-boot Crash (2) 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.