1.//开始调试只有俩个数据是因为deletestatus为0表示未删除,而自动生成的测试数据只有俩个为0;
src/main/java/com/zhiqiang/mall/product/service/impl/PmsProductServiceImpl.java
2.差点遗忘管理员登录后要在表中也更新登录时间
src/main/java/com/zhiqiang/mall/user/service/impl/UmsAdminServiceImpl.java
3.Mybatis中updateByPrimaryKeySelective和updateByPrimaryKey的用法区别![在这里插入图片描述](https://img-blog.csdnimg.cn/20200502121429747.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM4MjM5ODE3,size_16,color_FFFFFF,t_70)
4.Options请求出现的情况有两种:
1、获取后台服务器支持的HTTP的通信方式
2、对跨域请求进行preflight request(预检请求)。
5.Error creating bean with name ’xxxMapper’ defined in file因为配置文件中没有配置
mybatis.mapper-locations=classpath:mapper/*Mapper.xml
而出现Could not find a parent resultmap with id 'xxx.BaseResultMap’是因为上面mapper没后写入配置文件,导致
mybatis.mapper-locations=classpath*:dao/*.xml,classpath:mapper/*Mapper.xml
dao的xml找不到父对象