Monday, 22 August 2016

Resource files not loading after adding Spring Security and 2 times login issue solution

referred a lot in stack-overflow, other sites.. didn't found a solution for this.. already spend 8-10 hrs, in this issue.. 

progress i made:

* when i changed the working copy, the old issue 2 time login issue came again, referred http://www.baeldung.com/spring_redirect_after_login
and created LoginSuccessHandler and resolved that issue.

* but this css issue taking hours..

Finally, decided to drop this and i was reverting the things i did..

after reverting also, the css issue was not resolving.. 

then only i understand it is not spring security issue, it the controller issue..

while updating, i added ** in the mapping.. it blocked the css..


@RequestMapping(method = { RequestMethod.POST, RequestMethod.GET }, value = {

"/**", "/login**" })

spend alot of time for this.. Finally resolved..

No comments:

Post a Comment