Structure

Create following packages under src/main/java folder.

1) com.demo.spring – This package will contain Spring Controller classes for Phone application.

2) com.demo.spring.dao – This is the DAO layer of Phone application. It consists of PhoneDAO interface and its corresponding implementation class. The DAO layer will use Hibernate API to interact with database.

3) com.demo.spring.model – This package will contain form object for Phone application. This will be a simple POJO class with different attributes such as id, name, review etc.

4) com.demo.spring.service – This package will contain code for service layer for our Phone application. The service layer will have one PhoneService interface and its corresponding implementation class

results matching ""

    No results matching ""