自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 重装系统后刚安装的IDEA点击无反应,任务管理器也没进程也不报错。

解决办法:1、在你的安装目录找到下图文件用记事本打开2、查看你的破解文件指导目录是否正确3、试一下点击IDEA图标运行程序看能否打开,如果不行在👉点击这个👈网站下载对应C++库运行安装。4、enjoy!...

2022-02-23 21:02:22 1139 1

原创 链接数据库 报错java.sql.SQLException: Unsupported character encoding ‘utf-8......

项目启动报如下错误信息:java.sql.SQLException: Unsupported character encoding 'utf-8;serverTimezone.......分析:由“java.sql.SQLException” 可知道很大概率是关于数据库的错误 由“character encoding 'utf-8” 可分析应该是连接配置上出了问题原配置:spring.datasource.url=jdbc:mysql://localhost:3306/test?charac.

2021-02-19 22:35:29 4278

原创 运行java程序报错class not found

在eclipse的web工程中,导入jar包后,引用方法没任何问题,然而到运行的时候报错class not found。problems窗口提示一个警告:Classpath entry *.jar will not be exported or published. Runtime ClassNotFoundExceptions may result.原因:没有正确把jar放到正确位置解决办法:把jar包 放在WEB-INF下的lib文件夹下,然后右键选中Build Path 再点击Add to

2021-01-28 22:38:10 1476

原创 ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘

今天把虚拟机中的centos 从机械硬盘转移到固态硬盘,然后启动mysql时报错:[root@localhost ~]# mysqlERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)解决办法:[root@localhost opt]# ls /var/lib/mysql/mysql.sockls: 无法访问/var/lib/mysql/mys

2020-12-20 22:05:36 206 1

原创 项目使用maven 逆向生成 tomcat启动报错

Caused by: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.atguigu.atcrowdfunding.mapper.TAccountTypeCertMapper.BaseResultMapCaused by:

2020-11-13 21:58:37 324

原创 maven mvn site 命令报错

在工程的pom.xml 下添加如下插件命令<build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-pl...

2020-11-04 21:42:15 343

原创 Using ‘UTF-8‘ encoding to copy filtered resources. skip non existing resourceDirectory

maven buid 工程时报如下错误:[INFO] Using 'UTF-8' encoding to copy filtered resources.[INFO] skip non existing resourceDirectory E:\workspace\workspace190401EE\Hello\src\main\resources原因:路径名称写错了解决办法:仔细检查路径和路径名称是否按要求写的。...

2020-10-30 23:10:17 4072

原创 IMESTAMP with implicit DEFAULT value is deprecated.

[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).安装mysql 初始化时显示如下错误:解决办法:vi /etc/my.cnf添加如下语句:保存退出后重试。...

2020-08-16 19:18:21 725

原创 缺少/etc/mime.type

解决办法:在:/run/media/root/CentOS\ 7\ x86_64/Packages 文件路径下[root@localhost Packages]# rpm -ivh mailcap-2.1.41-2.el7.noarch.rpm准备中... ################################# [100%]正在升级/安装... 1:mailcap-2.1.41-2.el7 ###...

2020-08-03 20:48:35 299

原创 linux 访问名字带有空隔的文件夹需要用 ‘\空隔’ 来代替空隔

2020-08-03 18:39:46 134

原创 redis.clients.jedis.exceptions.JedisDataException......attempt to compare nil with number 

