I am trying to convert xml configuration to java config
My XML configuration like this
<security:global-method-security secured-annotations="enabled" pre-post-annotations="enabled" access-decision-manager-ref="methodAccessDecisionManager">
<security:expression-handler ref="methodExpressionHandler"/>
</security:global-method-security>
I am tried to convert with annotation
@EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true)
But I am not getting how I can convert and use with global security method access-decision-manager-ref="methodAccessDecisionManager"
and <security:expression-handler ref="methodExpressionHandler"/>