1. Modify the xml file resources / ibatis / sqlmap-config-updsdb.xml // specify the new ibatis, that is, 2
2. New resources / ibatis / TblPpdataAt.xml // ibatis new xml file
3. The modified example of the data layer DAO resources / spring / db / updsdb.xml //, i.e. 4
4. New cn.zhanghao90.nmg.service.dao.TblPpdataAtDao // new data access DAO
5. New objects cn.zhanghao90.nmg.service.entity.TblPpdataAt // new field, the data entity
Service Layer:
6. New resources / spring / bo / ppdata.xml // new spring xml file services layer, service layer to instantiate an object, that is, 8
7. cn.zhanghao90.nmg.service.bo.PpdataAtBo // add the new service layer interface
8. cn.zhanghao90.nmg.service.bo.impl.PpdataAtBoImpl // add the new service layer implementation class
Control layer:
9. modify resources / struts.xml // specified new control layer struts xml file, i.e. 10
10. New resources / struts / ppdata.xml // new control layer struts xml file
11. The modified resources / spring / action / action.xml // instantiate layer control action, i.e. 12
12. The control layer cn.zhanghao90.nmg.service.action.PpdataAction // add the new action
access permission:
13. Modify cn.zhanghao90.nmg.service.interceptor.LoginInterceptor // modify access control
Original: Large column to add interfaces in Spring Struts2 iBatis integration project