小编Ben*_*Ben的帖子

Cloudfoundry Spring MongoDB示例应用程序无法部署

当我尝试使用MongoDB(hello-spring-mongodb)部署示例Java Spring应用程序时,我得到下面粘贴的错误,这表明MongoDB服务无法绑定.我在所有自己的应用程序中也遇到了这个错误,从命令行和STS 3.0.0部署.关键错误是:

创建名为'mongoDbFactory'的bean时出错:init方法的调用失败; 嵌套异常是org.cloudfoundry.runtime.env.CloudServiceException:类org.cloudfoundry.runtime.env.MongoServiceInfo类的预期1服务,但是找到了0

完整跟踪:

Bind existing services to 'hello-weeels'? [yN]: 
Create services to bind to 'hello-weeels'? [yN]: y
1: mongodb
2: mysql
3: postgresql
4: rabbitmq
5: redis
What kind of service?: 1
Specify the name of the service [mongodb-9c56b]: 
Create another? [yN]: n
Would you like to save this configuration? [yN]: y
Manifest written to manifest.yml.
Creating Application: OK
Creating Service [mongodb-9c56b]: OK
Binding Service [mongodb-9c56b]: OK
Uploading Application:
  Checking for available resources: OK
  Processing …
Run Code Online (Sandbox Code Playgroud)

spring mongodb cloud-foundry

3
推荐指数
1
解决办法
2349
查看次数

标签 统计

cloud-foundry ×1

mongodb ×1

spring ×1