八月 03, 2020 6:15:54 下午 org.apache.catalina.core.StandardWrapperValve invoke严重: Servlet.service() for servlet [doseckill] in context with path [/Seckill] threw exceptionredis.clients.jedis.exceptions.JedisDataException: ERR Error running script (call to f

2020-08-03 18:25:30 2740

原创 创建redi集群:[ERR] Node 192.168.108.128:6391 is not empty. Either the node already knows other nodes ...

解决办法:见红色字体>>> Creating cluster [ERR] Node 192.168.108.128:6391 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0. [root@localhost src]# redis-cli -h 192.168.108.128 -p ...

2020-08-02 22:36:06 262

转载 出现The superclass “javax.servlet.http.HttpServlet“ was not found on the Java Build Path 问题解决

解决办法:https://jingyan.baidu.com/article/17bd8e5270ff5e85aa2bb876.html

2020-08-01 22:26:22 73

原创 连接不上虚拟机上的linux sftp服务

可能原因:指定了虚拟机上的ip地址解决办法:重置虚拟机网络配置

2020-08-01 19:55:46 942 1

原创 eclipse 新建web工程 启动tomcat后无法访问到index页面问题

因为没有把项目配置到服务器上

2020-07-08 22:04:01 1264

原创 异常:nested exception is java.sql.SQLException: Column count doesn‘t match value count at row 1

错误信息:org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [insert into emp values(null,'张三',24,'男')]; nested exception is java.sql.SQLException: Column count doesn't match value count at row 1原因:数据库表的字段名数量和你插入数据的成员信息字段数量不匹配

2020-07-06 09:22:23 4829

原创 java异常:前言中不允许有内容。

报错:org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from class path resource [db.properties] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; 前言中不允许有内容。原因:低级错误!使用时

2020-07-05 22:08:07 11100 1

原创 java运行报错:java.lang.Exception: No tests found matching....from org.junit.internal.requests.ClassReque

java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=testCRUD],{ExactMatcher:fDisplayName=testCRUD(com.atguigu.test.TestSQL)], {LeadingIdentifierMatcher:fClassName=com.atguigu.test.TestSQL,fLeadingIdentifier=testCRUD]] from org.junit.in

2020-06-26 21:28:28 548 1

原创 eclipse运行web工程时报错

错误信息:Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other proc

2020-05-31 19:44:04 224

原创 window开启telnet服务

2020-05-29 11:03:12 176

原创 给数据库添加日期类型的数据报错

报错信息:The method setDate(int, java.sql.Date) in the type PreparedStatement is not applicable for the arguments (int, java.util.Date)分析原因:数据库中的Date和java中的Date不兼容解决办法:类型强转一下...

2020-04-21 23:10:59 1056 2

原创 关于:java.sql.SQLException: Too many parameters: expected 0, was given 6 Query

原因是我在写一个向数据库添加成员的接口实现类方法的时候忘记写:values(?,?,?,?,?,?)

2020-03-29 21:51:31 2143 1

原创 启动 tomcat服务器报:The JRE_HOME environment variable is not defined correctly This environment

可以在你点击startup.bat的文件路径上方输入CMD,然后输入startup。如果显示你的JRE_HOME文件路径不对解决方法:添加你的JDK中的jre文件目录到环境变量中添加后再此点击startup.bat或者在命令行中执行startup显示如下就表示可以了...

2020-03-09 20:47:20 575 1

原创 java 模块引用运行报Error:Kotlin

具体信息: Error:Kotlin: The Kotlin standard library is not found in the module graph. Please ensure you have the 'requires kotlin.stdlib' clause in your module definition解决方法:Build Rebuild Proje...

2020-02-27 17:59:55 3926 1

原创 单元测试:java.lang.Exception: Method bufferedStream should have no parameters

单元测试遇见错误信息:java.lang.Exception: Method bufferedStream should have no parameters其实是因为你的其他方法在调用你的xxx方法,而你的xxx上的@Test 的原因引起,删除即可。java.lang.Exception: Method xxx should have no parameters...

2020-02-15 21:12:51 600

原创 IDEA 运行单元测试所遇到的问题及解决方法

输入@Test后显示还需要导入JUNIT到类环境变量里。我们点击Add “JUnit4"to classpath然后到下一步勾选Download to选到你idea的安装目录下的lib文件夹点击OK然后测试...

2020-01-31 13:15:24 3189

原创 python关于复数的概念

1. Phython中关于复数的概念: 复数由实数部分和虚数部分构成,real + imag(J/j后缀) 实数部分和虚数部分都是浮点数&gt;&gt;&gt; aComplex=4.23+8.5j&gt;&gt;&gt; aComplex(4.2300000000000004+8.5j)&gt;&gt;&gt; aComplex.real #num.real 返回复数的实...

2018-04-12 16:18:19 1872

空空如也

空空如也

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

TA关注的人

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