1、实体类

2、IUserInfoMapper(Dao)层 接口

3、IUserInfoMapperImpl实现接口

4、IUserInfoService(Service)层接口创建方法

5、IUserInfoServiceImpl实现Service层接口、植入DAO层对象

6、编写applictionContext.xml文件内context:component-scan

7、测试类(Test)编写

8、结果

原文:https://www.cnblogs.com/haohanwuyin/p/11772059.html