文档
测试
POST
/checkite/findAll

失败返回

参数名
类型
描述
必填
flag
查询失败的标记
必填
message
查询失败的消息
必填

成功返回

参数名
类型
描述
必填
flag
查询成功的标记
必填
message
查询成功的信息
必填

说明/示例

1. 在checkitem.html页面,找到veu.create(),使用axios发送请求(/checkitem/findAll.do),响应后后返回的结果 2. Result, 首先判断 是否成功,result.flag,成功,绑定数据this.dataList,失败则提示 3. 创建CheckItemController, 添加注解(@RestController, @RequestMapping), 添加findAll方法,返回Result 4. 调用CheckItemService, 订阅checkItemService服务(@Reference), 调用service,得到list<checkItem> 结果集,把list封装到result再返回 5. health_interface创建CheckItemService, 添加findAll方法 6. health_service创建checkItemServiceImpl对方法实现,调用@Autowired CheckItemDao,返回List结果即可 7. health_dao创建CheckItemDao,提供findAll, 创建CheckItemDao.xml映射文件,提供findAll(select * from t_checkitem)