摘要:
业务层实现: 1.IndexImgService接口: public interface IndexImgService { public ResultVO listIndexImgs(); } 2.IndexImgServiceImpl实现类: @Service public class Inde 阅读全文
摘要:
数据库操作实现: 1.分析数据表结构 查询status=1且按照seq进行排序 2.添加测试数据 3.编写sql语句 SELECT img_id,img_url,img_bg_color,prod_id,category_id,index_type,seq,STATUS,create_time,up 阅读全文
摘要:
前端但凡访问受限资源,都必须携带token发送请求。token可以通过请求行(params)、请求头(header)以及请求体(data)传递,但是习惯性使用header传递。 1.axios通过请求头传值 axios({ method:"get", url:baseUrl+"shopcart/li 阅读全文