guns使用注意問題
1,創建的表必須有注釋,這樣自動生成代碼有標題; 2,必須先構建好結構,后期修改主菜單會產生異常的結構影響; 3,修改菜單編號容易產生異常問題; 4,如果沒有id,不會自動生成增刪改按鈕; 5,如果完全沒有數據,不會自動生成增刪改按鈕; 6,需要修正static/modular/system/user/user.js中的field,不能用駝峰方式,需要與JSON中的一致; 7,WEB-INF/view/common/_container.html:51 界面中text-overflow:ellipsis;表示表格中內容過寬就用省略號表示; 8,fa-user可以顯示小人圖標,參考http://fontawesome.dashgame.com/查看其它圖標; 分頁實現方式: 1,static/modular/system/user/user.js 中進行分頁方式的設置; 2,修改com.stylefeng.guns.modular.system.controller.UserController中的list方法,使用分頁方法; 3,修改service接口:com.stylefeng.guns.modular.system.service.IUserService,添加分頁方法; 4,進行service接口實現:com.stylefeng.guns.modular.system.service.impl.UserServiceImpl,進行分頁方法實現; 5,在dao中添加分頁方法:com.stylefeng.guns.modular.system.dao.UserMapper 6,在xml中添加分頁方法的實現:com/stylefeng/guns/modular/system/dao/mapping/UserMapper.xml 7,com.stylefeng.guns.modular.system.controller.UserController中需要進行Wrapper對象的使用; 8,構建wrapper對象;com.stylefeng.guns.modular.system.warpper.UserWrapper