1.プロジェクトを作成する
① ブラウザを開き、(https://start.spring.io/) を入力し、開く
② 下記を入力し、Dependenciesで下記を選択し、『GENERATE』ボタンを押す
-
Project: Maven
-
Language: Java
-
SpringBoot: 3.1.2
-
Group: io.javabrains
-
Artifact: ipl_dashboard
-
Name : ipl_dashboard
-
Description: Demo project for Spring Boot
-
Package name: io.javabrains.ipl_dashboard
Dependencies
- Spring Boot Web
- Spring Boot DevTools
- HyperSQL Database
- Spring Data JPA
- Spring Batch
2.Databaseの初期化する
① resoucesフォルダにmatch-data.xlsxファイルを追加する
resouces/application.propertiesを編集する
resouces/application.properties
参考サイト
CRUD Operations using Spring Boot + Spring MVC + MySQL + Thymeleaf | Create, Read, Update and Delete