
框架中的一些错误
哦吼~
心如欲壑,厚土难填。
展开
-
SpringMVC请求html页面出现404问题解决
1.SpringMVC项目中,当从浏览器访问自己写的html文件时,报错404,查看日志输出DispatcherServlet没有找到对应的处理器,代码无误2.解决:在applicationContext.xml文件中加入:mvc:default-servlet-handler/即可<servlet-mapping> <servlet-name>spring...原创 2020-03-13 23:26:45 · 872 阅读 · 0 评论 -
idea创建html文件报错解决方案
1.有时候在idea创建html时,会变成灰色,不识别2.解决:打开 settings 删除文件即可原创 2020-02-10 17:36:35 · 1902 阅读 · 0 评论 -
关于js md5加密与 Java md5加密不一致问题解决
1.前端: md5(encodeURIComponent(str));.2.后台:DigestUtils.md5Hex(URLEncoder.encode(src));除此之外,还有问题,请仔细检查自己传入进去的参数是否是你想要的的字符串,更改一点,都有可能导致md5()结果不一致。...原创 2020-02-09 18:37:30 · 2864 阅读 · 0 评论 -
Java连接Redis出现:connect time out
在检查主机地址密码无误时,原因是未开放端口解决:开放6379端口导致的查看已经开放的端口:firewall-cmd --list-ports 开启端口: firewall-cmd --zone=public --add-port=6379/tcp --permanent重启防火墙 firewall-cmd --reload #重启...原创 2020-02-09 18:37:54 · 743 阅读 · 1 评论 -
idea报错:SpringBoot Configuration Annotation Processor not configured
1.这是因为没有配置文件处理器导致的2.导入下列依赖:<!--配置文件处理器--><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifa...原创 2020-02-09 18:38:04 · 2393 阅读 · 0 评论 -
SpringBoot报错:Caused by: org.xml.sax.SAXParseException: 不允许有匹配 "[xX][mM][lL]" 的处理指令目标。
1.今天再用SpringBoot时报错:Caused by: org.xml.sax.SAXParseException: 不允许有匹配 “[xX][mM][lL]” 的处理指令目标。2.原因是xml文件中不能有头部必须置顶,即不能有任何空格,否则就会报上面的错!...原创 2020-01-15 00:57:10 · 1080 阅读 · 0 评论 -
SpringBoot报错:java.sql.SQLException: Access denied for user ''@'localhost' (using password: NO)
1.今天在使用SpringBoot时报错:java.sql.SQLException: Access denied for user ‘’@‘localhost’ (using password: NO)2.检查2.1 密码是否正确,发现正确2.2 注意:是username和password,没有前面的data!!!3.删掉data即可!...原创 2020-01-02 23:29:07 · 426 阅读 · 0 评论 -
SpringBoot报错:java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getHttpServletMappin
今天在搞SpringBoot时,报错:java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getHttpServletMapping()Ljavax/servlet/http/HttpServletMapping;找了好多解决方案,试了好久发现 引起这种问题的原因很多(网上的就不说了)我的问题是:input标签...原创 2019-12-25 23:36:55 · 8544 阅读 · 0 评论 -
解压tomcat报错:gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverabl
1.今天在安装tomcat时报错:gzip: stdin: not in gzip formattar: Child returned status 1tar: Error is not recoverable: exiting now2.在网上查找了下解决方案2.1 解压是去掉 z 就行了,但是我没有成功!tar -zxvf apache-tomcat-8.5.49.tar.gz(原...原创 2019-12-30 09:45:09 · 383 阅读 · 0 评论 -
C3P0报错:Servlet.service() for servlet [SpringServlet] in context with path [] threw exception [Handle
1.报错:Servlet.service() for servlet [SpringServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.AbstractMethodError: Method com/mchange/v2/c3p0/impl/...原创 2019-12-24 17:24:44 · 663 阅读 · 0 评论 -
springMVC报错:415
1.今天在调试客户端向服务器端发送json数据时,出现4152.解决方案:2.1是否在ajax中书写了 contentType:"application/json;我发现我书写了,但是还是不行,我又查看了请求头,发现和content-Type是对应的,没问题的2.2最后找到问题,查看导入的依赖包是否正确我导入的是alibaba.fastjson,我更改了依赖包就好了<!-- ht...原创 2019-12-30 23:45:02 · 313 阅读 · 0 评论 -
报错:IOException parsing XML document from class path resource [applicationContext.xml]; nested except
1.出现IOException parsing XML document from class path resource [applicationContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened...原创 2019-12-30 23:42:38 · 3034 阅读 · 0 评论 -
ssm报错:Invalid bound statement (not found): mapper.UserMapper.findAllUser
1.今天测试ssm,出现了上述错误2.尝试着给pom.xml文件中的build标签中添加了下述代码<resources> <resource> <directory>${basedir}/src/main/java</directory> <includes> <i...原创 2019-12-31 00:46:33 · 1104 阅读 · 0 评论 -
mybatis报错:元素类型为 "configuration" 的内容必须匹配 "(properties?,settings?,typeAliases?,typeHandlers?,objectFac
1.出现下列错误2.这个问题的产生,是因为在配置configuration时候,标签要按照前后顺序摆放,不能打乱顺序3.解决方案:调整标签顺序即可原创 2019-12-23 20:28:40 · 564 阅读 · 0 评论 -
Result Maps collection already contains value for xxxMapper.BaseResultMap错误解决办法
1.Result Maps collection already contains value for xxxMapper.BaseResultMap错误解决办法2.出现上面错误,说明代码重复了,BaseResultMap已经建立过了,重复了!3.检查你的xml配置文件!4.删除重复的代码块即可!...原创 2019-12-23 20:28:27 · 326 阅读 · 0 评论 -
出现错误信息:log4j:WARN No appenders could be found for logger
1.出现:log4j:WARN No appenders could be found for logger在src下面新建file名为log4j.properties内容如下:#Configure logging for testing: optionally with log filelog4j.rootLogger=WARN, stdout#log4j.rootLogger=WARN...原创 2019-12-24 11:50:33 · 136 阅读 · 0 评论