University is demo project. It uses java 11 and spring boot 2 and H2 embedded relative database. Tests are Junit 5 based.
Create a simple Spring Boot java project with the console interface for university, which consists of departments and lectors. The lectors could work in more than one department. A lector could have one degree (assistant, associate professor, professor).
All data is stored in the relational database.
The app should implement such commands:
1.User Input:
Who is head of department {department_name}Answer:
Head of {department_name} department is {head_of_department_name}2.User Input:
Show {department_name} statistics.Answer:
assistans - {assistams_count}.
associate professors - {associate_professors_count}
professors -{professors_count}3.User Input:
Show the average salary for the department {department_name}.Answer:
The average salary of {department_name} is {average_salary}4.User Input:
Show count of employee for {department_name}.Answer:
{employee_count}5.User Input:
Global search by {template}.Answer:
Ivan Petrenko, Petro IvanovTo build and run application you need Java version not older then 11 and Apache Maven 3.
Run next script in root directory
mvn clean package spring-boot:repackageBuilded .jar file could be run using
java -jar target/university-1.1.0.jarYou can also see javadoc
And other project details