简体   繁体   English

Spring Cloud Config-jce jar文件的自定义位置

[英]Spring cloud config -Custom location of jce jar files

For reasons outside my control, I am not allowed to edit the Jre and add the two jce jars to it. 由于无法控制的原因,不允许编辑Jre并将两个jce jar添加到其中。 Is there anyway I can tell my config server when it starts up that the location of those two jar files is in a custom location? 无论如何,我可以在配置服务器启动时告诉我这两个jar文件的位置在自定义位置吗? I have tried the following option- Added it in the root of application directory. 我尝试了以下选项-将其添加到应用程序目录的根目录中。

But. 但。 Spring is not able to pick it up. Spring无法接收它。

Thank you in advance. 先感谢您。

Not that I know of. 从来没听说过。 This is not a config server problem, but a JRE problem. 这不是配置服务器问题,而是JRE问题。 Later version of the JRE ship with JCE policy files and later even still it's enabled by default https://golb.hplar.ch/p/JCE-policy-changes-in-Java-SE-8u151-and-8u152 JRE的更高版本随附JCE策略文件,甚至更高版本仍默认情况下启用https://golb.hplar.ch/p/JCE-policy-changes-in-Java-SE-8u151-and-8u152

It's not a JRE problem (you need to copy the two jce jars to JRE security library. The Oracle website already described the procedure. However, I guess the question was asking, how to do so to the embedded tomcat within a spring boot application. 这不是一个JRE问题(您需要将两个jce jar复制到JRE安全库中。Oracle网站已经描述了该过程。但是,我想这个问题是在问如何在Spring Boot应用程序中的嵌入式tomcat中这样做。

Read this post for further informations. 阅读这篇文章以获取更多信息。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM