Announcement Announcement Module
Collapse
No announcement yet.
Spring 2.5 MVC configuration with Spring Annotations Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring 2.5 MVC configuration with Spring Annotations

    I am using Spring 2.5.6 version in my ongoing project and wanted to know that, is it good design if I use annotation based Spring Web MVC and load Service/DAO layer using WebApplicationContextUtils.getRequiredWebApplicati onContext()?

    Thanks,

  • #2
    No, that wouldn't be a good practice. One good reason for using Spring MVC is it enables you to use dependency injection top-to-bottom. With annotations use @Autowired on a constructor to inject the DAO.

    http://www.infoq.com/articles/spring-2.5-part-1
    http://www.infoq.com/articles/spring-2.5-ii-spring-mvc

    Comment

    Working...
    X