idea community version (2023.1) set spring boot project hot start

Hot Start

During the development process, when we need to run the application test after writing a function, we need to restart the server. The simplest project will take more than 10 seconds, and it will take more time if it is a larger project. SpringBoot provides spring-boot-devtools, which enables the application to be automatically restarted when the project changes

idea community edition settings

Menu bar FIle->Settings...
insert image description here
Check Build project automatically

菜单栏FIle -> Settings… -> Advanced Settings
insert image description here
勾选Allow auto-make to start even if developed application is currently running

maven package configuration

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

configuration file

Add
spring.devtools.restart.enabled=true
insert image description here

success!

Guess you like

Origin blog.csdn.net/artistkeepmonkey/article/details/131923261