Configuring the 3T web application
The web application configuration requires several new files that will need to be added to the WEB-INF
directory, as shown in the following screenshot. Create these files now:
Note that the beans.xml
file was created by NetBeans but is not required for our configuration. Let's now look at each of these files in detail.
The Spring applicationContext.xml file
The applicationContext.xml
file configures the Spring container and is very similar to the testingContext.xml
file we created in Chapter 5, Testing the DAO Layer with Spring and JUnit. The contents of the file are as follows:
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation=" http://www.springframework...