Spring Security show home page only after succes login
<p>I would like to show user home page only after succes login.</p>

<p>I mean, when somebody will hit the url for application like "ht'tp://localhost:8081/example", I want to redirect him to "ht'tp://localhost:8081/example/login" and only after loging in, user will see default home page which will be on "url/example" where he can do some actions or logout.</p>

<p>Using example from mkyong <a href="http://www.mkyong.com/spring-security/spring-security-hibernate-annotation-example/" rel="nofollow">http://www.mkyong.com/spring-security/spring-security-hibernate-annotation-example/</a>.</p>

<p>Didn't find answer on stack, maybe someone will help me with this.</p>