![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java后台开发
KeiKei.
这个作者很懒,什么都没留下…
展开
-
log4j:WARN No appenders could be found for logger 报错解决办法
问题描述:项目启动失败,控制台打印错误提示信息:log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).log4j:WARN Please initialize the log4j system properly.log4j:WARN See http...原创 2019-09-01 09:45:33 · 541 阅读 · 0 评论 -
通配符的匹配很全面, 但无法找到元素 'context:component-scan' 的声明
问题描述:在使用RabbitMQ整合Spring框架时,启动项目后报错:org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 64; cvc-complex-type.2.4.c: 通配符的匹配很全面, 但无法找到元素 ‘context:component-scan’ 的声明。原因:其实主要是我们在引入命名空间时没有正确引入...原创 2019-09-20 21:09:57 · 1182 阅读 · 0 评论 -
使用七牛云上传文件报错error=incorrect region, please use up-z2.qiniu.com
在上传图片到七牛云服务器上报错如下:info ===== <QNResponseInfo= id: CB441DB1-B50D-472A-8DAB-B07700E102C5, ver: 7.1.6, status: 400, requestId:XXXX, XXXX, xlog: RA:122.224.95.105:80;UP/400;NUPROXY:28/400, xvia: (null...原创 2019-09-13 21:07:48 · 11130 阅读 · 0 评论 -
使用七牛云进行对象存储
1.maven依赖<!--七牛--><dependency> <groupId>com.qiniu</groupId> <artifactId>qiniu-java-sdk</artifactId> <version>7.2.8</version></dependen...原创 2019-09-13 20:23:08 · 719 阅读 · 0 评论 -
Dubbo 2.6.5启动报java.lang.NoClassDefFoundError: io/netty/channel/EventLoopGroup
错误信息如下:22:39:42.357 [main] WARN c.a.d.q.protocol.QosProtocolWrapper - [DUBBO] Fail to start qos server: , dubbo version: 2.6.5, current host: 192.168.185.1java.lang.NoClassDefFoundError: io/netty/...转载 2019-09-10 11:55:38 · 1127 阅读 · 0 评论 -
IDEA启动tomcat报错:java.net.SocketException:socket closed
问题描述:IDEA部署项目后无法启动,左下角报错:Error running ‘Tomcat8082’: Unable to open debugger port (127.0.0.1:50142): java.net.SocketException "socket closed"原因:Tomcat端口被占用,导致无法启动项目解决办法:netstat -aon|findstr “端...原创 2019-09-09 21:13:01 · 2858 阅读 · 0 评论 -
异步请求加载ztree失败:http请求405错误:Request method 'GET' not supported解决方案
问题描述:前端发送异步请求加载ztree时,一直走error函数,并报405错误:Request method ‘GET’ not supported,无法从后台获取数据原因:检查发现,是jquery加载失败导致的,因此推测是jquery版本太低,不支持ajax新写法导致的,由于无法识别method属性,导致post方法使用失败,默认使用get方法请求后台,但控制器使用的接收类型是post...原创 2019-09-06 10:44:54 · 770 阅读 · 0 评论 -
关于PageHelper插件分页查询不生效的问题和解决方案
问题描述:使用PageHelper插件的时候,发现前端向后台成功传入当前页pageNum、每页大小pageSize,但查询后前端并未显示分页效果 @RequestMapping("/list") public ModelAndView findByPage( @RequestParam(defaultValue = "1") Integer pageNum...原创 2019-09-04 10:19:13 · 3195 阅读 · 0 评论 -
Statement returned more than one row, where no more than one was expected异常解决方案
问题描述:使用单元测试测试sql语句查询时报错:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: Statement returned more than one row, where no more than one was ...原创 2019-09-04 09:36:32 · 13481 阅读 · 1 评论 -
SpringMVC整合Mybatis的对象别名设置方式
1.在mybatis_config.xml中Mybatis别名设置<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dt...转载 2019-09-01 10:48:37 · 642 阅读 · 0 评论 -
【跨域问题】Access to XMLHttpRequest at'http://localhost:解决跨域问题
注解实现方法:https://www.cnblogs.com/fanshuyao/p/7168471.html转载 2019-09-26 20:31:37 · 61548 阅读 · 1 评论