![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java错误
qq_40853933
这个作者很懒,什么都没留下…
展开
-
Error executing Maven. 2 problems were encountered while building the effect
出现这个原因就是多了个<mirrors> </mirrors>和 <profiles> </profiles>用idea打开maven文件里面的conf的setting文件,删掉多余的mirrors和profiles,把所有的<mirror>放在同一个<mirrors>,<profile>也是同一个道理,都放在<profiles>。因为一个setting文件只能有一个mirrors和profiles如..原创 2022-01-14 18:27:13 · 2134 阅读 · 2 评论 -
This application has no explicit mapping for /error, so you are seeing this as a fallback.
今天刚刚学springboot,在学习的时候碰到这么一个bug,这个bug如下:出现这个原因是因为我没有把带有main方法的类放在根目录应该把MainApplication.java移出来或者把controller移动到boot运行一下运行成功。为什么要这样呢?具体看这位博主的文章(33条消息) main spring启动_SpringBoot学习(一):为什么main方法启动类需要放在项目根目录..._R4h的博客-CSDN博客https://blog...原创 2022-01-14 15:24:58 · 180 阅读 · 0 评论 -
HTTP Status 500 - Request processing failed; nested exception is org.springframework.jdbc.BadSqlGram
错误描述:type Exception reportmessage Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException:description The server encountered an internal error that prevented it from fulfilling this request.exceptionor...原创 2022-01-09 21:56:29 · 403 阅读 · 0 评论 -
You must configure either the server or JDBC driver (via the ‘serverTimezone‘ configuration property
You must configure either the server or JDBC driver (via the 'serverTimezone' configuration property) to use a more specifc time zone value if you want to utilize time zone support.原创 2021-12-03 16:36:11 · 271 阅读 · 0 评论 -
get请求产生乱码
在apache的conf文件中找到server.xml(路径:你所在的盘:\apache-tomcat-9.0.41\conf\server.xml)在该文件中添加如图画蓝圈内容就可以了原创 2021-11-26 16:04:27 · 488 阅读 · 0 评论 -
Servlet[SpringMVC]的Servlet.init()引发异常
遇到这种错误怎么看?看根本原因第一行错误:Line 7 in XML document from class path resource [springMVC.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 63; cvc-complex-type.2.4.c: 通配符的匹配很全面, 但无法找到元素 'context:component-scan' 的..原创 2021-11-24 22:14:52 · 476 阅读 · 0 评论 -
Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException
错误:org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "ServletContext resource [/WEB-INF/templates/index.html]")错误原因:这个路径与下图的路径文件夹不一致:只要把springMVC.xml文件中这个画红圈错误的templates改为template就ok了...原创 2021-11-24 22:13:12 · 4870 阅读 · 4 评论 -
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException
错误:org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 2 in XML document from class path resource [bean2.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 6; 不允许有匹配 "[xX][mM][lL]" 的处理原创 2021-11-11 09:54:28 · 193 阅读 · 0 评论 -
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem
错误:org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Bean name 'book' is already used in this <beans> elementOffending resource: class path resource [bean1.xml]在学spring的时候,我遇到这样的一个错误。那是什么原因发生这个错误?Ja原创 2021-11-10 10:27:41 · 4318 阅读 · 0 评论 -
java.sql.SQLException: Access denied for user ‘root‘@‘localhost‘ (using password: YES)
发生这个错误的原因是因为数据库的配置文件的密码写错这要把密码password改过来就ok了原创 2021-09-08 22:12:52 · 119 阅读 · 0 评论 -
ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration (logging only er
错误:ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization loggin原创 2021-09-08 22:29:04 · 8230 阅读 · 1 评论 -
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [update
错误:org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [update t_account set money=money-?where username=?]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your原创 2021-09-08 22:24:01 · 8417 阅读 · 0 评论