diff options
| author | Kamal Wickramanayake <kamal@inbox.lk> | 2026-06-20 22:02:32 +0530 |
|---|---|---|
| committer | Kamal Wickramanayake <kamal@inbox.lk> | 2026-06-20 22:02:32 +0530 |
| commit | 69b18c1fe1d7d876c86de850b716de396877ad9d (patch) | |
| tree | 832330933dccb4848ba0ff89a9f4f5953b3da3e7 /spring-boot/10-role-based-security/README | |
| parent | 59c2d3502259b338c36991ced8dc25d8dc9713b1 (diff) | |
A list of users are shown. Added error pages.
Diffstat (limited to 'spring-boot/10-role-based-security/README')
| -rw-r--r-- | spring-boot/10-role-based-security/README | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/spring-boot/10-role-based-security/README b/spring-boot/10-role-based-security/README index 9a79809..95aaa8a 100644 --- a/spring-boot/10-role-based-security/README +++ b/spring-boot/10-role-based-security/README @@ -17,4 +17,13 @@ How is role based security enabled? 3. Controllers and services can be annotated with @PreAuthorize(). Example: ContractController.java -4. In Thymeleaf templates, sec:authorize() works with role names. Example: layout/main.html
\ No newline at end of file +4. In Thymeleaf templates, sec:authorize() works with role names. Example: layout/main.html + + +What other modifications are found in this sample app? + +1. List of users are shown in a table. UserRepository extends JPARepository class that supports paging and sorting. + +2. The edit link for each user can be used to show the update form. + +3. Error pages have been added. See templates/error.html and templates/error/403.html .
\ No newline at end of file |
