当前位置: 首页 > news >正文

网站前置审批证书aso优化方案

网站前置审批证书,aso优化方案,图片手机网站建设,手机网站域名开头1、直入正题#xff0c;下载sentinel的jar包 1.1 直接到Sentinel官网里的releases下即可下载最新版本#xff0c;Sentinel官方下载地址#xff0c;直接下载jar包即可。不过慢#xff0c;可能下载不下来 1.2 可以去gitee去下载jar包 1.3 下载完成后#xff0c;进行打包…1、直入正题下载sentinel的jar包 1.1 直接到Sentinel官网里的releases下即可下载最新版本Sentinel官方下载地址直接下载jar包即可。不过慢可能下载不下来 1.2 可以去gitee去下载jar包 1.3 下载完成后进行打包 1.4 执行命令 打开命令行窗口进入到项目里面执行 mvn clean package -DskipTests2、打包完成后直接启动 java -jar sentinel-dashboard.jar3、启动成功 4、web页面 浏览器输入localhost:8084 账号密码sentinel5、编写项目导入pom依赖 ?xml version1.0 encodingUTF-8? project xmlnshttp://maven.apache.org/POM/4.0.0xmlns:xsihttp://www.w3.org/2001/XMLSchema-instancexsi:schemaLocationhttp://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsdmodelVersion4.0.0/modelVersiongroupIdorg.example/groupIdartifactIdsentinel/artifactIdversion1.0-SNAPSHOT/versionpropertiesmaven.compiler.source8/maven.compiler.sourcemaven.compiler.target8/maven.compiler.targetproject.build.sourceEncodingUTF-8/project.build.sourceEncoding/propertiesparentgroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-parent/artifactIdversion2.2.7.RELEASE/versionrelativePath//parentdependenciesdependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-web/artifactIdversion2.2.4.RELEASE/version/dependencydependencygroupIdorg.mybatis.spring.boot/groupIdartifactIdmybatis-spring-boot-starter/artifactIdversion1.3.2/version/dependencydependencygroupIdcom.alibaba.cloud/groupIdartifactIdspring-cloud-starter-alibaba-sentinel/artifactIdversion2.2.5.RELEASE/version/dependency/dependencies /project6、新建application.yml文件 server:port: 8001 spring:application:name: sentinel-servicecloud:sentinel:transport:dashboard: localhost:8084eager: true management:endpoint:web:exposure:include: *7、新建启动类 package com.xxx;import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;SpringBootApplication(exclude DataSourceAutoConfiguration.class) public class SentinelServiceApplication {public static void main(String[] args) {SpringApplication.run(SentinelServiceApplication.class,args);} }8、新建controller package com.xxx.controller;import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController;RestController RequestMapping(value test) public class TestController {GetMapping(value /a)public String test1() {return Hello,Sentinel -- 1;}GetMapping(value /b)public String test2() {return Hello,Sentinel -- 2;} }9、启动项目调用接口 http://localhost:8001/test/a http://localhost:8001/test/b 有的时候在Sentinel控制台的簇点链路只显示/error和/**无法显示相应的资源 解决方式将这个依赖版本升级为2.2.5 即可dependencygroupIdcom.alibaba.cloud/groupIdartifactIdspring-cloud-starter-alibaba-sentinel/artifactIdversion2.2.5.RELEASE/version/dependency10、现在给/test/a限流 点击流控按钮新增流控规则即可 11、页面展示 连续点击三次就会出现限流操作至此 搭建完成。。。
http://www.zqtcl.cn/news/643405/

相关文章:

  • 如何在百度上搜索到自己的网站提升关键词
  • asp net做网站建设英文网站的公司
  • 旅游英文网站 建设需求WordPress首页id
  • 南宁网站如何制作网站seo查询站长之家
  • 网站备案太麻烦门户网站模板
  • 九江建网站多少钱打开云南省住房和城乡建设厅网站
  • 合肥市门户网站wordpress登陆不上
  • 摄影网站在线建设办公室设计装修
  • 深圳市移动端网站建设游戏网站建设与策划方案
  • wap版网站 加app提示厦门网站seo优化
  • 旅游网站 功能建设银行网站会员
  • 公园网站建设wordpress 分类目录使用英文
  • 苏州高端网站设计制作wordpress改固定连接
  • 门户网站开源sae安装wordpress
  • 建设彩票网站需要哪些要求城乡与住房建设厅网站首页
  • 公司做网站费用计入什么科目网络建设规划
  • 外贸网站建设案例深圳设计网站培训
  • 龙岗地区做网站公司北京装饰公司排行 2019
  • 大企业网站建设方案wordpress博客模板查询
  • 手机网站建设动态公司做网站效果怎么样
  • 网站推广和优化教程上海网络科技有限公司招聘
  • 即墨建网站价格商城二次开发
  • 网站排名易下拉教程怎么做网店运营
  • 聊城做网站公司聊城博达海外服务器租用多少钱一年
  • 手机上网站做国外销售都上什么网站
  • 网站建设与管理报告书做电销有什么资料网站
  • 网站建设哪家最好企业商城网站建设方案
  • 舟山市建设工程质量监督站网站网页版微信二维码加载失败
  • 金融网站html5模板给自己家的公司做网站好做吗
  • 新农村建设投诉在哪个网站上海做电缆桥架的公司网站