Tutorial Crud Rest Api Spring Boot Mysql Hibernate Flyway Lombok
- Download Source Code
- Aktifkan Xampp atau Lampp
- Buka cmd lalu menuju mysql dengan perintah dibawah ini (XAMPP)
cd /xampp/mysql/bin
Lalu Ketikan
mysql -u root -p
Lalu Ketikan dibawah ini
mysql> create database siupdb;
mysql> create user 'siupdbuser'@'%' identified by 'siup123'; -- Creates the user
mysql> grant all on siupdb.* to 'siupdbuser'@'%'; -- Gives all the privileges to the new user on the newly created database
name database : siupdb
nama user : siupdbuser
password : siup123
- Import project Ke eclipse atau netbeans atau intelij IDEA
- Jalankan dengan buka terminal lalu ketikan $ mvn clean spring-boot:run
- Finish