0
0

More than 1 year has passed since last update.

String Boot環境構築

Last updated at Posted at 2021-12-05

1.eclipseをインストール(Windows版のインストールをキャプチャしています)
  1-1.https://mergedoc.osdn.jp/ にアクセス
  1-2.Eclipse 2021をクリック(赤枠で囲っている箇所)
image.png
  1-3.Windows64bit版 Full EditionのJavaをクリック(赤枠で囲っている箇所)
image.png
 1-4.Eclipseダウンロード(ダウンロードが開始されない場合、赤枠のリンクをクリック)
image.png
1-5.Eclipseを解凍(7Zipで解凍, キャプチャでは、Qiitaファルダで解凍)
image.png
image.png

2.Spring Bootプロジェクト作成
 2-1.Eclipse起動(workspaceは初期設定)
image.png
 2-2.ファイル→新規→Springスターター・プロジェクトを選択
image.png
 2-3.タイプ:Maven Project, パッケージング:Warで作成
  2-3ー1.赤枠の箇所を変更して、次へボタンをクリック
  2-3-2.完了ボタンをクリック、ビルドが完了するまで待つ
image.png
 2-4.パッケージエクスプローラーでプロジェクトを選択して右クリック→実行を選択→Maven installをクリック
image.png
  (ERRORになった場合、プロジェクトのプロパティのMavenでアクティブMavenプロファイルを空白で再度、上記を実行)
image.png
 2-5.index.htmlを作成
  2-5-1.src/main/resources/templatesを右クリック→新規→HTMLファイルをクリック
  2-5-2.ファイル名をindex.htmlに変更して完了ボタンをクリック
image.png
 2-6.プロジェクト実行
     プロジェクトを右クリック→実行→Spring Bootアプリケーションをクリック
image.png

3.ブラウザで確認
  http://localhost:8080/ にアクセス(正常に表示されている場合、Insert title hereのタイトルが表示される)
image.png

  

  

0
0
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
0
0