Home > Java > javaTutorial > body text

How to solve the problem that Springboot hot deployment is invalid in Idea

王林
Release: 2023-05-18 18:01:06
forward
2303 people have browsed it

1. Enable automatic make function of idea

1 - Enable Automake from the compiler

PRESS: CTRL SHIFT A

TYPE: make project automatically

PRESS: Enter

Enable Make Project automatically feature

##2 - Enable Automake when the application is running

PRESS: CTRL SHIFT A


#TYPE: Registry


Find the key compiler.automake.allow.when .app.running and enable it


Note: Restart your application now

Two steps:

1、CTRL SHIFT A --> Search make project automatically --> Select


2, CTRL SHIFT A --> Search Registry --> Find and select compiler.automake.allow.when. app.running

Of course, you need to add the spring development tool kit in pom.xml

<dependency>
      <groupid>org.springframework.boot</groupid>
      <artifactid>spring-boot-devtools</artifactid>
      <optional>true</optional> <!-- 这个需要为 true 热部署才有效 -->
      <scope>runtime</scope>
 </dependency>
Copy after login
Enable automatic compilation in IDEA:

How to solve the problem that Springboot hot deployment is invalid in Idea

The above is the detailed content of How to solve the problem that Springboot hot deployment is invalid in Idea. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!