问题大全错误解决大全
- 多模块项目依赖中,项目启动失败-org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException
- 报错:Error: The project seems to require yarn but it‘s not installed
- npm ERR! fatal: Could not read from remote repository.
- idea 2022.3启动不了 fuck_the_regulations
- request to http://registry.cnpmjs.org/async-validator failed, reason: getaddrinfo ENOTFOUND registry.cnpmjs.org registry.cnpmjs.org:80
- Failed to bind properties under 'spring.datasource.type' to java.lang.Class<javax.sql.DataSource>:
- npm install安装报错解决方法
- Error: spawn cmd ENOENT at Process.ChildProcess._handle.onexit
- java.net.ConnectException: Connection refused: no further information
- java 程序包javax.validation.constraints不存在
- tcnative-1全版本下载地址和下载路径
- ClassNotFoundException: org.mybatis.logging.LoggerFactory
- 报错:java: 读取D:\XX\XXX.jar时出错; error in opening zip file[有效解决方案]
- No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
- Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletContext
- java编译时error: illegal character '\ufeff' 的解决办法 java: 需要class, interface或enum
- insert语句 一直报sql错误
- css 未载入,因为它的 MIME 类型 “text/html“ 不是 “text/css“。
- springboot 通过域名访问静态资源
- Access denied for user 'wulei'@'localhost' (using password: YES)
- DataGrip JDBC报错Public Key Retrieval is not allowed
多模块项目依赖中,项目启动失败-org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException
https://blog.csdn.net/weixin_51091560/article/details/128837029
报错:Error: The project seems to require yarn but it‘s not installed
https://blog.csdn.net/Ceiee/article/details/126502409
删除yarn.lock文件
终端输入:npm install -g yarn
下载完成后重新启动文件即可
npm ERR! fatal: Could not read from remote repository.
https://blog.csdn.net/ss810540895/article/details/127546694
idea 2022.3启动不了 fuck_the_regulations
https://blog.csdn.net/Ntotl_/article/details/128199277
request to http://registry.cnpmjs.org/async-validator failed, reason: getaddrinfo ENOTFOUND registry.cnpmjs.org registry.cnpmjs.org:80
遇到这个问题的原因是由于在npm中设置了代理,那解决办法如下:
方法:
(1)修改源地址位淘宝镜像
npm config set registry http://registry.npm.taobao.org/
(2)修改源地址为官方源
npm config set registry https://registry.npmjs.org/
再使用cnpm 即可。
Failed to bind properties under ‘spring.datasource.type’ to java.lang.Class<javax.sql.DataSource>:
edit pom.xml
<!-- 引入Druid依赖,阿里巴巴所提供的数据源 --><dependency><groupId>com.alibaba</groupId><artifactId>druid-spring-boot-starter</artifactId><version>1.1.13</version></dependency><dependency><groupId>com.alibaba</groupId><artifactId>fastjson</artifactId><version>1.2.47</version></dependency>
npm install安装报错解决方法
npm install -g cnpm --registry=http://registry.npm.taobao.org
安装完之后可以通过cnpm -v 检验是否安装成功。如下所示就是安装成功了。
cnpm install
https://blog.csdn.net/weixin_42260782/article/details/122819145
Error: spawn cmd ENOENT at Process.ChildProcess._handle.onexit
解决方案:在系统变量 Path 里面加上:%SystemRoot%\system32,关掉终端,重新启动软件,重新启动项目。
java.net.ConnectException: Connection refused: no further information
https://blog.csdn.net/weixin_65385738/article/details/124488534
意思是 各种中间件连接错误 可能是Redis,Nginx,RabbitMQ,ES等
java 程序包javax.validation.constraints不存在
https://blog.csdn.net/Darling_qi/article/details/124512355
tcnative-1全版本下载地址和下载路径
http://archive.apache.org/dist/tomcat/tomcat-connectors/native/
首先下载文件,版本号要与本地tomcat版本对应(不知道版本号的可以随便下载一个,把文件放入tomcat的bin目录下后,再重启tomcat,启动日志里会以ERROR日志打印错误并告诉你应该装哪个版本)
下载路径:
1.1版本的,找到对应版本号点击进入 ----> binaries/ ---->win32/ 或者win64 ----> amd64/ (win32没有这一步) ----> 下载文件tcnative-1
1.2版本的, 点击对应版本号进入 ----> binaries/ ----> 下载第一个zip文件,如tomcat-native-1.2.19-openssl-1.0.2q-ocsp-win32-bin.zip。解压后有64位和32位的 tcnative-1。
1
2
3
注:这个文件是要放在tomcat的bin目录下
ClassNotFoundException: org.mybatis.logging.LoggerFactory
报错:java: 读取D:\XX\XXX.jar时出错; error in opening zip file[有效解决方案]
https://blog.csdn.net/weixin_56114243/article/details/128208072
删除原来的jar包,重新拉取下载。
No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
mysql5.7
useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC&allowMultiQueries=true
mysql8
useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC&allowMultiQueries=true&allowPublicKeyRetrieval=true
Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletContext
解决:
https://blog.csdn.net/weixin_43900439/article/details/111644728
java编译时error: illegal character ‘\ufeff’ 的解决办法 java: 需要class, interface或enum
解决办法
Idea:逐个打开每个文件,点击右下角UTF-8,点击移除BOM。
insert语句 一直报sql错误
insert into order (id, order_no…
原因:order是mariaDB关键字
修改:修改表名即可
css 未载入,因为它的 MIME 类型 “text/html“ 不是 “text/css“。
https://blog.csdn.net/Aaronszh/article/details/122370410
springboot 通过域名访问静态资源
解决:https://blog.csdn.net/m0_63622279/article/details/128755229
Access denied for user ‘wulei’@‘localhost’ (using password: YES)
将user改为username
DataGrip JDBC报错Public Key Retrieval is not allowed
add
?useSSL=false&allowPublicKeyRetrieval=true
MySQL 8.0 以上版本的数据库连接有所不同:
1、MySQL 8.0 以上版本驱动包版本 mysql-connector-java-8.0.16.jar。
2、com.mysql.jdbc.Driver 更换为 com.mysql.cj.jdbc.Driver。
MySQL 8.0 以上版本不需要建立 SSL 连接的,需要显示关闭。