自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(35)
  • 收藏
  • 关注

原创 liunx修改文件权限

首先我们简单来理解x=1 可执行;w=2 可写入;xw=3 可写可执行;r=4 可读取;rx=5 可读可执行;rw=6 可写可读;rwx=7 可写可读可执行;(主意每三组字符每一组不能超过7)通过chmod命令即可修改权限如图# chmod 777 /路径全名那么我的文件变成了 rwxrwxrwx也就是所有用户都可以进行读写操作...

2021-05-27 16:32:13 160

原创 Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile file:///mnt/repo

Loaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfilefile:///mnt/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /mnt/repodata/repomd.xml"Trying other mirror.No package epel-release available.Error: Nothing t

2021-05-27 11:03:04 3426

原创 testWhileIdle is true, validationQuery not set

最为简单粗暴的方法,有什么缺陷不清楚,现在还没遇到直接屏蔽掉就可以正常使用了

2021-02-22 13:05:09 236

原创 Exception processing template “userList“: Could not parse as expression: ““ (template: “userList“ -

问题详情如下021-02-22 11:39:41.153 INFO 20104 --- [nio-8080-exec-2] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'2021-02-22 11:39:41.153 INFO 20104 --- [nio-8080-exec-2] o.s.web.servlet.DispatcherServl...

2021-02-22 11:47:29 729 2

原创 Dependency ‘javax.servlet.jsp.jstl:jstl:1.2‘ not found

idea2019 maven3.6.0 tomcat8.5.6直接导入jstl1.2的jar包会显示如上问题,经过查询,问题是在tomcat中已有jsp-api和servlet-api,但maven下载jstl时也会把它所依赖的这两个包下载下来,所以就有了包冲突,因此在maven的pom.xml中需要排除这两个包的下载这是未修改之前的代码<!-- https://mvnrepository.com/artifact/javax.servlet.jsp.jstl/jstl --&g...

2021-01-25 15:50:02 11176 2

原创 Error updating database. Cause: java.sql.SQLSyntaxErrorException: ORA-01745: 无效的主机/绑定变量名

一般情况下是插入或更新语句时,属性之间没有写 ,号导致的,排查一下,看是否缺少逗号

2021-01-23 16:07:09 1380

原创 java.sql.SQLIntegrityConstraintViolationException: ORA-00001: 违反唯一约束条件 (SYSTEM.SYS_C0012098)

org.apache.ibatis.exceptions.PersistenceException: ### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: 违反唯一约束条件 (SYSTEM.SYS_C0012098)### The error may involve com.qn.pojo.User.insertUser-Inline### The ...

2021-01-20 15:28:49 1132

原创 org. apache.ibatis.binding.BindingException: Type interface com. gn.dao.UserDao is not known to the

具体原因是userMapper.xml的空间有问题,纠正命名空间的路径就可以

2021-01-20 14:20:49 527

原创 org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.I

org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com.qn.pojo.UserMapper.xmlException in thread "main" org.apache.ibatis.exceptions.PersistenceException: ### Error bu

2021-01-19 16:47:30 2326

原创 nested exception is java.lang.IllegalArgumentException

具体问题如下,看到这个问题,只能说是jar包版本与jdk版本不匹配,哎,贼难受org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [D:\Work\IdeaWork\out\artifacts\SpringMvc02_war_exploded\WEB-INF\classes\com\qn\controller\HelloControl

2021-01-18 17:34:33 1597

原创 java.io.FileNotFoundException:D:\Program Files\Apache Software Foundation\Tomcat 8.5\bin\commons-dae

问题详情如下,这个问题原因没有找到,使用tomcat启动web服务莫名其妙就这样了,百度了各种方法, 都不行,最后重新安装了更高的版本才算是好了。 jdk1.8,更新的版本为Tomcat8.5.61

2021-01-15 11:41:09 2060

原创 tomcat8.5 无法在web.xml或使用此应用程序部署的jar文件中解析绝对uri:[http://java.sun.com/jsp/jstl/core]

idea2019,部署SSH框架,使用tomcat8.5.61版本 正常使用中忽然出现了这个问题,百思不得其解,下方附解决方案将员原来的jstl.jar包还有standard.jar包去掉,更换为jstl-1.2.jar之后将c.tld文本放在WEB-INF下,注意!!!!不是lib下,看清楚,之后就可以正常使用了链接:https://pan.baidu.com/s/1wvtwBUJnnaDRqew-7JwSig提取码:bkkp...

2021-01-14 23:46:22 896

原创 org.hibernate.PropertyAccessException: Exception occurred inside getter of com.qn.entity.Cost.id

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'costDao': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loc...

2021-01-14 16:15:48 252

原创 java.lang.NoClassDefFoundError: org/hibernate/QueryTimeoutException

问题详情如下java.lang.NoClassDefFoundError: org/hibernate/QueryTimeoutException at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:644) at org.springframework.orm.hibernate3.HibernateAccessor.

2021-01-13 21:38:03 474

原创 java.sql.SQLRecoverableException: IO 错误: Invalid connection string format, a valid format is: “host:

java.sql.SQLRecoverableException: IO 错误: Invalid connection string format, a valid format is: "host:port:sid"java.sql.SQLRecoverableException: IO 错误: Invalid connection string format, a valid format is: "host:port:sid" at oracle.jdbc.driver.T4CConn..

2021-01-11 22:27:48 3952

原创 org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘updateCostAc

具体问题如下,大致就是使用Bean注解,然后没有找到这个类。附源码org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'updateCostAction' defined in file [D:\Work\IdeaWork\out\production\Spring02\web\WEB-INF\classes\com\action\UpdateCostAction.class]:

2021-01-08 16:58:18 174

原创 java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer

问题完整提示at cn.test.TestHql.test04(TestHql.java:73) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delega

2021-01-05 14:07:06 735

原创 Failed to load resource: the server responded with a status of 404

idea2019写web项目,将jsp页面放在了WEB-INF下面,导入css文件,路径没问题,但是出现这个问题经过各种查询,最后发现,如果jsp页面在WEB-INF下,那么css文件不能放在WEB-INF下,且也不能放在web根目录下的static问价夹下,只能这么放具体原因不知道为什么了。欢迎大佬解释...

2020-12-29 17:26:26 1199

原创 java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0).

java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0). at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97...

