0
  @Service(version = "${spring.dubbo.application.version}")

I want to let the version here read from the profile, how to do it, thank you, I need help

C.Champagne
  • 5,381
  • 2
  • 23
  • 35
netyjq
  • 23
  • 5

1 Answers1

0

I think you are asking a spring related question, so please check how to use @Value annotation of Spring from this post, or you can leverage Environment class to read property from configuration file like environment.getProperty("spring.dubbo.application.version").

kenshinji
  • 2,021
  • 4
  • 25
  • 39
  • I know what you are saying, sorry, I may not have made it clear that the `@Service` annotation here is provided by [Dubbo](http://dubbo.io/) and he does not support `@Value`. @kenshinji – netyjq Jul 04 '17 at 07:44