Review
In the previous section, we have focused on the presentation layer and discussed jqGrid. In this section, we will focus on the configuration files, in particular the XML files.
Configuration
Database properties
We'll use MySQL as our application's database. However, it's also possible to use a different database provider. Therefore, to make switching database simpler, we've externalized our database configuration within a properties file.
Application Context
Below is a typical application context file for enabling Spring MVC support.
Spring Data
In conjuction with the
spring.properties file, we have to declare the actual datasource. Notice we're using JPA and Spring Data JPA support.
Next
In the next section, we will build and run the application using Maven, and show how to import the project in Eclipse.
Click here to proceed.
what about orm.xml?
ReplyDelete