Home  >  Forum  >  Spring
Post New Query

Difference between mvc:annotation-driven and context:annotation-config in Spring



Asked on August 22, 2014
What's the difference between <mvc:annotation-driven /> and <context:annotation-config /> in Spring?


Replied on August 25, 2014
<mvc:annotation-driven /> : Supports MVC annotations like @Controller, @RequestMapping, @ResponseBody etc.

<context:annotation-config /> : Supports General spring annotations like @Autowired, @Required  etc. 


Write Answer




©2019 concretepage.com | Privacy Policy | Contact Us