Spring Boot - API with DB - EmployeeVerse – The Java HRM System #190
akash-coded
started this conversation in
Tasks
Replies: 4 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
**
** |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
PRASETHA N |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🧪 Exercise Title: EmployeeVerse – The Java HRM System
🧩 Context:
You’re the backend engineer at ByteBucks Inc., a quirky but fast-growing tech startup. Your team wants to build a backend service to manage employees across multiple departments. But this isn’t just any CRUD app.
They want the HR dashboard to show cool string summaries, dynamically update data in memory, and follow clean 3-tier architecture (Model, Service, Controller). You’ve been given a Spring Boot skeleton. Now it’s your job to complete it!
🗃️ Project Structure You Must Follow
🎯 What You'll Learn
@GetMapping,@RequestParamtoString(), string formatting, and manipulation🛠 Instructions
You are not given the full code. Complete each part step-by-step as per hints.
👨🎓 Step 1: Define Your Employee Model
In
model/Employee.java, create a class with the following:Challenge 💡
Use
String.format()to format the salary to 2 decimal places.🧠 Step 2: Create the Service Interface
In
service/EmployeeService.java:🛠 Step 3: Implement the Service
In
service/EmployeeServiceImpl.java:Mini Challenge 💡
Add a method:
Use it in the Controller later.
🌐 Step 4: Build the Controller
In
controller/EmployeeController.java, add endpoints:🧩 Bonus String Puzzles (Integrate in Service or Controller)
-ing(e.g., Engineering, Marketing).📦 Output Examples
/list/total-salary/filter?startsWith=A🧙 Pro Tips (Drop These in Class)
toString()for debug-friendly models."Beta Was this translation helpful? Give feedback.
All reactions