November 2017
Intermediate to advanced
542 pages
14h 24m
English
org.springframework.security.web.bind.annotation.AuthenticationPrincipal has been deprecated in favor of org.springframework.security.core.annotation.AuthenticationPrincipal. For example:
import org.springframework.security.web.bind.annotation.AuthenticationPrincipal;// ...@RequestMapping("/messages/inbox")public ModelAndView findMessagesForUser(@AuthenticationPrincipal CustomUser customUser) { // .. find messages for this user and return them ...}
This should be replaced with:
import org.springframework.security.core.annotation.AuthenticationPrincipal;// ...@RequestMapping("/messages/inbox")public ModelAndView findMessagesForUser(@AuthenticationPrincipal CustomUser customUser) { // .. find messages for this user ...Read now
Unlock full access