I have the following interface method on which I am applying @PreAuthorize :
@PreAuthoriz
@PreAuthorize(\"doSomething(#user.id)\") void something(User user,
You can check LazyParamAwareEvaluationContext,inside loadArgsAsVariables() method, version 3.1.0.
LazyParamAwareEvaluationContext
loadArgsAsVariables()
The same key for different Entity, because of implementing interface.