
question
shuos_yan
最后悔的事不是失败而是我本可以
展开
-
Failed to connect to github.com port 443: Timed out
在git_bash执行git config --global --unset http.proxy就可以了原创 2021-10-27 09:28:07 · 370 阅读 · 0 评论 -
lost connection ot mysql server at reading authorization packet,sys tem error:34
解决方案:use mysql;set global connect_timeout=60;flush privileges;原创 2021-06-09 10:35:43 · 305 阅读 · 0 评论 -
报错ExceptionInInitializerError
报错:解决方案:lombok 版本改成: <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.18</version> </dependency>...原创 2021-05-27 11:38:06 · 203 阅读 · 0 评论 -
Parameter 0 of method loadBalancerWebClientBuilderBeanPostProcessor in org.springframework.cloud.cli
Description:Parameter 0 of method loadBalancerWebClientBuilderBeanPostProcessor in org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration required a bean of type 'org.springframework.cloud.client.loadbalance原创 2021-05-12 10:16:53 · 2684 阅读 · 1 评论 -
.RibbonLoadBalancerClient does not define or inherit an implementation of the resolved method
问题详情:在使用nacos及openFeign进行跨服调用时出现:2021-05-10 15:01:51.794 ERROR 11348 --- [io-10050-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nest原创 2021-05-10 15:06:09 · 3945 阅读 · 0 评论 -
while scanning an alias in ‘reader‘, line 17, column 18: include: *
在使用nacos + openfeign配置暴露端口时报错:10:02:55.601 [main] ERROR org.springframework.boot.SpringApplication - Application run failedorg.yaml.snakeyaml.scanner.ScannerException: while scanning an alias in 'reader', line 17, column 18: include: *原创 2021-05-10 10:09:20 · 1318 阅读 · 0 评论 -
Failed to instantiate [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans]: F
问题:Failed to instantiate [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans]: Factory method 'configurationPropertiesBeans' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/context/prope原创 2021-05-08 14:06:39 · 6983 阅读 · 2 评论 -
maven打包错误: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources on
问题截图:解决方案:在pom.xml文件中添加: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.4.3</version>原创 2021-02-22 17:38:31 · 676 阅读 · 1 评论 -
mvn 打包失败: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources。。。。
问题:[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 2.694 s[INFO] Finished at: 2021-01-11T18:22:06+08:原创 2021-01-11 18:24:57 · 656 阅读 · 0 评论 -
Error creating bean with name ‘xxxxxxxMapper‘ defined in file
问题详情:解决方案:缺少jar依赖 <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency>原创 2020-12-01 15:22:16 · 861 阅读 · 0 评论 -
SyntaxError: (“no viable alternative at character ‘\u3000‘“, (‘D:/a/py/testpy.py‘, 7, 0, ‘\xe3\....
解决:py文件是否缺少冒号或括号或者Tab空格是否正确原创 2020-11-06 10:57:37 · 789 阅读 · 0 评论 -
springboot 配置 server.contextPath 不生效
配置了但是没有生效,解决思路:修改server.contextPath为:server.servlet.context-path=/myauth原创 2020-08-13 14:46:55 · 588 阅读 · 0 评论 -
RabbitMQ启动报错:[error] Error when reading /Users/lx/.erlang.cookie...
在启动的命令前面加上 sudo原创 2020-08-13 10:45:20 · 960 阅读 · 0 评论 -
Failed to introspect Class [org...DiscoveryClientOptionalArgsConfiguration from ClassLoader ...
在启动zuul工程时候报的问题报错原文:java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.netflix.eureka.config.DiscoveryClientOptionalArgsConfiguration] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2] at org.springframewo原创 2020-08-07 16:25:27 · 1380 阅读 · 0 评论 -
...core.annotation.AnnotationUtils.isCandidateClass(Ljava/lang/Class;Ljava/lang/Class;)Z
问题:2020-04-28 15:12:08.393 WARN 11720 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springfr...原创 2020-04-28 15:17:58 · 3157 阅读 · 0 评论 -
Parameter 0 of method redisTemplate in org...RedisAutoConfiguration required a bean of type ....
问题详情:Parameter 0 of method redisTemplate in org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration required a bean of type ‘org.springframework.data.redis.connection.RedisConnection...原创 2020-04-28 11:19:13 · 8350 阅读 · 0 评论 -
spring boot 使用@Intercepts控制台打印sql,打印不出来问题
解决方案:日志级别改成debug#日志logging.level.com.yss.cn.persistence.dao:debug原创 2020-04-20 12:41:12 · 935 阅读 · 0 评论 -
java.util.ArrayList cannot be cast to com.github.pagehelper.Page
网上有的解答是PageHelper.startPage(io.currentPage(), io.pageSize());这个位置放的不对,但是我的问题不是这个;我的解决方案是:将jar替换一下: <dependency> <groupId>com.github.pagehelper</groupId> &l...原创 2020-04-20 11:14:50 · 5584 阅读 · 0 评论 -
net.sf.jsqlparser.statement.select.PlainSelect.getGroupByColumnReferences()Ljava/util/List;
问题还原:Caused by: java.lang.NoSuchMethodError: net.sf.jsqlparser.statement.select.PlainSelect.getGroupByColumnReferences()Ljava/util/List; at com.github.pagehelper.parser.CountSqlParser.isSimpleCount(...原创 2020-04-20 11:08:22 · 3096 阅读 · 0 评论 -
...You must configure either the server or JDBC driver...
问题缘由:java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone ...原创 2020-04-17 17:39:36 · 241 阅读 · 0 评论 -
Mapper层访问不到:...required a bean of type '....TBaseAuthMapper' that could not be found.
问题展示:问题分析:你的mapper层的代码放到了启动类的上一层包,应该放在启动类的下一层包,启动类只能扫描同级及子级的包类,具体说明:解决方法:方法一:如图所视,路径改一下,加上@Mapper注解,ok了方法二:启动类添加@MapperScan注解并指定你的mapper路径,也可以...原创 2020-04-16 14:12:17 · 745 阅读 · 0 评论 -
FATAL: command execution failed java.io.IOException: error=2, No such file or directory
问题说明:使用Jenkins热部署时遇到的问题 :[stla-main] $ mvn -s /opt/maven/apache-maven-3.6.3/conf/settings.xml -gs /opt/maven/apache-maven-3.6.3/conf/settings.xmlFATAL: command execution failedjava.io.IOException: ...原创 2020-03-11 13:51:10 · 9429 阅读 · 3 评论 -
Remote URL test failed:remote:HTTP Basic:Access denied Authentication failed for ...
问题详情:场景:我是重装的git,这个原因是原来登陆的git在你电脑本地的凭证和新的git冲突,简单点说就是账号密码错误解决方案:重置凭证步骤:点击删除!然后重新使用git输入账号密码,success!!!...原创 2020-03-11 10:25:17 · 6903 阅读 · 6 评论 -
java.lang.NoSuchMethodError: freemarker.template.Configuration
问题详情:Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: freemarker.template.Configuration.(Lfreemarker/template/Version;)V原因:springBoot加载jar包问题原来的版本:修改之后:...原创 2020-03-10 10:45:30 · 1102 阅读 · 0 评论 -
CentOS 网络电缆已拔出
点击虚拟机右击设置,将网络适配器改成NAT模式在本电脑右击计算机选择管理找到服务,启动VMware NAT Service和VMUSBArbService服务看一下虚拟机,问题解决...原创 2020-01-14 10:34:19 · 737 阅读 · 0 评论 -
ERR Client sent AUTH, but no password is set
方法一:password改成requirePass方法二:直接俄把password配置项删除原创 2020-01-13 18:48:16 · 180 阅读 · 0 评论 -
file xxxx from install of xxxxxx conflicts with file from xxxxxxx
这是我在重新安装gitlab的时候出现的问题:解决方案:yum -y remove 名称比如说在我这就是:yum -y remove gitlab-ee-12.0.0-ee.0.el7.x86_64原创 2020-01-13 18:45:11 · 2552 阅读 · 0 评论 -
FirewallD is not running
没有打开防火墙的问题:打开防火墙:systemctl start firewalld查看防火墙状态:systemctl status firewalld关闭防火墙:systemctl stop firewalld原创 2020-01-13 18:42:09 · 162 阅读 · 0 评论 -
-bash: git: command not found
执行命令:yum install -y git原创 2020-01-13 18:40:28 · 23619 阅读 · 3 评论 -
-bash: patch: command not found
没有安装 patch 命令包执行 yum -y install patch 安装原创 2020-01-13 18:39:34 · 4085 阅读 · 0 评论 -
Host * is not allowed to connect to this MySQL server
解决方案:本机登入mysql后,更改"mysql"数据库里的"user"表里的"host"项,从"localhost"改为’%’。操作步骤:执行命令 mysql -u root -p执行use mysql执行update user set host = '%' where user = 'root';执行FLUSH PRIVILEGES;刷新权限表在执行第三步的时候会报错,不需要管,...原创 2020-01-08 10:59:32 · 103 阅读 · 0 评论 -
Linux 开放端口号
sbin/iptables -I INPUT -p tcp --dport 端口号 -j ACCEPT原创 2020-01-08 10:58:18 · 226 阅读 · 0 评论 -
mysql mysqladmin: command not found
解决方案: ln -s /usr/local/mysql/bin/mysqladmin /usr/bin/mysqladmin原因是此命令没有在系统默认的默认目录下说明:/usr/local/mysql/bin/mysqladmin 是mysql安装目录得bin/mysqladmin...原创 2020-01-08 10:57:36 · 756 阅读 · 0 评论 -
-bash: mysql: command not found’
解决方案:ln -s /usr/local/mysql/bin/mysql /usr/local/bin/mysql说明: “/usr/local/mysql/bin/mysql”是安装mysql目录下的bin/mysql原创 2020-01-08 10:56:02 · 149 阅读 · 0 评论 -
启动报错:Starting MySQL.200107 16:35:31 mysqld_safe error:...The server quit without updating PID file (
启动报错:Starting MySQL.200107 16:35:31 mysqld_safe error: log-error set to ‘/var/log/mariadb/mariadb.log’, however file don’t exists. Create writable for user ‘mysql’.ERROR! The server quit without upd...原创 2020-01-08 10:54:35 · 540 阅读 · 0 评论 -
FATAL ERROR: please install the following Perl modules before executing ...: Data::Dumper
问题内容:FATAL ERROR: please install the following Perl modules before executing ./scripts/mysql_install_db: Data::Dumper解决方案:安装autoconf库 命令:yum-y install autoconf原创 2020-01-08 10:10:50 · 385 阅读 · 0 评论 -
Exception ESocketError in module WSHelper.exe at 000F2AEF.WSACleanup
window 电脑启动报这个问题:Exception ESocketError in module WSHelper.exe at 000F2AEF.WSACleanup解决方案:网络重置,等待几分钟自动重启电脑就好了原创 2019-12-28 10:17:55 · 3714 阅读 · 1 评论 -
SpringBoot 解决multi-statement not allow
修改application.properties1.pring.datasource.druid.filters=stat,wall 删除wall2.url 添加allowMultiQueries=true原创 2019-12-26 14:05:03 · 842 阅读 · 0 评论 -
使用mybatis-plus 调用自身方法not found
解决方案:检查entity是否有表名称(@TableName)、表主键(@TableId)这两个注解将mybatis的sqlSessionFactory替换成mybatis-plusd的MybatisSqlSessionFactoryBean,添加配置类MybatisPlusConfig第二种解决方案代码如下:package com.yss.cn.config;import com...原创 2019-12-23 12:24:33 · 3035 阅读 · 0 评论 -
Caused by: java.lang.ClassNotFoundException: org.mybatis.logging.LoggerFactory
注释掉这两个jar包: <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <versio...原创 2019-12-23 12:15:12 · 1332 阅读 · 0 评论