You can also add this in build.gradle :
springBoot {
buildInfo()
}
Then, you can use BuildProperties bean :
@Autowired
private BuildProperties buildProperties;
And get the version with buildProperties.getVersion()
You can also add this in build.gradle :
springBoot {
buildInfo()
}
Then, you can use BuildProperties bean :
@Autowired
private BuildProperties buildProperties;
And get the version with buildProperties.getVersion()