13.07.2015 Views

Spring JavaConfig Reference Guide - Spring Web Services - Parent ...

Spring JavaConfig Reference Guide - Spring Web Services - Parent ...

Spring JavaConfig Reference Guide - Spring Web Services - Parent ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 7. Developing web applications with<strong>JavaConfig</strong><strong>JavaConfig</strong> provides the <strong>JavaConfig</strong><strong>Web</strong>ApplicationContext class for bootstrapping your configurations intothe web tier.7.1. <strong>JavaConfig</strong><strong>Web</strong>ApplicationContext<strong>JavaConfig</strong><strong>Web</strong>ApplicationContext allows for seamlessly bootstrapping <strong>JavaConfig</strong> bean definitions withinyour servlet container's web.xml. This process requires no <strong>Spring</strong> XML bean definitions whatsoever:org.springframework.web.context.ContextLoaderListenercontextClassorg.springframework.config.java.context.<strong>JavaConfig</strong><strong>Web</strong>ApplicationContextcontextConfigLocationexample.RootApplicationConfigtestorg.springframework.web.servlet.DispatcherServletcontextClassorg.springframework.config.java.context.<strong>JavaConfig</strong><strong>Web</strong>ApplicationContextcontextConfigLocationexample.web.<strong>Web</strong>BeansConfigFor basic information regarding initialization parameters to DispatcherServlet and use ofContextLoaderListener, see Chapter 13. <strong>Web</strong> MVC framework in the Core <strong>Spring</strong> Frameworkdocumentation.<strong>Spring</strong> <strong>JavaConfig</strong> 24

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!