![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
坑们
疯zei
这个作者很懒,什么都没留下…
展开
-
ZXing生成二维码中setRGB报错
错误:The method setRGB(int, int, int) in the type BufferedImage is not applicable for the arguments (int, int, (bitMatrix.get(x, y) ? Color.BLACK : Color.WHITE))此时我们点进去源码我们可以发现参数需要三个int这是我报错的代码,却发现我...原创 2019-03-15 16:44:03 · 463 阅读 · 1 评论 -
pom.xml出现web.xml is missing and <failOnMissingWebXml> is set to true的解决方案
创建一个maven项目 pom.xml出现如下错误:web.xml is missing and is set to true 这是因为你因为你WEB-INF下没有web.xml导致造成的:右击项目——>Java EE Tools——>Generate Deployment Descriptor Stub.然后系统会在src/main/webapp/WEB_INF文件加下创...转载 2019-03-18 20:22:54 · 228 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):错误解决方案
这是一个ssm+maven的项目问题原因:maven在打包这个项目时mapper.xml并不会打包(可能是因为蓝色java文件夹的原因只能把里面的东西打成class不能打包xml)解决办法 (2个):①在该module(如果你是eclipse的话可以理解成project)里面的pom.xml文件<artifactId>maven-resources-plugin</a...原创 2019-04-08 22:17:25 · 159 阅读 · 0 评论 -
如何把session.getAttribute()转换成String类型或者int类型
【错误例子】String s=session.getAttribute("key");【正确写法】String s=session.getAttribute("key").toString();【转换成int类型】String s=session.getAttribute("key").toString();int n=Integer.parseInt(s);或者String...原创 2019-04-22 13:29:30 · 9190 阅读 · 2 评论 -
openfire链接数据库报错解决方案
错误:A connection to the database could not be made. View the error message by opening the “\logs\error.log” log file, then go back to fix the problem.解决方案:我是这么做的1、找到openfire的安装目录里的lib目录,在网上下载一个新的mys...原创 2019-04-26 20:10:38 · 951 阅读 · 0 评论 -
android安卓socket客户端连接不上pc服务端
问题描述:1、安卓利用Socket和PC通信无法连接2、已经设置了 3、相同代码PC端和PC端通信没有问题4、会在new Socket(ip,port)这里一直堵塞;5、NetworkOnMainThreadException解决方案:(摘自[https://segmentfault.com/q/1010000008783075])NetworkOnMainThreadExcept...原创 2019-04-27 22:09:23 · 2426 阅读 · 0 评论