權限控制時報
Access is denied (user is not anonymous); delegating to AccessDeniedHandler
或者
AccessDeniedException : Access is denied
那么請確保最終傳入
方法為:
UsernamePasswordAuthenticationToken(Object principal, Object credentials, Collection<? extends GrantedAuthority> authorities)
authorities 值為以下格式