IDE 準備
https://mergedoc.osdn.jp/ からJavaの「Full Edition」をダウンロードする。
その後、適切な場所に解凍し起動する。
プロジェクト作成
上記手順ではデータベースを使用するため、データベースの設定を行う
※下記はサンプルなので適宜修正してください
/demo/src/main/resources/application.properties
spring.datasource.url=jdbc:mysql://localhost/{データベース名}?serverTimezone=JST
spring.datasource.username={ユーザ名}
spring.datasource.password={パスワード}
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
アプリケーション起動
起動手順
プロジェクトを右クリック → 実行 → Spring Boot アプリケーション
起動確認
ブラウザで http://localhost:8080/ を開く。
下記の通りエラーが面が表示されるが、コントローラーなどがないため発生するものなので問題ない。