spring http-basic

may i know can we specify url for http-basic so that only authenticate if go to particular page? example login.jsp ? i do not want to use form login.


The Spring approach:

    <security:intercept-url method="POST" pattern="/mypage.jsp" access="ROLE_USER" />

As you see, at the intercept-url element you can define the resources under access control. It has an attribute pattern where you can define the url pattern (admiting wildcards) of such resources.

Leave a Reply

Your email address will not be published. Required fields are marked *