Spring boot 访问pivotal cloud foundry中与配置服务绑定的应用程序的密码是什么

Spring boot 访问pivotal cloud foundry中与配置服务绑定的应用程序的密码是什么,spring-boot,cloud-foundry,pcf,Spring Boot,Cloud Foundry,Pcf,我对pivotal cloud foundry的spring boot非常陌生。我能够部署应用程序并将其绑定到配置服务器。当我访问应用程序时,它会询问登录详细信息。我试过了,但没用。几天来,我一直在努力寻找这方面的资质。有人能帮我找到用户名和密码吗 我已经检查了VCAP_服务环境变量,但运气不好。下面是我的VCAP_服务 { "VCAP_SERVICES": { "p-config-server": [ { "binding_name": null, "credent

我对pivotal cloud foundry的spring boot非常陌生。我能够部署应用程序并将其绑定到配置服务器。当我访问应用程序时,它会询问登录详细信息。我试过了,但没用。几天来,我一直在努力寻找这方面的资质。有人能帮我找到用户名和密码吗

我已经检查了VCAP_服务环境变量,但运气不好。下面是我的VCAP_服务

{
 "VCAP_SERVICES": {
  "p-config-server": [
   {
    "binding_name": null,
    "credentials": {
     "access_token_uri": "https://p-spring-cloud-services.uaa.run.pivotal.io/oau
th/token",
     "client_id": "p-config-server-066a4553-a934-4d52-b016-30e2ab7e6d90",
     "client_secret": "rHnPwJj613pP",
     "uri": "https://config-da1be911-4c82-41a3-a3bd-0b06ea295480.cfapps.io"
    },
    "instance_name": "config-server",
    "label": "p-config-server",
    "name": "config-server",
    "plan": "trial",
    "provider": null,
    "syslog_drain_url": null,
    "tags": [
     "configuration",
     "spring-cloud"
    ],
    "volume_mounts": []
   }
  ],
  "p-service-registry": [
   {
    "binding_name": null,
    "credentials": {
     "access_token_uri": "https://p-spring-cloud-services.uaa.run.pivotal.io/oau
th/token",
     "client_id": "p-service-registry-ae9f69cf-258d-45ea-821e-1fa4db37f1a3",
     "client_secret": "XJOLKHZqwssd",
     "uri": "https://eureka-89a144f4-7dc7-4b6d-8152-c4414b748ec0.cfapps.io"
    },
    "instance_name": "service-registry",
    "label": "p-service-registry",
    "name": "service-registry",
    "plan": "trial",
    "provider": null,
    "syslog_drain_url": null,
    "tags": [
     "eureka",
     "discovery",
     "registry",
     "spring-cloud"
    ],
    "volume_mounts": []
   }
  ]
 }
}

{
 "VCAP_APPLICATION": {
  "application_id": "1b398fd8-61f2-47e3-875d-d3fe7574513a",
  "application_name": "customer-service",
  "application_uris": [
   "customer-service-demo.cfapps.io"
  ],
  "application_version": "d0243f11-b7af-4bb3-b3a3-b7a4c95e6298",
  "cf_api": "https://api.run.pivotal.io",
  "limits": {
   "disk": 1024,
   "fds": 16384,
   "mem": 1024
  },
  "name": "customer-service",
  "organization_id": "8e425cae-75a0-433a-a8a7-79c4f81d7c85",
  "organization_name": "MSA_springboot",
  "process_id": "1b398fd8-61f2-47e3-875d-d3fe7574513a",
  "process_type": "web",
  "space_id": "8902b90c-9964-4f9d-b426-ca1635589ebe",
  "space_name": "development",
  "uris": [
   "customer-service-demo.cfapps.io"
  ],
  "users": null,
  "version": "d0243f11-b7af-4bb3-b3a3-b7a4c95e6298"
 }
}

User-Provided:
SPRING_PROFILES_ACTIVE: dev

No running env variables have been set

No staging env variables have been set```[enter image description here][1]


  [1]: https://i.stack.imgur.com/9kNWC.png

Pivotal Spring Cloud Config Server和Pivotal Service Registry都不需要基于表单的登录。这可能是应用程序中的其他内容,可能是触发了Spring Security的自动配置。我建议您查看应用程序日志(即
cf日志
)。在某些情况下,Spring Boot会随机生成cred,并将其打印到日志中。您可以在日志中看到应用程序是如何启动的。将
--debug
添加到
JAVA_OPTS
env变量将为您提供有关应用程序如何启动以及正在运行的自动配置的更多详细信息。希望有帮助!你好,丹尼尔,谢谢你的回复。我已经查过日志了。我找不到任何相关的细节。我在github中添加了日志和代码。以下是[链接][链接]。你能帮我解决这个登录问题吗?我只是在pom.xml文件
io.pivotal.spring.cloud-spring-cloud-spring-services-starter-service-registry 2.1.4.RELEASE中添加了以下依赖项时才遇到这个登录问题。我不明白它为什么会导致问题。对不起,我忘了这个。SCS客户端确实引入了一些Spring安全性,这在某些情况下会触发启用基本身份验证。似乎您遇到了类似的问题,请尝试此处的说明->