常见异常备忘

 

1. jQuery上传插件Uploadify出现Http Error 302错误解决

http://fanshuyao.iteye.com/blog/1751684

 

 

2.   intllij idea卡死,强制重启后报错:java.lang.AssertionError:upexpected content storage modification

参考: http://blog.youkuaiyun.com/phantomes/article/details/42002495

 3. Mybatis的if test字符串比较问题

<if test="isExpired=='Y'">
and msg.expire_time &lt; now()

</if>

会报NumberFormatException,这样就可以了。

<if test="isExpired=='Y'.toString()">
and msg.expire_time &lt; now()
</if>

 参考: http://blog.youkuaiyun.com/dchjmichael/article/details/8860039 

 

 4. mysql错误:Column 'id' in field list is ambiguous的解决方法

ERROR 1052 (23000): Column 'id' in field list is ambiguous

列'ID'在字段列表中重复,其实就是两张表有相同的字段,但是使用时表字段的名称前没有加表名,导致指代不明

SELECT student.name, student.student_id, score.score FROM student INNER JOIN score ONstudent.student_id = score.student_id WHERE student.name='mio';
+------+------------+-------+
| name | student_id | score |
+------+------------+-------+
| mio  |          1 |    99 |
| mio  |          1 |    77 |
| mio  |          1 |    88 |
| mio  |          1 |    99 |
+------+------------+-------+
4 rows in set (0.00 sec)

 

 

 5.  ueditor编辑文章时候,复制粘贴内容,原来的图片不能显示

参考: http://blog.youkuaiyun.com/wang_quan_li/article/details/25289147?utm_source=tuicool&utm_medium=referral

百度UEditor编辑器如何关闭抓取远程图片功能  http://www.jb51.net/article/61691.htm

远程图片抓取功能  源码中位置可以搜索 UE.plugins['catchremoteimage']  这个内容在ueditor.config.js中是有明确配置(catchRemoteImageEnable)的,默认是开启的状态,如果不想用这个功能,就可以关闭掉,那么也就不会存在图片显示不出来的情况了 

 

立马加在:ueditor.config.js 加上配置参数

//抓取远程图片是否开启,默认true
,catchRemoteImageEnable:false

 然后编辑器页面,刷新,然后复制粘贴远程图片,这时不再向服务端发送get请求catchimage。

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值