@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
@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
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")
.