2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

IntelliJでspringbootを自動再起動させるように設定したい

Posted at

2021.2からちょっと設定の方法が変わったみたいです

まずは、devtoolsを読み込むようにbuild.gradlepom.xmlに追記する。

build.gradle
dependencies {
    developmentOnly 'org.springframework.boot:spring-boot-devtools'
}
pom.xml
<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-devtools</artifactId>
</dependency>

あとはIntelliJにて以下を設定。

  • Preferences > Build, Execution, Deployment > Compiler > Build project automaticallyにチェック
  • Preferences > Advanced Settings > Allow auto-make to start even if developed application is currently runningにチェック

以上で、変更を検知してSpringBootが自動で再起動してくれるようになります!

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?