摘要:
rockylinux8默认使用podman代替podman,但是在使用podman+portainer时出现不少问题,所以打算安装回docker,在此记录一下 安装docker yum install -y https://download.docker.com/linux/centos/8/x86 阅读全文
摘要:
参考博文 实战代码(十):Springboot RestTemplate连接池 记一次使用BCryptPasswordEncoder,设置了不合理参数导致耗时严重的坑 高安全加密BCrypt及其性能缺陷 背景 项目上线前测试人员对接口进行性能测试时, 发现某个接口TPS仅在27-30左右浮动, CP 阅读全文
摘要:
参考: https://www.cnblogs.com/flydean/p/15292400.html 问题 项目中使用Spring Security+JWT做认证授权 做修改密码逻辑时原逻辑如下 select oldPwd from user where id = 1; if(oldPwd.equ 阅读全文
摘要:
解决方法 sentinel包移除xml相关 <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId> <exclusions> <e 阅读全文
摘要:
参考文档及博客 nacos官方集群部署说明 centos7安装并配置jdk nacos2.x集群实现 centos7安装mysql8 使用nginx反代nacos报错 badrequest 400 环境准备 vmware虚拟机上跑的centos7 (原本内存2g 坑点之一!2g内存无法启动三台nac 阅读全文
摘要:
https://blog.51cto.com/u_15437298/4694156 相同点 都是将自身作为服务向注册中心注册 不同点 @EnabledEurekaClient 只能向 eureka 注册 @EnabledDiscoveryClient 通用 Extra 从Spring Cloud E 阅读全文
摘要:
问题 在hystrix-dashboard界面中出现以下错误 解决方法 高版本(具体哪些版本之后我不知道,加上去试试)springcloud需要加以下配置(在被监控一端): @Configuration public class HystrixConfig { @Bean public Servle 阅读全文
摘要:
@HystrixCommand(fallbackMethod = "fallback", //降级方法 commandProperties = { @HystrixProperty(name = "circuitBreaker.enabled", value = "true"), @HystrixP 阅读全文
摘要:
问题 程序报错 fallback method wasn't found: fallback2([class java.lang.Integer]) 原因 hystrix降级的fallback方法需要与原方法有相同的返回类型和参数列表,fallback方法可以在参数列表后加一个Throwable类型 阅读全文
摘要:
问题 # 开启服务降级 feign: hystrix: enabled: true 开启服务降级并设置降级fallback方法 调用list方法时可以正常获取服务提供端返回的数据并返回给浏览器,但是调用timeout时会无限进入对应的fallback方法,但是从日志可以看出服务提供端确实将数据正确返 阅读全文
