The scheduled job for purging old history records for blog entries and comments
·
User maintenance and role assignment
·
Maintenance of categories and subcategories for blog entries
·
Unit testing
·
Setting Up the Sample Application
Let's get the source code and set up the project in STS. Then, we'll set up tc Server and deploy the
SpringBlog application to see it in action. It will be much easier to understand the source code when
seeing how it works side by side with the text.
In the following sections, we will discuss how to set up the project in STS and get the SpringBlog
application up and running. Topics include obtaining the source code, importing the project, setting up
the server, and switching between different RDBMSs and service layer implementations.
To set up the project and run the sample application, you need JDK 6 or newer, SpringSource Tool
Suite (2.8.1 or newer), and an Internet connection available on your development machine. To test the
MySQL backend, a local instance of MySQL database with version 5.1 or newer and a basic knowledge
of managing a MySQL database (for example, creating a user, running a script, and so on) are assumed.
Project Setup
To set up the project, we need to get the source code and import it into STS. There are two ways to
obtain the source code. The first option is to get it from the sample source code for this topic and
extract the file 9781430241071_ch21.zip into your STS workspace. Another option is to check out the
latest source code from the SpringBlog repository on GitHub. The URL for the repository of the
SpringBlog application is https://github.com/prospring3/springblog.
After the source code is available on your development machine, import the project into STS. To
import the project in STS, choose the menu option File Import, and on the Select screen, choose
Existing Projects into Workspace under the General category, as shown in Figure 21-1.
Search WWH :
Custom Search
Previous Page
Spring Framework 3 Topic Index
Next Page
Spring Framework 3 Bookmarks
Home