Learn

Congratulations! You’ve completed a CRUD application end-to-end with Spring Boot and Spring Data JPA. Your application can:

  • Create plants in the database by making POST requests and the .save method of CrudRepository
  • Read plants in the database by making GET requests and the .findAll() and .findById() methods of CrudRepository
  • Update plants in the database by using getters and setters to check and modify fields in the Plant entity, and the .save method of CrudRepository
  • Delete plants in the database by using the .delete method of the CrudRepository.

With this knowledge, you should be able to create any CRUD application with Spring Boot for any data model. So lace your boots and spring into action!

Instructions

Play around with your Plants application! Try using curl to stress test all of your endpoints and ensure you haven’t introduced any bugs unintentionally.

If it makes it easier to read, you can “pipe” the output of curl into json_pp like below:

curl localhost:4001/plants | json_pp

Sign up to start coding

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.
Already have an account?