随笔分类 - 项目问题
项目遇到的一些问题及解决
摘要:加入参数 --default-character-set=utf8 --hex-blob
阅读全文
摘要:问题1 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disa
阅读全文
摘要:跨域问题 host和origin 不一致导致的跨域 前台请求后端接口 ,host和origin的ip/域名 不一致导致跨域 接口提供方配置 allow-origin 和skip-referer 为origin 的ip或域名,解决 自定义header参数导致的跨域 跨域提示 No 'Access-Co
阅读全文
摘要:Multiple markers at this line 项目 build path 设置下sdk版本;右键properties-> java complier ->设置下编译版本 [ERROR] Failed to execute goal org.apache.maven.plugins:ma
阅读全文
摘要:本地的ip为 192.168.137.x vpn的ip为 172.16.197.x 现需访问 192.168.231.x, 连接vpn后,由于vpn的设定,默认走vpn 执行 route add 192.168.231.0 mask 255.255.255.0 192.168.137.1 所有需要发
阅读全文
摘要:npm install时报 npm ERR! code EINTEGRITY 删除package.lock.json文件 npm cache clean --force npm install 重新安装
阅读全文
摘要:cvc-id.3: A field of identity constraint 'web-common-filter-name-uniqueness' matched element 'web-app', but this element does not have a simple type.
阅读全文
摘要:报错:Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer 或 Cannot access defaults field of Properties 解决: <plugin> <gr
阅读全文
摘要:导入sql时 [ERR] 2006 - MySQL server has gone away max_allowed_packet set global max_allowed_packet = 10 * 1024 * 1024;
阅读全文
摘要:java.sql.BatchUpdateException: Incorrect string value: '\xAC\xED\x00\x05sr...' for column 'xx' 通常是preparedStatement.setObject(index,obj); 其中 obj 是自定义的
阅读全文
摘要:進入jar包路徑,執行下面語会在仓库生成,然后pom中引用路径 mvn install:install-file -Dfile=bcprov-jdk15on-1.54.jar -DgroupId=org.bouncycastle -DartifactId=bcprov-jdk15on -Dversi
阅读全文
摘要:mysql命令 load data infile 报错 Data truncated for column : 原因是:导入的文件 默认字段分隔符是"\t", 记录分隔符是"\n", 而出错的文件的记录分隔符使用了"\r\n"。
阅读全文
摘要:报错: java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp 解决: 设置下jdbc连接:setConnectionProperties("zeroDateTim
阅读全文
摘要:问题: 本地开发环境的操作系统是windows 使用获取classes绝对路径的方法 最后要去掉最前面的"/",部属到linux服务器上时,常见目录时报错 打印下路径: #### 20210708 10:41:18,641 | INFO | 文件路径:opt/apache-tomcat-7.0.10
阅读全文