Author | Message |
---|---|
jbaber
Posts: 14
|
Posted 01:06 Mar 02, 2015 |
Professor, In csns User class you have few properties like --> public boolean isFaculty() but you don't have any boolean 'faculty' declared. When using pre authorize annotation like -->@PreAuthorize("principal.faculty"), why won't there be any error? Field or property 'advisor' cannot be found on object of type 'org.springframework.security.core.userdetails.User' Thank you |
cysun
Posts: 2935
|
Posted 08:19 Mar 02, 2015 |
Bean properties are defined by getters/setters, not fields. |