-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.9.0&1.9.1版本client集成dubbo 2.6.11 property-placeholder 不能生效 #4152
Comments
Any code can provide? Can Maybe xml can change to <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd"
default-lazy-init="true">
<dubbo:application name="app-web"></dubbo:application>
<dubbo:registry protocol="zookeeper" address="localhost:2181"
file="${user.home}/output/app-web.cache"/>
<dubbo:protocol name="dubbo" port="8080" threads="400"/> then test that The feature of resolving placeholder is added in pr #3349 |
和${user.home}无关,同样的配置,1.8.0以下的版本没问题,1.9.0和1.9.1就报错,我先弄个复现的例子工程 |
复现代码,参考附件 |
Hi, @nobodyiam @tietang I can not reproduce it chould you please share your copy @nobodyiam |
You can use the dubbo demo project in apollo-use-cases and then follow the steps below.
// set apollo meta server address, adjust to actual address if necessary
System.setProperty(ConfigConsts.APOLLO_META_KEY, "http://106.54.227.205:8080");
|
`beanFactory.isTypeMatch` may lead to the initialization of FactoryBean, dubbo consumer is a ReferenceBean which implements FactoryBean. related to apolloconfig#2328 apolloconfig#3865
Spring do not have api for this type of check, so the fix is a bit of dirty |
`beanFactory.isTypeMatch` may lead to the initialization of FactoryBean, dubbo consumer is a ReferenceBean which implements FactoryBean. related to apolloconfig#2328 apolloconfig#3865
1.9.2-SNAPSHOT was just released, would you please help to test with this version? <repositories>
<repository>
<id>sonatype-nexus-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
|
@nobodyiam 已经验证,问题已经解决了,非常感谢,辛苦了! |
`beanFactory.isTypeMatch` may lead to the initialization of FactoryBean, dubbo consumer is a ReferenceBean which implements FactoryBean. support spring 3 related to apolloconfig#2328 apolloconfig#3865 apolloconfig#4161 apolloconfig#4164
`beanFactory.isTypeMatch` may lead to the initialization of FactoryBean, dubbo consumer is a ReferenceBean which implements FactoryBean. support spring 3 related to apolloconfig#2328 apolloconfig#3865 apolloconfig#4161 apolloconfig#4164
`beanFactory.isTypeMatch` may lead to the initialization of FactoryBean, dubbo consumer is a ReferenceBean which implements FactoryBean. support spring 3 related to apolloconfig#2328 apolloconfig#3865 apolloconfig#4161 apolloconfig#4164
描述bug
1.9.0&1.9.1版本client+dubbo 2.6.11 +spring boot
使用@ImportResource 导入spring xml文件,在spring xml中的 property-placeholder 不能生效。
1.8.0 &1.7.0&1.6.2&1.5.1无此问题
复现
通过如下步骤可以复现:
@ImportResource(locations = {"classpath:application_dubbo.xml"})
期望
能正确获取配置,并启动应用。
截图
额外的细节和日志
The text was updated successfully, but these errors were encountered: