没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
目标:本示例说明使用Ribbon实现服务消费动作。 开发环境:IDEA集成工具,JDK 1.8 使用步骤:下载资源后解压项目,使用IDEA导入项目文件。 1. 在找C:\Windows\System32\drivers\etc\hosts文件,在最配置文件添加 127.0.0.1 peer-one 127.0.0.1 peer-two 2. 在IDEA工具的右上角开启动所有项目。等四个子模块项目开启成功后(如果你的机器内存4G,可能开启不成功,建议最小内存为8G),打开浏览器,在地址栏输入:http://localhost:8888/ribbon-consumer后回车。 如果一切正常,你会在页面中看到“Hello啊”字样,并且在控制台可以看到消费模块项目使用日志对象的服务消费信息,并且可以看到ribbon实现了客户端的负载均衡效果。 阅读对象:想学习Spring 5.x版本的Spring Cloud开发小白。 :想学习使用Spring 5.x版本实现的Spring Cloud编程和微服开发的小白。 使用maven构建,你可以慢慢阅读四个模块项目的配置,以及注解代码,非常简单,保证一看就懂啊。
资源推荐
资源详情
资源评论
收起资源包目录
3. 服务消费及负载均衡.rar (91个子文件)
spring_cloud_one
gradlew 5KB
my-spring-one
mvnw.cmd 6KB
HELP.md 532B
mvnw 9KB
src
test
java
com
ljxt
myspringone
MySpringOneApplicationTests.java 351B
main
resources
application.properties 135B
templates
static
java
com
ljxt
myspringone
ServletInitializer.java 430B
MySpringOneApplication.java 431B
HelloController.java 1019B
target
generated-test-sources
test-annotations
generated-sources
annotations
classes
application.properties 135B
com
ljxt
myspringone
HelloController.class 2KB
ServletInitializer.class 934B
MySpringOneApplication.class 835B
test-classes
com
ljxt
myspringone
MySpringOneApplicationTests.class 651B
.mvn
wrapper
MavenWrapperDownloader.java 5KB
maven-wrapper.jar 47KB
maven-wrapper.properties 116B
pom.xml 2KB
.gitignore 303B
settings.gradle 41B
my-spring-two
mvnw.cmd 6KB
HELP.md 636B
mvnw 9KB
src
test
java
com
ljxt
myspringtwo
MySpringTwoApplicationTests.java 351B
main
resources
application.properties 188B
templates
static
java
com
ljxt
myspringtwo
MySpringTwoApplication.java 430B
ServletInitializer.java 430B
target
generated-test-sources
test-annotations
generated-sources
annotations
classes
application.properties 188B
com
ljxt
myspringtwo
MySpringTwoApplication.class 837B
ServletInitializer.class 934B
test-classes
com
ljxt
myspringtwo
MySpringTwoApplicationTests.class 651B
.mvn
wrapper
MavenWrapperDownloader.java 5KB
maven-wrapper.jar 47KB
maven-wrapper.properties 116B
pom.xml 2KB
my-spring-two.iml 81B
.gitignore 303B
.idea
misc.xml 1KB
compiler.xml 1KB
workspace.xml 30KB
gradle.xml 590B
encodings.xml 581B
gradle
wrapper
gradle-wrapper.properties 201B
gradle-wrapper.jar 55KB
.gradle
buildOutputCleanup
outputFiles.bin 18KB
cache.properties 52B
buildOutputCleanup.lock 17B
vcs-1
gc.properties 0B
4.10
fileChanges
last-build.bin 1B
taskHistory
taskHistory.lock 17B
taskHistory.bin 20KB
vcsMetadata-1
fileHashes
fileHashes.bin 18KB
fileHashes.lock 17B
gc.properties 0B
gradlew.bat 2KB
my-spring-four
mvnw.cmd 6KB
HELP.md 532B
mvnw 9KB
src
test
java
com
ljxt
myspringfour
MySpringFourApplicationTests.java 353B
main
resources
application.properties 155B
templates
static
java
com
ljxt
myspringfour
ConsumerController.java 716B
ServletInitializer.java 432B
MySpringFourApplication.java 708B
target
generated-test-sources
test-annotations
generated-sources
annotations
classes
application.properties 155B
com
ljxt
myspringfour
MySpringFourApplication.class 1KB
ServletInitializer.class 938B
ConsumerController.class 1KB
test-classes
com
ljxt
myspringfour
MySpringFourApplicationTests.class 656B
.mvn
wrapper
MavenWrapperDownloader.java 5KB
maven-wrapper.jar 47KB
maven-wrapper.properties 116B
pom.xml 3KB
.gitignore 303B
my-spring-three
mvnw.cmd 6KB
HELP.md 636B
mvnw 9KB
src
test
java
com
ljxt
myspringthree
MySpringThreeApplicationTests.java 355B
main
resources
application.properties 399B
templates
static
java
com
ljxt
myspringthree
ServletInitializer.java 434B
MySpringThreeApplication.java 436B
target
generated-test-sources
test-annotations
generated-sources
annotations
classes
application.properties 399B
com
ljxt
myspringthree
MySpringThreeApplication.class 847B
ServletInitializer.class 942B
test-classes
com
ljxt
myspringthree
MySpringThreeApplicationTests.class 661B
.mvn
wrapper
MavenWrapperDownloader.java 5KB
maven-wrapper.jar 47KB
maven-wrapper.properties 116B
my-spring-three.iml 81B
pom.xml 2KB
.gitignore 303B
build.gradle 44B
共 91 条
- 1
资源评论
技术大黍-曾老师
- 粉丝: 109
- 资源: 108
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 解决未在远程桌面会话中捕获到鼠标,vmguest.iso软件分享给大家
- JSP+SQL基于WEB的开放性实验管理系统设计与实现(源代码+论文+开题报告+中英文献+答辩PPT).rar
- log4net配置文件!!!!!!!!!!!!!!!!!
- 河南统计面板数据集(2010-2022年).xlsx
- OrcaleDBHelper帮助类!!!!!!!!!!!!
- log4net帮助类,用来写日志!!!!!!!!!!!!!
- Windows10时间同步源
- 信呼OA系统2.1.7版源码
- 3122080306 邹子轩 实验报告二.docx
- 基于STM32 NUCLEO板设计彩色LED照明灯(纯cubeMX开发)(大赛作品,文档完整,可直接运行)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功