[英]Spring Boot Micro-service fails Kerberos Authentication when deployed on Pivotal Cloud Foundry Platform
我们已经开发了一个Spring Boot应用程序来从HDP 2.5上的Hbase查询数据。
当我们在本地Windows机器上运行该应用程序时,它运行良好,因为它能够找到jaas.conf和krb5.conf文件,这些文件已保存在应用程序的resources文件夹下,并且在我们的代码中将它们作为系统属性提供了例如
System.setProperties("javax.security.auth.useSubjectCredsOnly","false"); System.setProperty("java.security.krb5.conf","D:\\\\host\\\\workspace\\\\projectname\\\\src\\\\main\\\\resources\\\\krb5.conf");
但是,当我们在PCF中进行部署时,它无法读取那些设置为系统属性的文件。
题
在PCF中设置环境变量的方法是什么?
我们如何将文件放置在PCF中,以便它们可用于应用程序的类路径?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.