What is the difference between annotation-driven and mvc:annotation-driven?



  • I'm setting up a context. DispatcherServlet..(mvc-dis-servlet.xml)♪ And I've got a tag on the annotations. annotation-drivenand he's making a mistake.

    Changed. mvc:annotation-driven And the idea was downloaded.

    What's the difference between these games? The Hague includes all components marked Spring-a annotations, such as: @Component @Repository @Service @Controller @Bean and...



  • https://stackoverflow.com/a/3978283/5506820 ♪ context:annotation-driven includes such annotations as @Bean@Autowired etc., i.e. those needed for the basic ecosystem spring. mvc:annotation-driven includes@RequestMapping@RestController etc., i.e. those needed to work spring-mvc carcas.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2