Home  >  Forum  >  Spring
Post New Query

Difference between Spring @EnableWebSecurity and @EnableWebMvcSecurity


joined on
May 13,2015
Asked on May 13,2015
What is difference  between  @EnableWebSecurity and @EnableWebMvcSecurity in spring security?
joined on
October 10,2013
Replied on May 20,2015

1. @EnableWebSecurity and @EnableWebMvcSecurity both has been introduced in Spring 3.2 and is applied in configuration class. 

2. @EnableWebSecurity annotation enables spring security configuration defined in WebSecurityConfigurer. 

3. @EnableWebMvcSecurity provides spring security configuration for spring MVC. 

4. Spring 4 has deprecated @EnableWebMvcSecurity.

5. The functionality of @EnableWebMvcSecurity can be achieved by @EnableWebSecurity.

Write Answer








Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us