38. Spring Data & Spring Security Configuration
Prev | Part VII. Spring Data Integration | Next

## 38. Spring Data & Spring Security Configuration

To use this support, provide a bean of type `SecurityEvaluationContextExtension`. In Java Configuration, this would look like:

    @Bean
    public SecurityEvaluationContextExtension securityEvaluationContextExtension() {
    	return new SecurityEvaluationContextExtension();
    }

In XML Configuration, this would look like:

    <bean class="org.springframework.security.data.repository.query.SecurityEvaluationContextExtension"/>

Prev | Up | Next
Part VII. Spring Data Integration | Home | 39. Security Expressions within @Query