Skip to content

devane001/pcf-spring-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README.md

require

  • redis

start

cf login
cf cs rediscloud 30mb fan-redis
mvn clean package
cf push

获取域名

cf r | grep fan-spring | awk '{print $2"."$3}'

本地发送请求

curl $(cf r | grep fan-spring | awk '{print $2"."$3}')/city \
  -X POST \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -d "{\"id\": 1,\"provinceId\": 3,\"cityName\": \"Shanghai\",\"description\": \"Shanghai\"}"
  
curl $(cf r | grep fan-spring | awk '{print $2"."$3}')/city/1

stop

cf delete fan-spring -f
cf ds fan-redis -f
cf delete-route $(cf r | grep fan-spring | awk '{print $3}') -n $(cf r | grep fan-spring | awk '{print $2}') -f

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages