![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
问题解决
文章平均质量分 51
YKenan
善待
展开
-
解决 yum 源的一些报错
为 repo 'base' 下载元数据失败 : Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were triederror: command 'gcc' failed with exit status 1RPM软件包: 错误:无法从 /var/lib/rpm 打开软件包数据库原创 2022-04-01 15:58:27 · 3932 阅读 · 0 评论 -
解决连接MySQL出现Client does not support authentication protocol requested by server; consider upgrading M
连接 MySQL 出1. 出现原因2. 解决方案2.1 升级更新2.2 更改 MySQL 的加密规则Client does not support authentication protocol requested by server; consider upgrading MySQL client1. 出现原因无论是用 navicat 软件还是其他软件连接出现的此类问题,以及是语言前后端连接出现的此类问题。基本上都是 mysql8 之前的版本中加密规则是mysql_native_pass原创 2021-08-13 10:27:02 · 2767 阅读 · 0 评论 -
Android 中报错 W/System.err: java.net.ConnectException: Failed to connect to localhost/127.0.0.1:8080
Android 中报错 W/System.err: java.net.ConnectException: Failed to connect to localhost/127.0.0.1:80801. 原因2. 解决1. 原因模拟器默认把 127.0.0.1/localhost 当做模拟器本身.2. 解决用 10.0.2.2 进行代替.若在局域网, 也可以用局域网 IP 代替....原创 2021-03-07 14:30:09 · 3621 阅读 · 0 评论 -
Android 中报错 W/System.err: android.os.NetworkOnMainThreadException
Android 中报错 W/System.err: android.os.NetworkOnMainThreadException1. 原因2. 解决2.1 方法一 (访问少)2.1 方法二 (推荐)1. 原因主线程中进行网络请求异常, Android4.0 版本开始后就强制程序不能在主线程中访问网络, 要把访问网络放在独立的子线程中.2. 解决在 AndroidManifest.xml 文件中开启访问权限<uses-permission android:name="android.原创 2021-03-07 14:17:15 · 4240 阅读 · 4 评论 -
解决 java.lang.RuntimeException: Method i in android.util.Log not mocked. See http://g.co/androidstudi
解决 java.lang.RuntimeException: Method i in android.util.Log not mocked. See http://g.co/androidstudio/not-mocked for details.1. 原因2. 解决1. 原因Android SDK 中测试一个 Json 不会消耗哪些本不必要的资源.2. 解决添加包 testImplementation 'org.json:json:20201115'自定义一个 JsonUt原创 2021-03-04 11:45:06 · 2479 阅读 · 6 评论 -
解决 Tomcat 报错 java.lang.IllegalArgumentException: Invalid character found in method name.
解决 Tomcat 报错 java.lang.IllegalArgumentException: Invalid character found in method name.1. 原因2. 解决2.1 添加配置 (推荐)2.2 其他方法 Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level. java.lang.IllegalArgumentException: Invalid ch原创 2020-12-28 09:38:23 · 5861 阅读 · 2 评论 -
解决 Problematic frame: C [sigar-amd64-winnt.dll+0x14ed4] 问题 (JDK11 后版本生成 JRE, 得到当前进程)
解决 Problematic frame: C [sigar-amd64-winnt.dll+0x14ed4] 问题1. 主要由于 JDK 版本问题2. Linux 下 11 版本的都合适2.1 JDK11 后版本添加 JRE1. 主要由于 JDK 版本问题Java 版本中 1.8.0_131 到 1.8.0_241 都适合, 在 jdk1.8.0_261 包括在内以及以上不适合2. Linux 下 11 版本的都合适这个我也不知为何, Linux 下 Java11 可以, Windows原创 2020-12-18 17:03:38 · 2717 阅读 · 3 评论 -
解决 SpringBoot 中 Failed to load ApplicationContext 报错
解决 SpringBoot 中 Failed to load ApplicationContext 报错1. 原因2. 基本解决方法1. 原因原因有很多基本上查看 Caused by 即可知晓.导入的包在配置文件内没有设置. (多见于导入数据库, 但是没有在其中进行配置 dataSource; 扫面包没有加.)其他类中链接了配置文件. (多见于其他类使用 @PropertySource 注解)包的冲突2. 基本解决方法在测试类中加上:Application.class 为启动类的原创 2020-12-17 17:32:35 · 16850 阅读 · 0 评论 -
解决 Oracle 链接 TNS:no appropriate service handler found 报错
解决 Oracle 链接 TNS:no appropriate service handler found 报错1. 原因2. 解决1. 原因连接全部被占用导致.-- 登录sqlplus / as sysdba-- 查看当前连接数select count(*) from v$process;-- 查看允许最大连接数 (默认为 150)select value from v$parameter where name = 'processes';2. 解决-- 修改最大连接数al原创 2020-12-09 13:22:10 · 3168 阅读 · 0 评论 -
Selenim 遇到的一些问题
Selenim 遇到的一些问题1. 点击后获取页面2. 无法点击的问题3. 设置日期时间格式1. 点击后获取页面当进行点击后, 需要得到当前页面代码.其中刷新和沉睡是为了防止得到的页面代码不全# 窗口处理def driver_current_window_handle(driver): # 获取所有的窗口 handles = driver.window_handles # 切换窗口 for handle in handles: if han原创 2020-11-20 16:13:08 · 156 阅读 · 0 评论 -
高版本 JDK 中找不到 PostConstruct 注解找不到
高版本 JDK 中找不到 PostConstruct 注解找不到添加依赖<!-- https://mvnrepository.com/artifact/javax.annotation/javax.annotation-api --><dependency> <groupId>javax.annotation</groupId> <artifactId>javax.annotation-api</artifactId原创 2020-11-17 17:48:04 · 2416 阅读 · 1 评论 -
JDK 版本高无法找到 sun.misc.BASE64Encoder 的 jar 包的解决方法
JDK 版本高无法找到 sun.misc.BASE64Encoder 的 jar 包的解决方法1. 导包2. 替换1. 导包 <!-- https://mvnrepository.com/artifact/org.apache.directory.studio/org.apache.commons.codec --> <dependency> <groupId>org.apache.directory.studio</groupId&g原创 2020-11-17 17:44:18 · 2241 阅读 · 2 评论 -
解决 SpringBoot Elasticsearch 7.x 聚合查询遇到的问题
SpringBoot Elasticsearch 7.x 聚合查询遇到的问题1. 时间的问题2. 无法进行聚类的问题2.1 解决3. 类型转换的问题1. 时间的问题报错java.time.DateTimeException: Unable to obtain Instant from TemporalAccessor: {},ISO resolved to 2019-04-30T16:00 of type java.time.format.Parsed解决:POJO 类中 Date 类型转化原创 2020-07-16 13:48:58 · 6732 阅读 · 2 评论 -
解决报错 Vue Expected indentation of x spaces but found x
解决报错 Vue Expected indentation of x spaces but found x1. 出现原因2. 解决方法2.1 方法一 (推荐)2.2 方法二1. 出现原因1. Vue 项目中 Eslint 严格把控代码规范.2. 缩进未按照 Eslint 代码规范.2. 解决方法2.1 方法一 (推荐)找到项目下的 .eslintrc.js 文件.在指定位置加入下面内容:'indent': ['off', 2],2.2 方法二关闭 Eslint 检验, 不推原创 2020-05-13 18:50:18 · 7145 阅读 · 0 评论 -
解决 WebStorm 提示 TypeError: this.cliEngine is not a constructor
解决 WebStorm 提示 TypeError: this.cliEngine is not a constructor方法一方法二方法一点击右上角出现的 Detail, 之后点击报错中含有 eslint-plugin 的一行进入该文件.this.cliEngine = require(packagePath + "lib/cli-engine");之后将上面的改为下面的.this.cliEngine = require(packagePath + "lib/cli-engine").原创 2020-05-13 15:11:53 · 1196 阅读 · 0 评论 -
解决 ZuulFilter 与 JWT 的报错
解决 ZuulFilter 与 JWT 的报错导包解决<properties> <!-- 解决 zuulFilter 与 JWT 报错的包 --> <jaxb.version>2.3.1</jaxb.version> <jaxb-core.version>2.3.0</jaxb-core.version> <activation.version>1.1.1</activation.version>原创 2020-05-10 19:45:38 · 208 阅读 · 0 评论 -
Eureka 中 JDK 11 遇到的问题
Eureka 中 JDK 11 遇到的问题警告:WARNING: An illegal reflective access operation has occurredWARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/C:/.../xstream-1.4.10.ja...原创 2020-05-06 21:41:17 · 696 阅读 · 0 评论 -
SpringBoot 中 application.properties 提示 Cannot resolve configuration property 'xxxx'
SpringBoot 中 application.properties 提示 Cannot resolve configuration property 'xxxx'1. 导包2. 添加1. 导包<dependency> <groupId>org.springframework.boot</groupId> <artifactId>sprin...原创 2020-05-05 15:40:35 · 4343 阅读 · 0 评论 -
解决 Nginx 报错 invalid PID number ““ in “/xxx/nginx.pid“ 和 nginx: [emerg] still could not bind()
解决 Nginx 报错 invalid PID number "" in "/xxx/xxx/xxx/nginx.pid"1. 出现的现象2. 解决方法1. 出现的现象在 nginx.conf 文件中加上下面的语句出现了报错查看 Nginx 日志: 路径为 nginx 安装路径下 /logs/error.log 文件中.2020/03/26 17:17:29 [notice] 23...原创 2020-03-27 20:38:46 · 721 阅读 · 0 评论 -
Nginx 首页出现 403 forbidden
Nginx 首页出现 403 forbidden1. 出现的现象2. 解决方法2.1 登录 Linux 的用户运行 Nginx 和 Nginx 工作用户不一致2.1 Nginx 缺少对 web 目录的操作的权限3. 检查, 重启 Nginx1. 出现的现象2020/03/26 17:04:43 [error] 23045#0: *1 “/mnt/data/ngnix/ngnix/nginx/...原创 2020-03-27 20:24:12 · 554 阅读 · 0 评论 -
设置 shell 中脚本的编码, 解决乱码问题
设置 shell 中脚本的编码这是其中一种方法无 ~/.vimrc 文件, 执行以下命令, 有该文件去掉第一行touch /root/.vimrcecho "set encoding=utf-8 fileencodings=ucs-bom,utf-8,cp936" >> /root/.vimrcsource ~/.vimrc...原创 2020-01-10 20:10:58 · 4601 阅读 · 0 评论 -
Docker 重新进入容器时设置的环境变量就会失效的解决方法
Docker 重新进入容器时设置的环境变量就会失效的解决方法1. 选择文件2. 文件是否存在1. 选择文件相关环境变量有以下几个文件~/.bashrc~/.profile~/.bash_profile/etc/profile/etc/environment/etc/bash.bashrc选择 ~/.bashrc 也就是 /root/.bashrc 文件2. 文件是否存...原创 2020-01-08 16:45:35 · 2476 阅读 · 1 评论 -
Linux 中文件夹类型没有颜色的解决办法
Linux 中文件夹类型没有颜色的解决办法1. 修改文件2. 添加内容3. 使其生效修改文件添加内容使其生效1. 修改文件vim ~/.bashrc2. 添加内容alias ls="ls --color"3. 使其生效source ~/.bashrc...原创 2020-01-08 12:03:36 · 4824 阅读 · 0 评论 -
yum 报错: If above article doesn‘t help to resolve this issue please use https://bugs.centos.org/.
yum 报错1. 报的错2. 解决1. 报的错If above article doesn’t help to resolve this issue please use https://bugs.centos.org/.[root@iZ2ze06kmfgcyh69s9q3luZ ~]# yum install mysql-serverLoaded plugins: fastestmi...原创 2019-12-20 19:38:04 · 7214 阅读 · 0 评论 -
docker 报错 Exited (1) 4 minutes ago
docker 报错1. 查看原因2. 报错原因1. 查看原因docker logs nexus2. 报错原因OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000e7000000, 419430400, 0) failed; error=‘Cannot allocate memory’ (errno=...原创 2019-12-18 14:59:26 · 7011 阅读 · 0 评论 -
添加 Redis 缓存等其他遇到这个报错的问题
添加 Redis 缓存遇到的问题1. 报错2. 原因3. 解决1. 报错Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bea...原创 2019-12-13 18:40:32 · 299 阅读 · 0 评论 -
MySQL8解决In aggregated query without GROUP BY, expression #2 of SELECT list contains nonaggregated...
MySQL8解决In aggregated query without GROUP BY, expression #2 of SELECT list contains nonaggregated...1. 报错原因2. 解决方法2.1 暂时2.2 长期1. 报错原因MySQL8 对 group by 进行了优化. 他默认启动改进之后的版本启动了 ONLY_FULL_GROUP_BY 模式....原创 2019-11-22 16:47:28 · 3963 阅读 · 0 评论 -
监听 div 标签内的内容是否改变
监听 div 标签内的内容是否改变1. 代码1. 代码$("div").bind('DOMNodeInserted', function() { console.log("div 内容发生改变了");});原创 2019-11-16 13:18:41 · 898 阅读 · 0 评论 -
解决 IDEA 中 thymeleaf ${} 中报波浪线错误
解决 IDEA 中 thymeleaf ${} 中报波浪线错误1. 报错2. 解决1. 报错上面图片中的内容无法解析下方图片中的变量2. 解决我也没有找到什么好的解决方案或者直接在搜索栏中搜索 thythymeleaf...原创 2019-11-16 11:19:37 · 1359 阅读 · 0 评论 -
解决 js 方法中时间差和顺序带来的影响
解决 js 方法中时间差和顺序带来的影响1. 原因2. 解决思想1. 原因js 的记载顺序是从上到下的, 由于执行的时间不一定, 故执行完的顺序就不一定了, 然而这样会带来许多麻烦2. 解决思想1. 函数嵌套调用2. 用 setTimeout 函数3. 用判定变量以上三种方法可以解决几乎所有的 js 方法中时间差和顺序带来的影响...原创 2019-11-15 21:25:09 · 170 阅读 · 0 评论 -
解决 margin-top 不好使的情况
解决 margin-top 不好使的情况1. 原因2. 解决1. 原因基本上是由于上个标签浮动导致的2. 解决在该标签的父标签中添加如下 cssclear: both;overflow:hidden;...原创 2019-11-14 20:18:48 · 337 阅读 · 0 评论 -
Python 使用 Graphviz 绘图遇到的问题和解决方法
Python 使用 Graphviz 绘图遇到的问题和解决方法1. 遇到的问题2. 解决方法2.1 下载安装2.2 配置环境2.3 安装组件1. 遇到的问题ModuleNotFoundError: No module named 'graphviz’原因: 未安装 graphviz 组件graphviz.backend.ExecutableNotFound: failed to ex...原创 2019-11-08 19:18:42 · 2290 阅读 · 0 评论 -
远程连接服务器数据库报错: Host ‘xx.xx.xx.xx’ is blocked because of many connection errors
远程连接服务器数据库报错: Host ‘xx.xx.xx.xx’ is blocked because of many connection errors1. 出现错误原因2. 解决方案2.1 提高允许的 max_connection_errors 的数量2.1.1 首先查看该属性设置为多大2.1.2 修改属性2.1.3 再次查看2.1.4 若需要永久解决问题2.2 清楚缓存1. 出现错误原因...原创 2019-11-05 18:51:29 · 419 阅读 · 0 评论 -
python 中一个报错: TypeError: can't multiply sequence by non-int of type 'numpy.float64'
python 中一个报错: TypeError: can't multiply sequence by non-int of type 'numpy.float64'1. 错误所在2. 纠正错误数据的差距1. 错误所在2. 纠正错误转化为矩阵就没有问题数据的差距...原创 2019-11-03 15:18:53 · 19257 阅读 · 3 评论 -
Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on proj
@[TOC](解决 Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project maven: Failed to clean project: Failed to delete D:\install\eclipse\eclipsewp\maven\ta...原创 2019-03-21 19:44:38 · 4080 阅读 · 3 评论 -
junit报错 java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=testSelectByExample
junit 报错 java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=testSelectByExample], 坑了我三个点的问题不是没写 @Test,不是 public,参数,返回值,修饰符的错误,也不是 spring 包与 junit 的包的不兼容@RunWith(SpringJUnit...原创 2019-03-22 19:06:39 · 9628 阅读 · 2 评论 -
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000b5000000, 419430400, 0) failed;
Liunx 内存不足问题OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000b5000000, 419430400, 0) failed; error=‘Cannot allocate memory’ (errno=12)表示内存不足可以查看一下 top 命令,或者 free 命令杀死进程链接:...原创 2019-03-23 17:16:08 · 16217 阅读 · 1 评论 -
Tomcat 9 中 报错 403 access denied
Tomcat 9 中 报错 403 access denied链接:https://blog.csdn.net/YKenan/article/details/88724901打开 /webapps/manager/META-INF/context.xml 文件,不是 conf/context.xml 文件将文件中的内容注释掉,或者改为下面的内容<Valve classN...原创 2019-03-24 10:56:58 · 279 阅读 · 0 评论 -
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean)
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project vue: Failed to clean project: Failed to delete D:\install\eclipse\eclipsewp\vue\target\t...原创 2019-03-26 09:19:25 · 818 阅读 · 0 评论 -
maven 中 的一个重要的结论,非则就会报错
maven 中 的一个重要的结论,非则就会报错会报找不着包的错误在父项目下有的子项目在首次运行 clean 和 install 前应该先运行父项目的 clean 和 install在父项目下有的子项目在首次运行 clean 和 install 前应该先运行父项目的 clean 和 install在父项目下有的子项目在首次运行 clean 和 install 前应该先运行父项目的 cl...原创 2019-03-26 20:21:46 · 177 阅读 · 0 评论