
exception
ljf8838
这个作者很懒,什么都没留下…
展开
-
BindingException: Invalid bound statement (not found)
个人习惯新建目录时,使用“.” 的方式连续建文件夹,像:mapper.ua,这样。一般这样会生成mapper文件夹,mapper文件夹下有ua文件夹。mapper-locations,这个配置是扫描mapper文件夹下的文件,这样就永远识别不到mapper.ua文件夹下的文件。原创 2023-06-20 10:32:17 · 135 阅读 · 0 评论 -
Error:Kotlin: Module was compiled with an incompatible version of Kotlin. metadata is 1.6.0, expecte
项目启动异常,binary version不一致原创 2022-10-08 08:24:30 · 1766 阅读 · 3 评论 -
Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
18-Jun-2021 18:24:03.170 INFO [http-nio-8080-exec-15] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level. java.lang.IllegalArgumentExce原创 2022-07-13 08:10:08 · 2442 阅读 · 0 评论 -
idea中引入jar包,并通过maven打包
一、maven引入jar包方式(方便通过maven打包)找到你idea中使用的maven安装路径,打开maven安装路径,进入bin文件夹,在这个文件夹下进入docs窗口。鼠标点击箭头位置,输入cmd,回车,进入docs窗口。在bin文件夹中dos命令执行 mvn install:install-file -DgroupId=com.xxx -DartifactId=sdk-java -Dversion=201811202200 -Dpackaging=jar -Dfile=xxx.jar原创 2022-05-25 11:08:15 · 2771 阅读 · 0 评论 -
zookeeper无法启动产生原因及解决办法
zookeeper无法启动产生原因:在安装目录下的conf文件夹下的zoo.cfg文件,其中dataDir属性与dataDirLog属性两个指定的文件目录需要确实存在才可以。zookeeper启动时,如果这两个属性指定的文件路径不存在,不会自动创建,需要手动创建。然后重新启动。zookeeper启动命令:在bin文件夹下,执行命令:Linux:./zkServer.sh startwindows: /zkServer.cmd startzookeeper停止命令:在bin文件夹下,执行命令:原创 2022-05-22 14:05:34 · 6506 阅读 · 0 评论 -
文件导入mysql时报错Got a packet bigger than ‘max_allowed_packet‘ bytes
mysql版本5.7.26导入sql文件时报错Got a packet bigger than ‘max_allowed_packet’ bytes原因:导入的数据大于系统的限制的最大包大小。即插入的数据太大了,因此需要更改MySQL的默认配置。通过下面命令查看当前系统限制最大值,保存系统最大值,一会还要在改回来。show variables like '%max_allowed_packet%' ;修改系统最大值:SET GLOBAL max_allowed_packet=150M;如原创 2021-11-26 11:33:28 · 284 阅读 · 0 评论 -
linux安装mysql遇到的小问题
一、Mysql 启动报错 The server quit without updating PID file(/var/run/mysqld/mysqld.id)Linux(阿里云)下启动mysql报错:starting MySQL...ERROR! The server quit without updating PID file(/var/run/mysqld/mysqld.pid)原因:缺少mysql.pid 文件进入/var/run/mysqld 目录,如果 目录 mysqld 不存原创 2021-11-25 16:02:45 · 1192 阅读 · 0 评论 -
o.s.b.w.servlet.support.ErrorPageFilter : Cannot forward to error page for request ,页面报错404
部署项目出现的异常: o.s.b.w.servlet.support.ErrorPageFilter : Cannot forward to error page for request [/login/page] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere.原创 2021-06-10 17:14:31 · 5148 阅读 · 2 评论 -
Error attempting to get column ‘id‘ ... Invalid value for getInt()
org.springframework.dao.TransientDataAccessResourceException: Error attempting to get column ‘id’java.sql.SQLException: Invalid value for getInt() - ‘7f08610a997ea062dd346c3’产生原因:类型不匹配,数据库使用varchar,javaBean使用的是Integer使用了含参构造方法,没有添加无参构造方法...原创 2020-08-27 12:33:37 · 600 阅读 · 0 评论 -
Required request body is missing 错误解决,400状态码
Required request body is missing 错误解决,会出现400错误发送对象参数,使用requestBody接收参数postman请求时,使用json格式参数注意使用的是post请求,还是get请求。当你定义接收post请求,在postman中使用get请求时...原创 2020-06-28 23:18:40 · 2866 阅读 · 0 评论 -
协议“ https:”不受支持。预期的“ http:”
Protocol “https:” not supported.Expected “http:”本地使用postman访问接口,自己的可以,前端不能访问,找了半天,发现是node版本问题,前端使用的是node14,降成node12就可以了原创 2020-06-28 21:07:19 · 5502 阅读 · 0 评论 -
git使用unstash失败,解决方法
出现这种原因是在unstash时,前提是你的文件不能做任何修改,不能手动修改,不然会提示你做出修改的文件是那些,建议先备份在撤销修改,这时候unstash则会还原之前保存的文件原创 2020-06-18 16:50:57 · 8222 阅读 · 0 评论 -
springboot出现无法加载主类的情况,解决办法
首先确定你的maven结构是对的,如下图然后确定依赖包都已经导入,如果还是不行,就先clean项目,在执行install,这时候启动你的启动类(主类)应该就没问题了原创 2020-06-18 16:40:33 · 582 阅读 · 0 评论 -
启动springboot提示驱动异常:Failed to determine a suitable driver class
https://blog.youkuaiyun.com/bzehong/article/details/96476285?ops_request_misc=&request_id=&biz_id=102&utm_term=Reason:%20Failed%20to%20determine%20a%20&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduweb~default-4-96476285原创 2020-06-08 08:53:56 · 492 阅读 · 0 评论 -
redis遇到的问题:WRONGTYPE Operation against a key holding the wrong kind of value
org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: WRONGTYPE Operation against a key holding the wrong kind of value原创 2020-06-03 08:10:39 · 5553 阅读 · 0 评论 -
在Thymeleaf中关于使用#httpSession出现的异常:Exception evaluating SpringEL expression
页面出错位置是这部分,注意页面中使用的${#httpSession.getAttribute('user')}<div th:if="${#httpSession.getAttribute('user')} == null"> <!-- 未登录状态 --> <div class="register"> ...原创 2019-12-27 19:52:19 · 5107 阅读 · 0 评论 -
'url' attribute is not specified and no embedded datasource could be configured.
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2019-12-26 17:51:45,964 [ERROR] [restartedMain] o.s.boot.diagnostics.LoggingFailureAna...原创 2019-12-27 08:44:31 · 1854 阅读 · 0 评论 -
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2019-12-23 15:48:56.616 ERROR 1892 --- [ main] o.s.boot.SpringApplication ...原创 2019-12-23 15:57:30 · 232 阅读 · 0 评论 -
springboot集成mybatis出现bindException,解决方法
查看自己代码,注解加上了@Controller,@Service,@Mapper,@Autowired,没有报错mapper中的方法也调用了配置文件中的数据源的驱动、路径、username、password也没错但就是爆出bindException。。。怎么解决?原因是mapper文件夹在java目录下,springboot目录结构 中的java文件夹下只编译执行.java文件,对于map...原创 2019-12-21 20:59:50 · 986 阅读 · 0 评论 -
springboot 集成mybatis时 启动出现的错误
2019-12-21 15:42:46.546 ERROR 8724 — [nio-8080-exec-1] com.zaxxer.hikari.pool.HikariPool : root - Exception during pool initialization.java.sql.SQLException: Access denied for user ‘’@‘192.168...原创 2019-12-21 18:01:31 · 965 阅读 · 0 评论 -
使用异步请求提交会刷新两次原因
为么会提交两次?按钮在表单中,按钮的type是submit,这时如果你使用了异步请求,它会先执行异步请求,在执行一遍传统方式请求:提交form表单的方式。最后结果肯定就是第二次提交显示的东西了 <script type="text/javascript"> $(function(){ //为保存按钮绑定事件,执行市场活动的添加操作 $("#saveActivityBtn...原创 2019-12-20 13:01:10 · 675 阅读 · 0 评论 -
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [org.apache.zookeeper.ZooKeeperTestable]. The following stack trace is thrown fo...原创 2019-12-20 08:51:15 · 657 阅读 · 0 评论 -
Cannot build artifact...because it is included into a circular dependency...
Error:Cannot build artifact ‘07-zk-orderservice:war exploded’ because it is included into a circular dependency (artifact ‘07-zk-orderservice:war exploded’, artifact ‘04-node-orderservice (1):war expl...原创 2019-12-20 08:48:46 · 781 阅读 · 1 评论 -
点击按钮没有反应
具体排查流程先点击F12,再点击"创建"按钮观察你的Network,看看请求有没有发出去如果请求没有发出去,一定是该方法中有js代码写错语法了,排查语法,可以使用简单的alert弹框去做标记如果请求发出去了,请看第二步在你的ajax的回调函数中第一行,加入alert(data)观察结果如果弹框没反应 说明是后台代码出错了,进入到第三步如果弹出了 object Object,...原创 2019-11-21 21:17:11 · 4680 阅读 · 1 评论 -
抛出的异常出现UnsatisfiedDependencyException和BeanCreationException
21-Nov-2019 13:03:36.860 WARNING [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.context.support.XmlWebApplicationContext.refresh Exception encountered during context initialization - cancel...原创 2019-11-21 14:30:13 · 1389 阅读 · 3 评论 -
UnsatisfiedDependencyException...BeanNotOfRequiredTypeException...is expected to be of type...but...
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userController': Unsatisfied dependency expressed through field 'service'; nested exception is org.spri...原创 2019-11-15 17:47:37 · 371 阅读 · 0 评论 -
设置弹框,没显示;在ajax中的HTML标签也不显示原因及解决
请求页面,使用AJAX发出请求,并接受响应(返回值)<%@ page contentType="text/html;charset=UTF-8" language="java" %><% String basePath = request.getScheme() + "://" + request.getServerName() + ":" +...原创 2019-11-12 21:06:23 · 730 阅读 · 0 评论 -
Tomcat使用startup.bat启动,点击闪退解决方法
首先确定jdk环境配置好,这里我使用的是第一个解压版(红框是解压版,黄框是安装版),下载链接:https://tomcat.apache.org/download-80.cgi接着找到tomcat安装目录bin文件夹startup.bat与shutdown.bat文件,通过记事本打开分别在文件最顶部输入SET JAVA_HOME=E:\java\jdk1.8.0_201 (...原创 2019-10-31 21:04:00 · 133 阅读 · 0 评论 -
EL表达式不能使用
web.xml<?xml version="1.0" encoding="UTF-8"?><web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation...原创 2019-11-08 20:58:43 · 180 阅读 · 0 评论