出现的bug
cwh_hot
这个作者很懒,什么都没留下…
展开
-
LoaderManager cannot be resolved to a type
之前一直显示出这个问题,后来导入这几个包之后就可以正常的使用了import android.annotation.SuppressLint;import android.app.Activity;import android.app.LoaderManager;import android.content.CursorLoader;import android.content.Loader;...原创 2018-03-16 19:12:59 · 243 阅读 · 0 评论 -
mysql的时区错误问题:The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more
jdbc:mysql://localhost:3306/spring_boot?&serverTimezone=UTC在jdbc配置上加上&serverTimezone=UTC问题就解决了原创 2019-01-14 21:37:36 · 245 阅读 · 0 评论 -
使用redis搭建集群时遇到的问题:You should use redis-cli instead.
WARNING: redis-trib.rb is not longer available!You should use redis-cli instead.All commands and features belonging to redis-trib.rb have been moved to redis-cli.In order to use them you should ca...原创 2019-01-08 22:15:16 · 7709 阅读 · 4 评论 -
dubbo中注入@Autoware失败
dubbo架构 为 分布式 做管理服务。 不同服务主机之间的相互调用,为了让服务之间能够同时注入类和发现类。 spring中的 @service 用于将服务类 交给spring管理。 解决方案一: dubbo中 不能识别@service,会报空指针。这个时候需要使用 com.alibaba.dubbo 的@service才能识别。 同时在 cotroller层,注入 service 也不...转载 2019-01-07 14:50:43 · 1066 阅读 · 1 评论 -
Error creating bean with name 'multipartResolver': Lookup method resolution failed;
这个主要是上传文件的jar没有导入造成的<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <!-- 设定默认编码 --> <property name="defaultEncoding" ...原创 2019-01-07 15:13:40 · 29723 阅读 · 7 评论 -
linux上tomcat启动后无法访问solr的问题
1.关闭防火墙 service iptables stop2.jdk是1.7 solr 版本是4.10,把{solr文件}\example\lib\ext 中的所有jar 包放到solr 项目的lib里solr/WEB-INF/lib3.如果solr的版本大于5的话,那么jdk需要1.8以上的4.查看tomcat/webapps/solr/WEB-INF/web.xml中<env...原创 2019-01-11 19:50:31 · 1444 阅读 · 0 评论 -
linux上activemq启动后却无法访问的问题
1.关闭防火墙:service iptables stop后重启服务2.防火墙关闭后还是解决不了问题的话那么原因是机器名和ip地址没有对上。这时候可以vim /etc/hosts,这时候会发现下面这些映射关系127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 ...原创 2019-01-11 18:30:50 · 8488 阅读 · 2 评论 -
java.lang.ClassCastException: com.github.pagehelper.PageHelper cannot be cast to org.apache.ibatis.
PageHelper5.0版本pagehelper是继承了PageMethod和实现了Dialect,PageInterceptor是实现了Interceptor接口pageHelper是如何在mybatis中工作呢,是通过mybatis的pulgin实现了Interceptor接口,从而获得要执行的sql语句实现分页技术。所以最开始报错能解释了,可改成PageInterceptor ...原创 2019-01-06 16:25:08 · 1464 阅读 · 0 评论 -
ERROR: Missing initial data partition file虚拟机运行时错误解决方法
1.降低虚拟机的API便可以正常运行了。2.增加RAM的大小原创 2018-05-31 23:20:58 · 3423 阅读 · 1 评论 -
异常描述:com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT b
解决方法:原来是服务器中的response.getWriter().append("Served at: ").append(request.getContextPath());这句话需要删除,否则的话将会把Served at输入到回应体中,所以Gson不能识别,将上面那句话删除即可...原创 2018-06-12 20:03:32 · 851 阅读 · 0 评论 -
com.android.support冲突
android studio3.0以上新增了API方法group:表示只要包含com.android.support的都排除 api("com.github.bumptech.glide:glide:4.7.1") { exclude group: 'com.android.support' }解决依赖的库中的com.android.support版本不一致的问题...原创 2018-05-23 13:10:21 · 501 阅读 · 0 评论 -
Binary XML file line #56: Error inflating class ImageView错误解决方法
使用ImageView的时候老是报错,后来检查了一下,发现原来是drawable中的图片是.png格式的,换成.jpg格式后便可以正常显示了原创 2018-05-09 19:32:48 · 2559 阅读 · 1 评论 -
springboot正常启动但访问404
spring boot正常启动了,但是浏览器一直报404.,原因是spring boot只会扫描启动类当前包和以下的包 。 如果将 spring boot 放在 包 com.example.controller 里面的话 ,它会扫描 com.example.controller 和 com.example.controller.* 里面的所有的 ;还有一种解决方案是 在启动类的上面添加 @...原创 2019-01-15 16:44:50 · 4589 阅读 · 1 评论