2023年7月10日

springcloud alibaba -sentinel 配置持久化(datasource -nacos)

摘要: 当我们对sentinel进行规则配置之后如果关闭服务在重新启动会发现配置的服务消失了,这样很不方便的,我们需要将它持久化,使用nacos对其进行持久化 1. 导入依赖 让sentinel和nacos产生关系 <!--SpringCloud ailibaba sentinel-datasource-n 阅读全文

posted @ 2023-07-10 23:19 你就学个JVAV? 阅读(310) 评论(0) 推荐(0)

springcloud -sentinel 整合ribbon ,openfeign + fallback

摘要: ||||||| ribbon ||||||| // provider 服务提供方 pom核心依赖 <dependencies> <!--SpringCloud ailibaba nacos --> <dependency> <groupId>com.alibaba.cloud</groupId> < 阅读全文

posted @ 2023-07-10 23:11 你就学个JVAV? 阅读(51) 评论(0) 推荐(0)

springcloud -sentinel 用户自定义限流错误处理(仅限限流异常,其他异常请使用fallback属性)

摘要: pom依赖 <!--SpringCloud ailibaba nacos --> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</a 阅读全文

posted @ 2023-07-10 19:58 你就学个JVAV? 阅读(144) 评论(0) 推荐(0)

springcloudalibaba -nacos集群

摘要: 按照nacos_config.sql创建数据库 在 /nacos/conf/application.properties的最后添加上 spring.datasource.platform=mysql #127.0.0.1 是mysql所在主机的ip db.num=1 db.url.0=jdbc:my 阅读全文

posted @ 2023-07-10 10:06 你就学个JVAV? 阅读(36) 评论(0) 推荐(0)

nginx负载均衡配置

摘要: user www www; worker_processes auto; error_log /www/wwwlogs/nginx_error.log crit; pid /www/server/nginx/logs/nginx.pid; worker_rlimit_nofile 51200; st 阅读全文

posted @ 2023-07-10 09:53 你就学个JVAV? 阅读(29) 评论(0) 推荐(0)

导航