目录
Redis连接报错:ERR Client sent AUTH, but no password is set
1、Maven里许多plugins有红色波浪线
setting --->Build,Execution,Deployment --->Build Tools --->Maven
Maven home path、User setting file和Local repository改为自己当时创建的地址
2、图片上传失败
首先创建自己的阿里云oss,yml文件里的都换成自己的,如果什么都对,改一下自己的token,token是有时效性的,需要更新token,也可以在yml文件里修改token的有效期。
3、图片上传成功,前端却不显示
将bucket的权限改为公共读 或者忘记返回Result success(filePath)
4、套餐添加-出现找不到ben
在SetmealServiceImpl类里要接一个接口,即添加implements SetmealService
5、套餐分页查询-page报红
删除page,重新输入,选择com.github包下的,要和vo里的一致。
6、套餐修改update报错-因为少了一些代码
SetmealMapper中,实现修改菜品的接口
/**
* 修改套餐
* @param setmealDTO
*/
void update(SetmealDTO setmealDTO);
SetmealMapper.xml中,写入修改菜品的动态SQL语句
<update id="update">
update setmeal
<set>
<if test="name != null">name=#{name},</if>
<if test="categoryId != null">category_id=#{categoryId},</if>
<if test="price != null">price=#{price},</if>
<if test="image != null">image=#{image},</if>
<if test="description != null">description=#{description},</if>
<if test="status != null">status=#{status},</if>
<if test="updateTime != null">update_time=#{updateTime},</if>
<if test="updateUser != null">update_user=#{updateUser},</if>
</set>
where id=#{id}
</update>
7、Redis连接报错:ERR Client sent AUTH, but no password is set
明明在redis.windows.conf中设置了密码,而且redis还启动了,为什么说没有密码呢:
因为window下启动redis有多种方法,比如:
.\redis-server.exe 这种方法启动不会带上你的 redis.windows.conf配置文件启动,因此报错没有密码。
还有一种启动方式:
.\redis-server.exe .\redis.windows.conf 使用这种方式启动时,会带上配置文件redis.windows.conf ,就不会报没有密码的错误了。
解决方法:
打开cmd,输入redis-server.exe redis.windows.conf
8、微信小程序没有获取用户信息的弹窗
1、右上角详情-->基本信息-->AppId-->修改
2、右上角详情-->本地设置-->调试基础库右边-->版本改为2.22.1