문제

I am new to spring security. I am building one application by using spring mvc 3 and hibernate. In My application user can access all the pages without logging in. But if he is making any transaction, he will be asked for Sign in. So can anyone help me to configure spring security only for some (transactional) requests.

It is something like online shopping cart.

도움이 되었습니까?

해결책

Specific URL authorisation occurs at role or authority level.

Please review this section of the spring documentation:

http://docs.spring.io/spring-security/site/docs/3.2.3.RELEASE/reference/htmlsingle/#authorize-requests

For example on how it is done well please review this tutorial:

http://spring.io/guides/gs/securing-web/

and

http://spring.io/guides/tutorials/web/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top