0
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 5 years have passed since last update.

STSのインストールからプロジェクト作成まで

Posted at

公式ホームページからダウンロード

https://spring.io/tools/sts/all
Based on Eclipse 4.10.0を選択。
zipを選択。
任意の場所に保存し,解凍。

STSを起動

{インストール場所}/sts-3.9.7.RELEASE/STS.exeをダブルクリック

ここでjavaが環境pathに設定していない場合、以下のエラーがでるため
パスを通す必要がある。
エラーメッセージ : 「STSを動作させるためにはJREまたはJDKが必須です。
以下のパスにファイルがありませんでした。
{インストール場所}/sts-bundle/sts-3.9.7.RELEASE/jre/bin/javaw.exe

プロジェクト作成

「File」->「New」-> 「Maven Project」->「New Maven Project」
Select project and location はデフォルトで「Next」
Select an Archtypeは「maven-archetype-web」をダブルクリック
GroupId, ArtifactIdは任意入力し「Finish」

pomの修正

作成されたプロジェクトはエラーが発生しているため、以下の修正が必要。

依存関係の追加
・Spring io Platform (io.spring.platform)
・servlet api (javax.servlet)
・taglib (org.apache.taglibs)

ビルドの設定
・コンパイラ (maven-compiler-plugin)

pomの反映

Mavenプロジェクトを右クリック->「Maven」->「Update Project」

web.xmlの編集

APサーバの起動

serverタブの「Pivotal tc Server Developer Edition v4.0」を右クリック
「Add and Remove」でプロジェクトを追加。
「Start」でAPサーバを起動。

サーバのアイコンを展開しプロジェクトを右クリックし
「Open Home Page」でトップページが表示される。

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