2020-12-28 12:04:38 985

原创 The content of element type “class“ must match “(meta*,subselect?,cache?,synchronize*,comment?,tupli

The content of element type "class" must match "(meta*,subselect?,cache?,synchronize*,comment?,tuplizer*,(id|composite-id),discriminator?,natural-id?,(version|timestamp)?,(property|many-to-one|one-to-one|component|dynamic-component|properties|any|map|set.

2020-12-18 19:35:29 285 2

原创 严重: Parse Fatal Error at line 2 column 193: 已经为元素 “web-app“ 指定属性 “xmlns“。

十二月 17, 2020 6:08:24 下午 org.apache.tomcat.util.digester.Digester fatalError严重: Parse Fatal Error at line 2 column 193: 已经为元素 "web-app" 指定属性 "xmlns"。org.xml.sax.SAXParseException; systemId: file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomca...

2020-12-17 18:43:24 276

原创 Server Tomcat v8.5 Server at localhost was unable to start within 45 seconds. If the server requires

本地主机上的服务器Tomcat v8.5无法在45秒内启动。如果服务器需要更多时间,请尝试在服务器编辑器中增加超时。简单粗暴的方法:1、找到servers;2、双击tomcat;3、单击Timeouts;4、自己看着设置开始时间。...

2020-12-14 20:12:53 342

原创 java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corres

java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '? ) order by id desc' at line 1下面是代码信息经过多方询问,各种百度,然后,最终发现,是自己非得多写个玩意,mmp。注意:已经用

2020-11-30 17:59:55 1414

原创 java.io.FileNotFoundException: D:\Work\IdeaWork\out\artifacts\java29_26_war_exploded\upload (系统找不到指定

java.io.FileNotFoundException: D:\Work\IdeaWork\out\artifacts\java29_26_war_exploded\upload\219de5edfbee72e29f1b60f54752b27.png (系统找不到指定的文件) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at.

2020-11-24 20:28:39 849

原创 java.sql.SQLRecoverableException: Io 异常: Undefined Error

问题详细源码使用的是Oracle11g数据库,jdbc用的是ojdbc6.jar。最后找到的原因是因为:本机计算机用户的名字是中文的,idea2019不支持,如果不修改计算机用户的名字,只能再做一些修改在VM options:后面加上 -Duser.name=user就可以了...

2020-11-20 13:07:00 2225 2

原创 javax.servlet.jsp.JspTagException: Invalid property in &lt;set&gt;: “null“

javax.servlet.jsp.JspTagException: Invalid property in &lt;set&gt;: "null"十月 30, 2020 4:31:45 下午 org.apache.catalina.core.StandardWrapperValve invoke严重: 在路径为/EL的上下文中,Servlet[jsp]的Servlet.service()引发了具有根本原因的异常javax.servlet.ServletException: jav.

2020-10-30 16:42:48 651

原创 java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax

java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax;

2020-10-28 20:55:08 1727

原创 org.apache.jasper.JasperException: 无法在web.xml或使用此应用程序部署的jar文件中解析绝对uri:[http://java.sun.com/jsp/jstl/

问题如下:lib包下配置jsp页面的导入一切正常,没有提示任何错误网上也查了好多结果,最后发现修改tomcat中的conf/catalina.properties文件,tomcat.util.scan.DefaultJarScanner.jarsToSkip=*.jar改为:tomcat.util.scan.DefaultJarScanner.jarsToSkip=/就可以正常使用了。再次还有一个疑问,修改以后,启动tomcat会显示信息: 至少有一个.

2020-10-27 14:39:35 9611 13

原创 xml文件使用浏览器打开,提示“This page contains the following errors“解决办法

打开错误提示:This page contains the following errors:error on line 1 at colum 50: Encoding errorBelow is a rendering of the page up to the first error.以上问题是由xml文件的编码格式问题导致,解决方法是使用记事本打开xml文件,选择文件->另存为,“编码”格式选则Unicode或UTF-8,点击保存。重新用浏览器打开以上xml文件,问题解决。

2020-10-22 15:59:33 14181

原创 idea中 database.properties连接mysql数据库的方法

方法一:绝对路径,FileInputStream方法相对路径弄了好久没弄明白。方法二:将resources包放在了src下,然后使用的相对路径。我是在等待,不知道等待什么的在等待。

2020-10-15 21:10:55 543

原创 java.io.FileNotFoundException: database.properties (系统找不到指定的文件。)

java.io.FileNotFoundException: database.properties (系统找不到指定的文件。)java.io.FileNotFoundException: database.properties (系统找不到指定的文件。) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.File

2020-10-15 20:59:44 1150

原创 MySQLNonTransientConnectionException

com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. at sun.reflect.

2020-10-15 20:53:31 432

原创 java.sql.SQLException: The server time zone value ‘Öйú±ê׼ʱ¼ä‘ is unrecognized or represents more

java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. 这个问题是由于时间问题导致的java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.

2020-10-15 20:45:41 174

原创 idea 写jsp页面,导入taglib prefix=“c“ 提示Cannot resolve taglib with uri http://java.sun.com/jsp/jstl/core

jsp页面导入<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><c:set var="ctx" value="${pageContext.request.contextPath}" /> 一直提示Cannot resolve taglib with uri http://java.sun.com/jsp/jstl/core解决方法:导入jstl.jar 与statndard.jar两个...

2020-10-15 16:10:31 1259

原创 java 首字母大写方法

单个字符串需要进行首字母大写改写,网上大家的思路基本一致,就是将首字母截取,转化成大写然后再串上后面的,类似如下代码 //首字母大写 public static String firstLetterName(String name) { name = name.substring(0, 1).toUpperCase() + name.substring(1); return name; }将字符串name 转化为首字母大写。但是这种效率并不高,我...

2020-10-14 21:35:23 9537

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除