Spring Cloud Config + ejb [英] Spring Cloud Config + ejb

查看:228
本文介绍了Spring Cloud Config + ejb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的应用设置Spring Cloud Config( http:// cloud .spring.io / spring-cloud-config / )做所有的集中式设置,但是有一个问题,我有一组10个应用程序,但是一个应用程序正在使用旧的EJB,有一些连接器或客户Spring Cloud Client Setup用于EJB?

I am setting for my application set the 'Spring Cloud Config' (http://cloud.spring.io/spring-cloud-config/) to make all the centralized settings, however there is a problem, I have a set of 10 applications, however an application is using legacy EJB, there are some connector or customer 'Spring Cloud Client Setup' for EJB?

推荐答案

使用spring-cloud-rest-client几乎可以解决这个问题,但是关于嵌套属性的一部分仍然存在,旧的java.util.Properties不能处理。例如,配置可能如下所示:

Using the spring-cloud-rest-client almost solves this issue, but one part still remains with regard to nested properties, which the old java.util.Properties doesn't handle. As example the configuration could be like:

part: def
sub_alpha: abc${part}ghi

弹簧云配置客户端将sub_alpha解析为sub_alpha = abcdefghi,但这样将会给出sub_alpha = abc $ {def

The spring cloud config clients resolves the sub_alpha to sub_alpha=abcdefg but this way will give sub_alpha=abc${def}ghi.

我还在努力解决问题,但我猜有人有问题。

I'm still working to solve the problem, but I guess someone had the problem before.

这篇关于Spring Cloud Config + ejb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