Reformat Code
add @PreauthorizeRoles and @PreAuthorizeIf and remove @Authentication
Add PreauthorizeRoles and PreauthorizeFunc Annotations
Add List<String> roles parameter, possibly should be removed and get it from the HttpSession variable.
Add List<String> roles parameter, possibly should be removed and get it from the HttpSession variable.
Save role instead just userId
Check for user role instead userId
replace user by List<String> roles
- Change Scanner<_Controller, Object>() to Scanner<_Controller>()
- Change ApplicationContext.component(scanner) to ApplicationContext.addComponents(new Scanner<*>().scan())
- Change etaDataHelper<ModelAttribute>().getMirrorValues(obj) to MetaDataHelper<ModelAttribute, MethodMirror>().from(obj)
- Replace Authentication by PreAuthorizeRoles
- Remove _findStartPath and use AnnotationScanner instead
replace user by List<String> roles