LoginSignup
5
1

More than 3 years have passed since last update.

intellij IDEA で spring boot, kotlinでホットデプロイ環境

Posted at

今まで、STS, spring boot, java, maven, devtool でやっていました

intellij IDEA, spring boot, kotlinを試したくなってやってみました
Spring Initializr で zipを作ります
2019-10-13_23h41_41.png

解凍して、Intellij で gradle project で importします
2019-10-13_23h43_29.png

Sampleでクラスを作成します
2019-10-13_23h47_18.png

Terminalで以下を実行します
bash
gradlew build --continuous
(又は「gradlew build -t」)

2019-10-13_23h45_57.png

Gradle bootRun します
2019-10-13_23h52_14.png

ブラウザで表示を確認します
2019-10-13_23h46_32.png

Sampleの内容を書き換えます
2019-10-13_23h47_02.png

再度ブラウザで表示すると、書き換えたSampleの内容で表示されました
2019-10-13_23h59_28.png

上述の方法を見つける前に
以下の設定をする方法をよく見かけていて一応これも設定しています。
ただこちらの設定が必要なのかは確認していません。

Shift を2回押して、Registry
「compiler.automake.allow.when.app.running」にチェックを入れる

「settings > Compiler > Build project automatically」にチェックを入れる

5
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
5
1