Header Ad

Saturday, December 28, 2013

Property 'defaultTargetUrl' threw exception; nested exception is java.lang.IllegalArgumentException: defaultTarget must start with '/' or with 'http(s)'




This is happened to be spring configuration related issue.


Make sure spring-security.xml is correct in all ways.
I found reason behind is my default-target-url was incorrect.
It was without / i.e. default-target-url="test" it should be default-target-url="/test".

Help more people:- Share this link, or comment if you have any suggestion.

No comments:

Post a Comment