Configuring Spring Security for your application
Roo supports configuring Spring Security for your application via security
setup
command. In this recipe, we'll look at the security related configurations added to your application by Roo when you execute the security
setup
command. In the next recipe, Using Spring Security with Apache Directory Server, we'll look at how we can extend the Spring Security configuration to use Apache Directory
Server
for addressing security requirements of a Roo-generated web application and how to incorporate method-level security.
Getting ready
Create a sub-directory ch06-security
inside the C:\roo-cookbook
directory.
Copy the ch06_web_app_security.roo
script into the ch06-security
directory.
Execute the ch06_web_app_security.roo
script, which creates the flightapp-web
Roo project, sets up Hibernate as persistence provider, configures MySQL as the database for the application, creates Flight
, FlightDescription
, and Booking
JPA entities, defines a many-to-one...