LoginSignup
3
6

More than 5 years have passed since last update.

EclipseでのSpring Bootアプリケーション開発

Last updated at Posted at 2018-05-10

EclipseでSpring Bootアプリケーションを開発するときのTipsをまとめました。

はじめに:Spring Tool Suite(Eclipseプラグイン)を導入する

Eclipseで開発するのであればSTS(Spring Tool Suite)を使うのが常套手段である。

  • ヘルプEclipse マーケットプレース の順に選択する。
  • 検索でSpring ツール(Spring IDE and Spring Tool Suite)を探してインストールする。

新規プロジェクトを作成する

  • ファイル新規その他Spring スターター・プロジェクト の順に選択する。
  • プロジェクト設定ダイアログに必要な設定値を入力する。
    • ビルドツールはGradle (Buildship 2.x) が今後主流になりそう。(BuildshipはEclipse公式のGradleプラグイン)

アプリケーションを実行(デバッグ)する

  • プロジェクトを右クリック → 実行 もしくは デバッグSpring Boot アプリケーション

補足:Gradle依存関係を解決する

build.gradleに依存ライブラリを追加したときには以下の操作が必要となる。

  • プロジェクトを右クリック → GradleGradleプロジェクトのリフレッシュ
3
6
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
3
6