Help us understand the problem. What is going on with this article?

Spring InitializrをIntelliJで使う

はじめに

SPRING INITIALIZRを使うと簡単にSpring Bootベースのアプリケーションが作成できる。

image

これをIntelliJから利用できるプラグインが追加になったので試してみる。

環境

  • Mac
  • IntelliJ 15

手順

IntelliJのメニューから「File」「New」「Project」を選択

image

左のペインから「Spring Initializr」を選択して「Next」

image

TypeをGradle Projectを選択して「Next」ボタンをクリック

image

※Packagingで「War」が選択できるがこれは選択しないほうがいいらしい
※Typeは、Maven Projectでもいい

とりあえず「Web」と「Actuator」を選択して「Next」ボタンをクリック

検索窓を使って検索すると少し選びやすい
image

Project Nameを適当に入力して、「Finish」ボタンをクリック

image

Gradleの設定画面がでるかもしれない。気にならなければそのまま「OK」

image

できた「DemoApplication」を実行

image

8080ポートで立ち上がる

image

Actuatorの情報をみる

statusがupになっていればOK

~/D/g/spring-cloud-stream ❯❯❯ curl http://localhost:8080/health                                                                                                                         [master]
{"status":"UP","diskSpace":{"status":"UP","total":249804886016,"free":19889369088,"threshold":10485760}}% 
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした