Mastering Spring 5.0
上QQ阅读APP看书,第一时间看更新

The XML configuration for the application context

In the previous example, we used a Spring Java configuration to launch an application context. Spring also supports XML configuration.

The following example shows how to launch an application context with an XML configuration. This will have two steps:

  • Defining the XML Spring configuration
  • Launching the application context with the XML configuration