First, preface
This small project originated from the Preach Intelligence podcast teaching Video, to do this small project, the purpose is to combine the database familiar with the MVC model, the core operation is to make a simple single table query to the database.
Ii. Preparation and construction of the project structure 1. Importing prototypes
Copy JSP page As part of the view of the project.
(Note that when importing someone else's project, it is enough to copy the SRC directory and webcontent, if the other files are copied in easily causing the error of the configuration information)
2. Create a package structure
The first consideration is the domain layer, which creates a package: Cn.itcast.cstm.domain
Then create the data interaction layer: Cn.itcast.cstm.dao
Service Layer: Cn.itcast.cstm.service
Network layer: Cn.itcast.cstm.web.servlet
3. Guide Package
Three, start to write code next is the dream, waiting for the writing code link!!! 1. Create the database and table that belong to the project first
Javaweb Project------Customer Relationship Management System (1)