![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Bug
不想当程序汪的第N天
我没秃,我还不够强
展开
-
【Bug】Collectors.toMap 重复问题与空值报错问题
Collectors.toMap 重复问题与空值报错问题原创 2022-07-29 09:13:29 · 734 阅读 · 0 评论 -
【Bug】SpringCloud Alibaba Nacos + Gateway 服务转发 503 Service Unavailable
Nacos 自带 spring-cloud-starter-netflix-ribbon,而 Netflix 的 Ribbon 已进入维护阶段,从最新的 SpringCloud 2020 版本开始就需要改用 Spring cloud loadbalancer<dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-n原创 2021-09-10 16:31:03 · 498 阅读 · 0 评论 -
【Bug】cnpm:无法加载文件 C:\Users\***\AppData\Roaming\npm\cnpm.ps1,因为在此系统上禁止运行脚本
解决方法:以管理员身份运行 power shell输入 set-ExecutionPolicy RemoteSigned输入 A 回车原创 2021-08-31 09:39:16 · 95 阅读 · 0 评论 -
SpringCloud Gateway:Consider defining a bean 问题
SpringCloud GatewayAPPLICATION FAILED TO STARTDescription:Parameter 0 of method modifyRequestBodyGatewayFilterFactory inorg.springframework.cloud.gateway.config.GatewayAutoConfiguration required a bean of type‘org.springframework.http.codec.ServerC原创 2021-05-21 09:49:57 · 722 阅读 · 0 评论 -
解决使用asp.net c# webservice输出json,后面多出{“d“:null}的问题
使用asp.net c# webservice输出json,会再后面多出{“d”:null}解决方法,原因是Request的Content-Type设置成了application/json,改成application/text就可以解决了。如果post传递参数有问题,那么改成application/x-www-form-urlencoded就可以解决。...转载 2021-01-07 17:23:00 · 1766 阅读 · 0 评论 -
【Bug】Linux关闭防火墙,Docker容器启动失败问题
Linux关闭防火墙,Docker容器启动失败由于Docker自身内部有一套网络,这套内部网路会依托Linux系统的防火墙,所以当我们将Linux系统的防火墙关闭时,Docker内部网络会被破坏,导致Docker容器启动异常抛错。解决方法: 重建Docker0网络重建Docker0网络按照进程名杀死docker进程pkill docker清空防火墙规则-清空nat表的所有链iptables -t nat -F查看定义规则的详细信息iptables -L -n -v 关原创 2020-07-13 08:30:20 · 2693 阅读 · 0 评论 -
【Bug】SQLyog连接MySQL时出现的2058错误解决方法
2058错误配置新连接报错:错误号码 2058,分析是 mysql 密码加密方法变了。解决方法:windows 下cmd 登录 mysql -u root -p 登录你的 mysql 数据库,然后执行这条SQL:ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';password 是你自己设置的root密码;然后在重新配置SQLyog的连接,则可连接成功了,就OK了。cmd中连接my原创 2020-07-01 15:06:50 · 457 阅读 · 1 评论 -
【Bug】SpringSecurity Oauth2 请求 Zuul 网关转发 token 丢失问题
请求 Zuul 网关转发参数丢失问题最近使用 spring security oauth2 进行登录的权限认证功能实现,认证服务器认证成功后,返回 token 参数。前台携带 token 参数请求资源服务器后,经过 zuul 网关转发后 token 丢失,请求返回401无法授权。认证服务器/** * @Classname: HMall * @Date: 2019-9-27 13:13 ...原创 2019-09-30 17:05:08 · 2226 阅读 · 2 评论 -
SpringSecurity Oauth2 解决 The bean 'metaDataSourceAdvisor', defined in null, could not be registered.
The bean ‘metaDataSourceAdvisor’, defined in null, could not be registered.安全配置/** * @Classname: HMall * @Date: 2019-9-27 14:49 * @Author: 98 * @Description: */@Configuration@EnableWebSecuri...原创 2019-09-28 23:30:41 · 10287 阅读 · 4 评论 -
【Bug】Vue安装sass-loader,node-sass失败问题
Vue安装style-loader失败原因和解决方法当前sass的版本太高,webpack编译时出现了错误,这个时候只需要换成低版本的就行,下面说一下修改方法,很简单,如下,找到package.json文件,里面的 "sass-loader"的版本更换掉 就行了。Vue安装sass-loader,node-sass失败# 安装 SASS 加载器npm install sass-loa...原创 2019-09-18 16:01:42 · 6311 阅读 · 1 评论 -
【Bug】Vue解决Couldn't find preset "es2015" relative to directory问题
Couldn’t find preset “es2015” relative to directory原因由于引入的 Element-UI 使用了ES标准,所以编译会报错。解决方法安装 ES 标准npm install babel-preset-es2015 --save-dev在webpack.base.conf.js文件中加入如下代码module: { loa...原创 2019-09-16 23:12:09 · 9161 阅读 · 2 评论 -
【Bug】SpringBoot解决The bean 'dataSource', defined in BeanDefinition defined in class path resource问题
The bean ‘dataSource’, defined in BeanDefinition defined in class path resource***************************APPLICATION FAILED TO START***************************Description:The bean 'dataSource'...原创 2019-09-10 12:43:50 · 1734 阅读 · 0 评论 -
【Bug】MySql导入SQL文件过大问题
MySql 导入 SQL 文件过大解决方法确保 MySql 服务开启通过 cmd 命令行工具开启mysql,输入以下命令set global max_allowed_packet = 1024 * 1024 * 180;原创 2019-09-10 10:38:56 · 475 阅读 · 0 评论 -
【Bug】XShell无法使用root用户连接Ubuntu问题
XShell无法使用root用户连接Ubuntu进入 /etc/ssh/ 目录修改 sshd_config 文件将 PermitRootLogin Prohibit-password 注释,新添加:PermitRootLogin yes3. 重启服务/etc/init.d/ssh restart重新用root账户连接,成功!!!...原创 2019-09-07 11:44:41 · 572 阅读 · 0 评论 -
【Bug】Dubbo整合SpringCloud Hystrix --- fallback method wasn't found问题
com.netflix.hystrix.contrib.javanica.exception.FallbackDefinitionException源代码:/** * @Author: 98 * @Date: 2019-8-29 20:23 */@RestControllerpublic class DemoController { @Reference(version =...原创 2019-09-05 12:57:34 · 233 阅读 · 0 评论 -
【Bug】SpringCloud Feign 调用服务 404 问题
feign.FeignException: status 404 reading xxxx method (String)错误原因注意:只能使用@RequstMapping注解,不能使用GetMapping注解参数没有使用注解指定@RequestParam(value = “…”,required = false) String xxx/** * @Author: 98 * @...原创 2019-08-14 13:12:59 · 5834 阅读 · 1 评论