Using Enums with Rest Controllers in Java
Coders Campus Coders Campus
26.3K subscribers
6,047 views
102

 Published On Mar 7, 2022

In this lesson we will make use of a "best practice" with respect to using Enums when we a static list of values that will be used in our application.

Enums are perfect to use when you don't have a bunch of data that has relationships in the code base. A perfect example of this would be a list of countries.

I think of enums as a replacement for storing data in our DB and instead, store it in our RAM. Again, this is perfect when the data doesn't change much, nor has any real relationships with other data.

Other Important Links:
---------------------------
Check out our Bootcamp: https://www.coderscampus.com/bootcamp
Assignment Submission App Code: https://github.com/tp02ga/AssignmentS...
Subscribe to the Channel: https://bit.ly/3lKjxp0

#react #code #learntocode #springboot #bootstrap

show more

Share/Embed