What is Spring Security`secured-annotations="enabled"` analogue for Java Config? -


consider use java config spring security:

@configuration @enablewebsecurity public class securityconfig extends websecurityconfigureradapter { ... } 

how can analogue of xml configuration

<global-method-security secured-annotations="enabled" />?

you can use @enableglobalmethodsecurity annotation configure , set securedenabled annotation attribute true.

@enableglobalmethodsecurity

enables spring security global method security similar <global-method-security> xml support.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -