Sign inSign up

divenswu/springboot-docker

By divenswu

•Updated over 5 years ago

springboot 模拟程序,可用于测试负载均衡等。

Image
1

476

divenswu/springboot-docker repository overview

⁠1、运行

docker run -p 18182:8080 -t divenswu/springboot-docker

⁠2、访问

(1)无负载访问:

a.请求地址:http://127.0.01:18182/xxccc/vvvv⁠ (path可以动态设置)

b.请求返回:{"hostIp":"127.0.01","hostName":"9f0dea743c1f","requestPath":"http://127.0.01:18182/xxccc/vvvv⁠", "costTime":0}

(2)有负载访问:

a.请求地址:http://127.0.01:18182/xxccc/vvvv?timeout=1⁠ (后端有累加数据,模拟负载,消耗的时间 约等于 timeout的时间)

b.请求返回:{"hostIp":"127.0.01","hostName":"9f0dea743c1f","requestPath":"http://127.0.01:18182/xxccc/vvvv","costTime":1106}⁠

⁠3、git地址

Tag summary

Content type

Image

Digest

Size

62.9 MB

Last updated

over 5 years ago

docker pull divenswu/springboot-docker