
报错
BugEveryday
这个作者很懒,什么都没留下…
展开
-
copy qualified name复制类全名称的问题
在编写java代码的过程中,有时候需要类的全名称,如使用反射(Class.forName())这时在eclipse中,可以使用copy qualified name获取类的全名称①选中【类名.class】文件,右键-->copy qualified name,得到test.Test如果选中的是【类名.java】,然后copy qualified name,得到的是/test/...原创 2019-10-18 21:04:49 · 922 阅读 · 0 评论 -
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'XXX' doesn't exist
org.springframework.jdbc.BadSqlGrammarException: ### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'atcrowdfunding.t_usernum' doesn't exist### Th...原创 2018-12-04 16:40:53 · 7616 阅读 · 1 评论 -
java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connectCaused by: java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) ...原创 2018-11-26 17:45:40 · 701 阅读 · 0 评论 -
java.lang.ClassCastException: xxx.bean.XXX cannot be cast to xxx.bean.YYY
java.lang.ClassCastException: com.hahah.atcrowdfunding.bean.User cannot be cast to com.hahah.atcrowdfunding.bean.Role result写错了,应该是resultType,但是复制粘贴之前写的(resultMap),没有把result改掉,改成resultType以后一定...原创 2018-11-18 13:54:20 · 1752 阅读 · 1 评论 -
org.springframework.beans.InvalidPropertyException: Invalid property 'datas[0]' of bean class [com.h
org.springframework.beans.InvalidPropertyException: Invalid property 'datas[0]' of bean class [com.hahah.atcrowdfunding.vo.Data]: Index of out of bounds in property path 'datas[0]'; nested exception i...原创 2018-11-18 03:12:42 · 6760 阅读 · 2 评论 -
HttpServletRequest cannot be resolved to a type
除了HttpServletRequest cannot be resolved to a type之外的,各种xxxxx cannot be resolved to a type转载自:https://www.cnblogs.com/haimishasha/p/6188241.html 博主提供了两种方法,我只尝试了第一种就成功了1.这个错误可能是服务器自带的servlet库未...转载 2018-11-19 16:04:36 · 8383 阅读 · 0 评论 -
Result Maps collection already contains value for
我是先生成了*Mapper.xml文件,然后拷贝到相应目录下的,然后启动tomcat的时候,出现了错误如果你也是这种情况,有可能就是mapper.xml文件的namespace不对,和当前路径不一致 然后,方法的id重名也会出现这种情况总之,拷贝有风险,粘贴需谨慎...原创 2018-11-22 02:16:36 · 1271 阅读 · 0 评论 -
在拼接的字符串里function传的值应该怎么写
先说应该怎么写,如下图一般来说,我们对function: delete(n.id,n.name)【n.id=1,n.name=zhangsan】拼字符串,是这么写"delete (' +n.id+ ',' +n.name+ ')"但是这样写传过去的值,n.name的值zhangsan会被当成一个变量,而不是一个值所以要把zhangsan也给‘’上,但是''要被转...原创 2018-11-21 10:04:56 · 1409 阅读 · 0 评论 -
字符串拼接
一般我们是这样拼接字符串的但是,process.name是字符串,所以要用‘’引起来,但是‘’引了之后呢,还要\'来包一下才行所以,正确的操作是,\' ' + xxx + ' \'...原创 2018-11-21 01:59:00 · 308 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException: Mapper method 'com.hahah.atcrowdfunding.manager.dao.Cert
org.apache.ibatis.binding.BindingException: Mapper method 'com.hahah.atcrowdfunding.manager.dao.CertMapper.queryCount attempted to return null from a method with a primitive return type (int).检查xm...原创 2018-11-12 02:31:43 · 419 阅读 · 0 评论 -
No qualifying bean of type [com.hahah.atcrowdfunding.manager.service.TestService] found for depende
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.facto...原创 2018-11-05 10:24:28 · 1154 阅读 · 0 评论 -
Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer[]'
Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer[]'; nested exception is java.lang.NumberFormatException: For input string: "id=415&id=415"原创 2018-11-10 22:26:10 · 3651 阅读 · 1 评论 -
在拼接的字符串里链接应该怎么写
原创 2018-11-10 09:33:07 · 830 阅读 · 0 评论