项目
在 GitHub 查看
joshlong/bootiful-microservices
关于
公开 GitHub 仓库
其他项目实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Bootiful Microservices HOL
Prerequisites
Develop
Deploy and Manage
- Create a free account on Pivotal Web Services
- install the Cloud Foundry CLI
Running the Examples
To follow the simple Spring Boot CLI example:
- in a new file called
hi.groovytype:
@RestController
class GreetingsRestController {
@RequestMapping("/hi/{name}")
def hi(@PathVariable String name){
[ greeting : "Hello, "+name+"!" ]
}
}
- from the terminal in the same directory as the newly created
hi.groovy, runspring jar hi.jar hi.groovy - you'll be given a
.jarthat you can execute:java -jar hi.jar
Pushing to Cloud Foundry
cf loginto ensure that you've authenticated against your Pivotal Web Services account. My session looked like this, yours will feature your own Cloud Foundry credentials.
> cf login
API endpoint> api.run.pivotal.io
Email> [email protected]
Password>
Authenticating...
OK
Select an org (or press enter to skip):
1. platform-eng
2. codecafe
Org> 1
Targeted org platform-eng
Targeted space joshlong
API endpoint: https://api.run.pivotal.io (API version: 2.44.0)
User: [email protected]
Org: platform-eng
Space: joshlong
cf push -p hi.jar SOME_NAME_YOU_MAKEUP_HERE- theSOME_NAME_YOU_MAKEUP_HEREis arbitrary; it'll inform the URL that's used to mount the application and as such it shares a shared global (DNS) namespace
探索相关项目
加载中…