config/src/main/java/org/springframework/security/config/annotation/method/configuration/GlobalMethodSecurityConfiguration.java
@Bean
	public PreInvocationAuthorizationAdvice preInvocationAuthorizationAdvice() {
		ExpressionBasedPreInvocationAdvice preInvocationAdvice = new ExpressionBasedPreInvocationAdvice();
		preInvocationAdvice.setExpressionHandler(getExpressionHandler());
		return preInvocationAdvice;
	}
@Bean
	public PreInvocationAuthorizationAdvice preInvocationAuthorizationAdvice() {
		ExpressionBasedPreInvocationAdvice preInvocationAdvice = new ExpressionBasedPreInvocationAdvice();
		preInvocationAdvice.setExpressionHandler(getExpressionHandler());
		return preInvocationAdvice;
	}
@ Bean public PreInvocationAuthorizationAdvice preInvocationAuthorizationAdvice ( ) { ExpressionBasedPreInvocationAdvice preInvocationAdvice = new ExpressionBasedPreInvocationAdvice ( ) ; preInvocationAdvice . setExpressionHandler ( getExpressionHandler ( ) ) ; return preInvocationAdvice ; }
Creates the {@link PreInvocationAuthorizationAdvice} to be used. The default is
{@link ExpressionBasedPreInvocationAdvice}.

@return the {@link PreInvocationAuthorizationAdvice}
Creates the { @link PreInvocationAuthorizationAdvice } to be used . The default is { @link ExpressionBasedPreInvocationAdvice } .