Intellij idea runs Spring-boot with Jrebel and implements automatic compilation for hot deployment

Source: Internet
Author: User

When using Jrebel to run Spring-boot, you will find a very difficult problem, that is, the project can not be automatically compiled, can not be compiled automatically can not implement the hot deployment. (When running with the jar package)
Then we need to solve the problem of automatic compilation, first:

1. Tick on Build project automatically

2, press the combination key shift+ctrl+alt+/, select Registry

3, check the compiler.automake.allow.when.app.running

4. When you re-run your project using Jrebel debug mode, the idea will be compiled automatically when you change the HTML or the class.

Note: If you use the Maven plugin, you will automatically restart the project after each change

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>


Intellij idea runs Spring-boot with Jrebel and implements automatic compilation for hot 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.