尚硅谷《商品甄选》项目所遇问题

1.Knife4j出错(已解决)

在p11中未更改启动类扫描范围时有效,可在更改启动类范围之后未出现登录接口。

原因是我的spzx-manager模块的包误打为com.atguigu.sqzx.manager,因此
未扫描到。更改为com.atguigu.spzx.manager后正确运行。

2.mock改为自己api时前端不显示(已解决)

在p13中按照老师的做法将两处改为自己的api时,启动前端项目时出现白屏,并且显示network error。

原因是localstorage已经存储了token,需要自己删除token。

3.搜索角色管理时,清空功能未实现(已解决)

由于本人不会前端,仅对前端有初步的认知,因此无法完成老师留的作业,自己完成前端对于表单清空的实现。

已实现。在分类品牌中,出现了可用的重置,因此复制过去后,改了一部分使清空功能可用。

4.echarts图表点击叉号使数据清空可数据未恢复(半解决)

在p74中,订单管理的前端整合中,使用搜索后,点击叉号并未使数据恢复,而是显示搜索过后的内容。

鉴于浅薄的知识,我在此做了一个半实现,在createTimes为null时也能搜索,具体代码如下:

if (createTimes.value != null){
        if (createTimes.value.length == 2) {
            searchObj.value.createTimeBegin = createTimes.value[0]
            searchObj.value.createTimeEnd = createTimes.value[1]
    }
    } else {
        searchObj.value.createTimeBegin = ''
        searchObj.value.createTimeEnd = ''
    }

因此在清空搜索条件之后,能够再次点击搜索恢复原有的数据。

5.p80中引入alipay依赖无法引入,显示找不到依赖项(已解决)

在之后子模块引入依赖时,alipay依赖自动引入了。

6.p82中测试接口时,报Access denied for user ‘root’@‘192.168.130.1’ (using password: YES)的错误(已解决)

在测试接口时,前端并未显示出数据,并且报错,状态码为500。查看服务器之后发现,idea报

Access denied for user 'root'@'192.168.130.1' (using password: YES)

的错误。

原因为,在复制老师的课件时,应将ip地址改为自己虚拟机的ip地址,并且将密码和用户名改为自己的。

假如大家还有什么问题可以私信我,在我力所能及地范围内我会尽力解答。
  • 11
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
gulimall_pms 商品 drop table if exists pms_attr; drop table if exists pms_attr_attrgroup_relation; drop table if exists pms_attr_group; drop table if exists pms_brand; drop table if exists pms_category; drop table if exists pms_category_brand_relation; drop table if exists pms_comment_replay; drop table if exists pms_product_attr_value; drop table if exists pms_sku_images; drop table if exists pms_sku_info; drop table if exists pms_sku_sale_attr_value; drop table if exists pms_spu_comment; drop table if exists pms_spu_images; drop table if exists pms_spu_info; drop table if exists pms_spu_info_desc; /*==============================================================*/ /* Table: pms_attr */ /*==============================================================*/ create table pms_attr ( attr_id bigint not null auto_increment comment '属性id', attr_name char(30) comment '属性名', search_type tinyint comment '是否需要检索[0-不需要,1-需要]', icon varchar(255) comment '属性图标', value_select char(255) comment '可选值列表[用逗号分隔]', attr_type tinyint comment '属性类型[0-销售属性,1-基本属性,2-既是销售属性又是基本属性]', enable bigint comment '启用状态[0 - 禁用,1 - 启用]', catelog_id bigint comment '所属分类', show_desc tinyint comment '快速展示【是否展示在介绍上;0-否 1-是】,在sku中仍然可以调整', primary key (attr_id) ); alter table pms_attr comment '商品属性'; /*==============================================================*/ /* Table: pms_attr_attrgroup_relation */ /*==============================================================*/ create table pms_attr_attrgroup_relation ( id bigint not null auto_increment comment 'id', attr_id bigint comment '属性id', attr_group_id bigint comment '属性分组id', attr_sort int comment '属性组内排序', primary key (id) ); alter table pms_attr_attrgroup_relation comment '属性&

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

阳光菇投手

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值