1. security 預設流程圖(基于session)

CustomAccessDecisionManager implements AccessDecisionManager
CustomAccessDeniedHandler implements AccessDeniedHandler
CustomAuthenticationDetailsSource implements AuthenticationDetailsSource<HttpServletRequest, CustomAuthDetails>
CustomAuthenticationEntryPoint implements AuthenticationEntryPoint
CustomFilterInvocationSecurityMetadataSource implements FilterInvocationSecurityMetadataSource
2.基于jwt security的流程認證
在上述流程基礎上添加jwttoken的攔截器 添加到登入認證之前 擷取登入時候的Authorization解析出其中的使用者名 檢視token中的過期時間認證通過則登入(token儲存到redis中) 沒有token則直接進行security的登入認證