Company In Spring

JDK Spring Boot

How it works

The application uses Spring Boot (Web).

The code is organized as this:

  1. controller is the web layer implemented by Spring RestAPI
  2. service is the business model including services
  3. entity is the model including entities
  4. repository
  5. exceptions contains runtime exception classes as the technique details

Environment

  • JDK 1.8
  • IntelliJ IDEA ULTIMATE 2022.1 + (Note: Please use IDEA and make sure plugin lombok installed.)

Database

  • Mysql 8.0 It uses a MySQL database, can be changed easily in the application.properties for any other database.

Getting started

You'll need Java 8 installed.

To test that it works, open a browser tab at http://localhost:8080/employees.
Alternatively, you can run

curl http://localhost:8080/employees

URL s

Get all employees

Get employees by id

Add employee

Update by id employee

Delete employee by id

Get attendance records by date time and department name