简体   繁体   English

无法访问Play框架中的Cloud Foundry自动配置(application.conf文件)

[英]Not able to access cloud foundry auto configuration in play framework (application.conf file)

I have use this link https://www.playframework.com/documentation/2.5.x/Deploying-CloudFoundry for auto configuration. 我使用此链接https://www.playframework.com/documentation/2.5.x/Deploying-CloudFoundry进行自动配置。 I have done in my application.conf. 我已经在我的application.conf中完成了。

db.default.driver=${?cloud.services.mysql.connection.driver}
db.default.url=${?cloud.services.mysql.connection.url}
db.default.password=${?cloud.services.mysql.connection.password}
db.default.username=${?cloud.services.mysql.connection.username}

Its throwing an following error . 其引发以下错误。 ERR Caused by: Configuration error: Configuration error[dataSource or dataSourceClassName or jdbcUrl is required.] ERR原因:配置错误:配置错误[需要dataSource或dataSourceClassName或jdbcUrl。

播放框架2.5尚未实现此功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从 play 框架中的 application.conf 文件中读取属性? - How to read a property from the application.conf file in play framework? 无法从Play框架2.4中的cron作业加载application.conf - Not able to load application.conf from cron job in play framework 2.4 在application.conf中包含的conf文件中使用Play Server的ID - Use ID of Play Server in a conf file included in application.conf 如何在Play Framework(Java)2.3.x中的application.conf文件中为键设置值 - How to set a value to a key in application.conf file in Play Framework (Java) 2.3.x Play Framework + Spring:从application.conf注入URL - Play Framework + Spring: Injecting URL from application.conf 在GlobalSettings onStart(Play Framework)中访问application.conf - Accessing application.conf in GlobalSettings onStart (Play Framework) Java Play 覆盖 application.conf 中的端口 - Java Play overwrites port in application.conf 在Play Java应用中标记化application.conf - tokenize application.conf in play java app 如何在Glassfish上部署Play Framework 2.4应用程序并阅读application.conf - How to deploy play framework 2.4 application on glassfish and read application.conf Play Framework 2.7.0 Config,无需通过application.conf进行常规配置即可进行测试 - Play Framework 2.7.0 Config for tests without general configurations from application.conf
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM