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

五里桥街道网站建设佛山企业

五里桥街道网站建设,佛山企业,东莞市门户网站建设怎么样,黄石网站设计制作公司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/26296/

相关文章:

  • 网站建设哪家网站建设好垂直电商平台有哪些?
  • 用层还是表格做网站快淄博网站建设培训班
  • 网络营销策划的基本策略seo站长工具下载
  • 简单的网站代码wordpress建站插件
  • 做企业云网站的企业软件工程考研学校推荐
  • 企业网站建设制作多少钱相机网站建设规划书
  • 仿站仿淘宝客网站视频教程做平面素材好的网站
  • 怎么做网站服务器吗应用公园app平台官网
  • 网站设置不拦截wordpress load-scripts.php
  • 网站图片移动怎么做js网站页面效果代码
  • 个人网站建设yxhuying江苏建设工程交易中心网站
  • 常州交通建设管理有限公司网站建设龙卡e付卡网站
  • 北京建网站找哪个公司东营伟浩建设集团网站
  • 武功县住房和城乡建设局网站如何申请企业邮箱免费
  • 国外摄影网站提供常州网站优化
  • 上海英文网站建设电脑在哪里制作网站
  • 专门做游轮的网站网站验证码原理
  • 文登区城乡建设局网站如何创立个人网站
  • 一个网站开发怎么建微信公众号
  • 常州模板建站代理wordpress 离线发布
  • 方维网站建设wordpress子网站
  • 成都网站建设服务网站建设盐城
  • 上海高端网站设计公司网站内部资源推广的基本方法
  • 商水县建设局网站一般的企业网站开发价格
  • 高度重视机关门户网站建设肇庆企业免费建站
  • 沈阳网站改版网站建设各部门职责策划
  • 个人秀网站wordpress类与函数的差别
  • 电子商务网站免费模板soho建设外贸网站
  • 专业做尼泊尔的旅行网站loft办公室装修设计方案
  • html5移动网站开发实例2022最火的新零售模式