Skip to content

Instantly share code, notes, and snippets.

@fmendozaro
Created January 6, 2021 16:59
Show Gist options
  • Save fmendozaro/d26eb5e7f8769413676507f05561d877 to your computer and use it in GitHub Desktop.
Save fmendozaro/d26eb5e7f8769413676507f05561d877 to your computer and use it in GitHub Desktop.

Spring Boot Assessment

Build a spring boot app that has the Create and Read functionality for a

  • Build an Order model with at least 3 fields:
    • id
    • order number
    • email
  • Once the table is created in your database, insert a couple of records manually.
  • Build a Repository for Orders named OrderRepository
  • Build a controller that has methods that can:
    • respond to a get mapping url that matches /order/{id} and renders a view with the order information
    • respond to a post mapping url that matches /order and gets all parameters from the request and saves a new Order into the database.
  • Build a view that:
    • Is named show.html and displays all the information of an order
    • Is named create.html and displays a form to create a new order, and the form is able to submit the information to the controller in order to save it into the database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment