Database Reference
In-Depth Information
Figure 11-6. The Spring Data Neo4j sample application home page
Spring Application Configuration
The Spring application configuration can be completed in one of two ways: (1) using a XML configuration or (2) by
using a Java-based configuration. In this section, I will review the XML configuration used for the sample application
and briefly cover the important settings.
First, each XML configuration will contain schema references required for the application and will depend
upon your application. The references have been removed in Listing 11-15, but they can be reviewed by opening the
application-context.xml file located in WebContent/WEB-INF directory of your project.
Listing 11-15. The applicationContext.xml Configuration File
<?xml version="1.0" encoding="UTF-8"?>
...bean references omitted for brevity...
<context:annotation-config/>
<context:spring-configured/>
<context:component-scan base-package="com.practicalneo4j.graphstory.controller"/>
<context:component-scan base-package="com.practicalneo4j.graphstory.service"/>
<mvc:annotation-driven/>
<!-- static web resources -->
<mvc:resources mapping="/resources/**" location="/resources/" />
 
Search WWH ::




Custom Search