Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.41 KB

README.md

File metadata and controls

44 lines (33 loc) · 1.41 KB

Week 5

Essentials

  • Part -1 : Spring Security Introduction
  • Part -2 : User Authentication and Authorization
  • Part -3 : Spring Data JPA
  • Part -4 : Database Integration with Spring

Solution


Part - 1

  1. Set up your Spring Boot application with Spring Security dependencies.
  2. Explore the lab instructions for detailed configuration steps.

Part - 2

  1. Configure user authentication using a chosen method (e.g., in-memory users, database authentication).
  2. Implement authorization rules to restrict access to specific controllers or methods based on user roles.
  3. Test user login functionality and verify that authorization rules are enforced appropriately.

Part - 3

  1. Configure Spring Data JPA in your application, including entity classes and JPA provider.
  2. Create JPA repositories for your data model entities (e.g., User, Product).
  3. Utilize JPA repository methods to perform CRUD operations on your data within your application logic.

Part - 4

  1. Configure your Spring Boot application to connect to the chosen database (e.g., MySQL, PostgreSQL).
  2. Ensure proper database schema creation (tables) aligned with your data model entities.
  3. Test data persistence by creating, reading, updating, and deleting data using JPA repository methods.