We have thought interesting to split apart this section, since users and roles are usually borderline between the application and Spring Security.
In this recipe, we will install the Spring Security dependencies and update the
User Entity. We will also create an
Authority entity that is based on a custom
Role enum that we created. Finally, we update the
init.sql script to add a set of existing users.
v5.x.x. Then, run a
maven clean installcommand on the
cloudstreetmarket-parentmodule (right-click on the module, go to Run as… | Maven Clean, and then navigate to Run as… | Maven Install). Execute a ...