做ssh框架整合的時(shí)候,出現(xiàn)了這個(gè)錯(cuò)誤,網(wǎng)上一查了N久也沒(méi)發(fā)現(xiàn)答案
org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext
瞎忙活了三四個(gè)小時(shí)后 嘗試著激昂web.xml里的各個(gè)filter改變位置 終于泥啊馬的成功啦!!
方法是:把struct2的filter放在了最后面. 具體原因不詳,大家遇到類(lèi)似的情況試試激昂filter的順序改變下.
org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext
瞎忙活了三四個(gè)小時(shí)后 嘗試著激昂web.xml里的各個(gè)filter改變位置 終于泥啊馬的成功啦!!
方法是:把struct2的filter放在了最后面. 具體原因不詳,大家遇到類(lèi)似的情況試試激昂filter的順序改變下.