© Adam L. Davis 2020
A. L. DavisSpring Quick Reference Guidehttps://doi.org/10.1007/978-1-4842-6144-6_4

4. XML Configuration

Adam L. Davis1 
(1)
Oviedo, FL, USA
 

Spring configuration can be done through XML. In fact, this was the only way to configure Spring beans before Java configuration was introduced. We will cover some Spring XML for reference material and for use in legacy applications.

XML

The XML standard is composed of the basic syntax, namespaces, and XML schema definitions. The syntax, in a nutshell, is based around Elements, names, typically lowercase, surrounded by greater-than and less-than symbols (like <bean>); attributes which can be set within those symbols and use double quotes (like <bean name=“myBean”); and elements can be nested, ...

Get Spring Quick Reference Guide: A Pocket Handbook for Spring Framework, Spring Boot, and More now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.