There is a typical configuration example in reference:
accessDecisionManager property is required there.Code:<bean id="filterSecurityInterceptor" class="org.springframework.security.web.access.intercept.FilterSecurityInterceptor"> <property name="authenticationManager" ref="authenticationManager"/> <property name="accessDecisionManager" ref="accessDecisionManager"/> <property name="securityMetadataSource"> <security:filter-security-metadata-source> <security:intercept-url pattern="/secure/super/**" access="ROLE_WE_DONT_HAVE"/> <security:intercept-url pattern="/secure/**" access="ROLE_SUPERVISOR,ROLE_TELLER"/> </security:filter-security-metadata-source> </property> </bean>
But I don't need custom accessDecisionManager implementation. So how to set default accessDecisionManager?
I only need to sequre URLs by role and expression based access control to methods, such as:
Code:@PreAuthorize("hasRole('ROLE_USER')") public void create(Contact contact);


Reply With Quote

