consul搭建注册中心 逃离我推掉我的手 2022-12-03 02:23 203阅读 0赞 ## 一、环境搭建 ## 搭建consul环境,请查看我的相关博客[https://blog.csdn.net/huangbaokang/article/details/108057911][https_blog.csdn.net_huangbaokang_article_details_108057911] windows版的,直接cmd到目录,启动consul命令即可。 consul agent -dev -ui -node=cy \-dev开发服务器模式启动,-node结点名为cy,-ui可以用界面访问,默认能访问。 测试访问地址:http://localhost:8500 ## 二、会员项目 ## pom.xml <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.1.RELEASE</version> </parent> <!-- 管理依赖 --> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>Finchley.M7</version> <type>pom</type> &l [https_blog.csdn.net_huangbaokang_article_details_108057911]: https://blog.csdn.net/huangbaokang/article/details/108057911
还没有评论,来说两句吧...