You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/07/30 06:47:11 UTC

[GitHub] [dubbo] yipixiaofeiyang edited a comment on issue #8359: Could not resolve placeholder 'dubbo.application' in value "${dubbo.application}"(dubbo 3.0+)

yipixiaofeiyang edited a comment on issue #8359:
URL: https://github.com/apache/dubbo/issues/8359#issuecomment-889669426


   @kevinw66 @kylixs 我今天在继续探索3.0的升级过程中, 又发现了个问题. 也和PropertySourcesPropertyResolver相关, 在原有的简易demo上引入了三方sdk, 比如aliyun-oss, 其中也有变量引入${aaa}, 如果采用
   `<bean id="propertiesUtil" class="org.springframework.context.support.PropertySourcesPlaceholderConfigurer"></bena>`
   的方式不会报错, 但是采用自定义类集成PropertySourcesPlaceholderConfigurer,如:
   `<bean id="propertiesUtil" class="com.wqh.demo.dobbo3.PropertiesUtil">`
    又会引发上面的(Could not resolve placeholder)问题, 
    同样, 我把版本回到2.7.8  程序又能正常运行! 请原谅我三番五次的对比和折磨!  因为这对我的项目很重要!
    详情可以参考下面改进后的demo
   [dobbo3-1.zip](https://github.com/apache/dubbo/files/6905569/dobbo3-1.zip)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org