Spring Framework assignment_1
I hope these assignments will help you gain some practical knowledge.
Instructions :
- Use maven Quickstart project.
- Use MySQL or H2 database.
- Use JDBCTemplate for 3rd assignment.
- Push your code into GitHub.
- Share GitHub link in Instagram.(@java_springboot_microservices).
Assignment-1
Create an application to display the details of the Movie on the console.
A Model class “Movie” has the below properties.
Get Spring Techie’s stories in your inbox
Join Medium for free to get updates from this writer.
movield String E.g: M001.
movieName String E.g: The Firm.
movieActor String E.g: Tom Cruise.
Create a spring xml configuration file to create a bean entry for the Movie object with some sample property values.
=============================================================== Assignment-2:
Repeat the assignment 1, with annotations for the configuration, instead of the xml. Also, add the init method, destroy method. Implement these methods with the logic to show the current system date and time.
===============================================================
Assignment -3
Create a Spring application that maintains a list of 10 student objects with details like studentld, studentName, studentAddress in a database table.
It also has methods as below:
→ getAllDetails()-> That displays all the details of all 10 students.
→ getDetails(studentld) -> That displays the details of a particular student by taking studentld as an input.
→ addStudent(Student a) →That inserts student object data into table.→ deleteStudent(int studentld) → this delete student object .
→ updateStudent(Student a) → This will update the student object.
Note : Please refer my blogs and Instagram post for any queries.
================= Keep Learning & Keep practising =================







