OpenJdk 23 (or change Java version in pom.xml)
MySQL
Maven (https://maven.apache.org/download.cgi)
Extract and add to path
- Log into MySQL as root from console
mysql -u root -p
Enter Password - Create "simple_booking" Database
CREATE DATABASE simple_booking;
- Create User "springuser" with password "7529"
CREATE USER 'springuser'@'localhost' IDENTIFIED BY '7529';
- Manage Privileges
GRANT ALL PRIVILEGES ON simple_booking.* TO 'springuser'@'localhost';
FLUSH PRIVILEGES;
- To start server
open terminal to/Simple-Booking/simpleBooking/
and run the following command:
mvn spring-boot:run
- In a Web Browser go to
localhost:8080
If port 8080 is in use stop the running program or add to application.properties
server.port = <port number>
then go tolocalhost:<port number>
- Enter
localhost:<port number>/addEmployee
on the browser - Go back to
loacalhost:<port number>
- Login with username:
emp001
and password:john001