1

We are trying to use spring security in our application.

IN the below code, How do we configure the URL pattern to say

"intercept all the URLs except the URLs of pattern '/xyz/' " ?

Basically I want the filter to intercept all the URLs,but if an URL contains /xyz/ , it should not intercept it.

     <sec:filter-chain pattern="/**" filters="httpSessionContextFilter,
                                    filter_A,
                                    filter_B,
                                    exceptionTranslationFilter,
                                    authorizationFilter" />
    </sec:filter-chain-map>
2
  • This is spring security 3.1.0 correct ? Commented Aug 1, 2011 at 11:05
  • Yes.It is spirng security 3.1.0 Commented Aug 1, 2011 at 11:16

1 Answer 1

2

Try:

<intercept-url pattern="*/xyz/*" filters="none" />

filters="none" disables the filter chain for the given URL pattern.

Also I'd recommend enabling the spring debug log if you haven't already. So you can see exactly what's going on.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.