【发布时间】:2016-03-04 01:28:16
【问题描述】:
我有一个要部署到 Cloud Foundry 的 Spring Boot 应用程序。
应用程序将间歇性地不加载application.properties 的内容。在应用程序上下文中找不到属性,并且不遵守 application.properties 文件中的日志记录级别(使调试更加困难!)。
Spring Boot 是 1.2.5-RELEASE,我在其他应用程序中没有看到这种行为。
application.properties 文件在解压到 Cloud Foundry 中正在运行的 Warden 容器中时似乎是可读的。
有什么想法可以进一步调试吗?
【问题讨论】:
-
尝试将日志级别设置为cloud Foundry页面中的环境变量。
标签: java spring spring-boot cloud-foundry