![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA
zhanghaisong_2015
编码是一份乐趣,热爱爬山,喜爱看书和打乒乓球!
展开
-
java获取当前项目的物理路径
java获取当前项目的物理路径原创 2023-03-08 17:50:11 · 152 阅读 · 0 评论 -
Cannot deserialize value of type `java.util.Date` from String
Cannot deserialize value of type `java.util.Date` from String原创 2023-03-04 09:32:22 · 4791 阅读 · 0 评论 -
a bean of type ‘ZtpsMapper’that could not be found.
The injection point has the following annotations: - @org.springframework.beans.factory.annotation.Autowired(required=true)原创 2023-03-04 09:22:04 · 169 阅读 · 0 评论 -
Parameter ‘list‘ not found. Available parameters are [entities, param1]
Parameter 'list' not found.原创 2023-03-03 11:18:31 · 2156 阅读 · 2 评论 -
check the manual that corresponds to your MySQL server version
check the manual that corresponds to your MySQL server version for the right syntax to use near 'and is_del = '0'' at line 4原创 2023-02-27 08:51:04 · 686 阅读 · 0 评论 -
No enum constant org.apache.ibatis.type.JdbcType.DATETIME
java.lang.IllegalArgumentException原创 2023-02-27 08:45:20 · 1179 阅读 · 0 评论 -
No enum constant org.apache.ibatis.type.JdbcType.DATETIME
No enum constant org.apache.ibatis.type.JdbcType.DATETIME原创 2023-02-25 09:29:59 · 1057 阅读 · 0 评论 -
Parameter ‘zpspid‘ not found
Parameter 'zpspid' not found原创 2023-02-25 09:26:36 · 331 阅读 · 0 评论 -
Access denied for user ‘psmtgl‘@‘10.129.154.138‘ (using password: NO)
Access denied for user 'psmtgl'@'10.129.154.138' (using password: NO)原创 2023-02-25 09:11:45 · 133 阅读 · 0 评论 -
SecurityProxy : login failed: {“code“:403,“
c.a.nacos.client.security.SecurityProxy : login failed: {"code":500,"原创 2023-02-15 10:07:06 · 4757 阅读 · 0 评论 -
mapping values are not allowed here
mapping values are not allowed here原创 2023-02-08 17:07:11 · 1071 阅读 · 0 评论 -
ConflictingBeanDefinitionException
ConflictingBeanDefinitionException原创 2022-11-02 14:23:24 · 376 阅读 · 0 评论 -
nested exception is java.sql.SQLException: 数据转换丢失警告
insert方法报异常原创 2022-07-21 09:22:46 · 6287 阅读 · 0 评论 -
手动安装jar包
手动安装jar包原创 2022-06-07 11:28:49 · 211 阅读 · 0 评论 -
mapping values are not allowed here in ‘read
运行idea项目提示mapping values are not allowed here转载 2022-06-07 10:58:19 · 3602 阅读 · 0 评论 -
ORA-02290
问题:插入数据的时候提示“ ORA-02290”这个错误具体提示: java.sql.SQLIntegrityConstraintViolationException: ORA-02290: check constraint (ZHLUB.SYS_C00122267) violated原因:插入数据的时候 table有constraint约束,导致报错解决方法:1)修改constraint约束 2)本身该sql是非法的。根据实际情况去选择具体的解决方案。示例:该表的recieved_原创 2022-01-22 17:27:26 · 1704 阅读 · 0 评论 -
No typehandler found for property tag
问题:实体类删除了2个字段后,发现项目跑不起来了,提示“No typehandler found for property tag”原因:在对应的xml文件中旧的字段还存在,找实体类接收数据的时候找不到才报错的解决方法:在xml文件中删除旧的对应信息即可...原创 2022-01-10 11:27:05 · 1400 阅读 · 2 评论 -
DefaultDataBufferFactory can not be cast to
报错:java.lang.classCastException:org.springframework.core.io.buffer.DefaultDataBufferFactorycan not be cast to org.springframework.core.io.buffer.NettyDataBufferFactory原因:spring网关是webflux 。不是tomcat解决:排除servlet依赖<exclusions> <exclusion>...原创 2021-12-19 10:41:38 · 248 阅读 · 0 评论 -
获取不到domain信息
原因:nginx转发后 转发的是ip信息,需要转发带上domain的话 需要配置配置信息:server里面 server{ proxy_set_header Host $host}原创 2021-12-19 10:16:01 · 859 阅读 · 0 评论 -
No serializer found for class com.init..po.TestDTO
描述:在springboot项目中返回一个实体类信息到前端时报错。查询数据库接收都正常,原因:实体类中只有set没有 get方法解决:添加上get方法即可原创 2021-12-18 16:10:44 · 582 阅读 · 0 评论 -
errno 10054
idea 使用git pull命令拉取代码的时候报错 OpenSSL SSL_read: SSL_ERROR_SYSCALL,errno 10054原因:因为之前clone的时候使用http路径 ,后来http路径不能用了。解决方法:重新clone 用ssh路径然后就能正常拉取代码了。...原创 2021-09-07 11:24:26 · 414 阅读 · 0 评论 -
git push报错
remote: error: GH006: Protected branch update failed for refs/heads/develop.remote: error: At least 1 approving review is required by reviewers with write access.原因:因为push的分支需要审核,审核通过后,才能push成功。原创 2021-09-03 11:22:17 · 3586 阅读 · 2 评论 -
mybatis查询出来结果,java里面是null
一开始判断是xml文件里面没有对应的字段导致的,查了好几遍没找到原因,,直到借助idea全局搜索工具才发现在xml配置文件对应column的地方多了一个空格。。。原创 2021-07-14 17:25:05 · 165 阅读 · 0 评论 -
l每次输入git命令都要提示输入用户名,密码
ssh 公钥 和私钥配好后,在idea的terminal窗口仍然需要每次输入用户名和密码。用命令 git add remote origin mastergit@github.com:zk/first-githup.git 即可还可以解决 fatal: Not a git repository (or any of the parent directories): .git 问题...原创 2021-07-07 13:32:13 · 154 阅读 · 0 评论 -
Unable to determine sync status of node
deploy 合约的时候报错了,查找了1天的原因,最后竟然是合约地址里面多了一个空格!原创 2021-06-15 16:32:01 · 2813 阅读 · 0 评论 -
Caused by: org.xml.sax.SAXParseException;
Caused by: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 82; 必须为元素类型 "select" 声明属性 "parameter"。原因:mybatis xml文件配置 select 方法相关属性时 有parameterType,而不是parameter解决方法parameter 修改成为parameterType...原创 2020-09-23 14:29:05 · 645 阅读 · 0 评论 -
mabatissql语句和参数输出到控制台
情况:springMvc框架整合的mybatis,也配置了log4j,但是sql语句和相关参数没有输出,导致维护相当困难。解决:在mybatis的配置文件中加入 <settings> <setting name="logImpl" value="LOG4J" /> </settings>...原创 2020-07-14 14:05:00 · 203 阅读 · 0 评论 -
Mybatis if标签判断传入值
原始代码:<if test="criteria.errorType != null and criteria.errorType == '1'"> and x.result !=0 </if>发现筛选不起作用修改代码:<if test="criteria.errorTy...原创 2020-04-21 15:50:42 · 2729 阅读 · 1 评论 -
org.apache.ibatis.builder.IncompleteElementException: Could not find result
报错原因:xml文件中写了resultMap="java.lang.String"解决办法:全局搜索代码将resultMap="java.lang.String"改为resultType="java.lang.String"原创 2020-02-29 18:26:28 · 1676 阅读 · 0 评论 -
网络图片本地化
package imageView;import java.io.ByteArrayOutputStream;import java.io.File;import java.io.FileOutputStream;import java.io.InputStream;import java.net.HttpURLConnection;import java.net.URL;pub...转载 2020-02-25 22:23:47 · 329 阅读 · 0 评论 -
Scope参数错误或者没有Scope权限
错误原因:微信平台访问路径的后面需要以“&scope=snsapi_base”结尾!解决方法:结尾加上“&scope=snsapi_base”就可以了原创 2019-12-17 11:08:15 · 1538 阅读 · 0 评论 -
tomcat 日志乱码
本文链接:https://blog.csdn.net/DaneLei/article/details/910391921、找到apache-tomcat-8.5.41/conf/logging.properties2、添加语句:java.util.logging.ConsoleHandler.encoding = GBK————————————————版权声明:本文为CSDN博主「蟹海...转载 2019-12-03 19:31:28 · 120 阅读 · 0 评论 -
toTimeLimited:171 Uncaught SyntaxError: missing ) after argument list
出错原因:因为$("#id").append(‘’<a href="javascript:obtain('+data+',44)"></a>‘’);解决方法:因为系统外面上引号的印象,默认为里面是个数字之类的变量,导致 查找 function函数的时候 报错了,改成$("#id").append(‘’<a href="javascript:obtai...原创 2019-11-28 21:08:20 · 86 阅读 · 0 评论 -
Cause: org.xml.sax.SAXParseException; lineNumber: 58; columnNumber: 14; 元素类型为 "resultMap" 的内容必须匹配 "(
原因:平常mybatis文件都是自动生成的,因为新加了一个字段,导致id放在后面了!把id放在前面就ok了!原创 2019-11-28 21:05:23 · 775 阅读 · 0 评论 -
Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name [Te
错误原因:因为servlet改名的原因 wex.xml里面的servlet没有改,导致报错!解决方法:web.xml文件中的配置改成正确类名和路径就ok了!原创 2019-11-27 10:36:10 · 1158 阅读 · 0 评论 -
Caused by: org.xml.sax.SAXParseException; lineNumber: 25; columnNumber: 88; 必须为元素类型 "select" 声明属性 "r
原因:xml文件的单词有错误,改正即可!原创 2019-11-25 20:45:14 · 1177 阅读 · 0 评论 -
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorEx
原因:mybatis查询cout结果集的时候没有加上resultType原创 2019-11-25 10:09:00 · 322 阅读 · 0 评论 -
com.yinlian.wssc.web.mapper.xml.YlSignMapper
原因:一开始以为是方法里面的返回参数和传入参数的问题,查询了半小时,最后才发现是mapper的对应路径写错了。原创 2019-11-21 19:07:42 · 128 阅读 · 0 评论 -
NoClassDefFoundError: net/sf/ezmorph/Morpher]
缺少ezmorph-1.0.6.jar原创 2019-07-23 16:14:13 · 571 阅读 · 0 评论 -
Caused by: java.lang.IllegalStateException: Unable to complete the scan for annotations for web appl
原因:jar包冲突 jdk1.6环境2个jar能共存,换成jdk1.8之后就有问题了!bcprov-jdk15on-157.jarbcprov-jdk16-1.45解决方法bcprov-jdk16-1.45删除就ok原创 2019-07-23 16:40:14 · 402 阅读 · 0 评论