Creating the Spring containers

The creation of Spring containers varies among the four types of implementation of SMP presented in the technical requirements, since each type has its own different set of libraries to be injected into the container. Here are the different SMP implementations.

Implementation A – using a Spring JDBC plugin

The first container to be created is the JDBC container, which highlights the driver manager and the JDBC support classes. Since the book will use the XML type of ApplicationContext configuration, the following is a bean, which contains the usual database properties, namely the database URI, username, password and the driver class.

jdbc.xml

The main and first content of this ApplicationContext container must be the ...

Get Spring MVC Blueprints now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.