I\'m trying to display the application version of my Spring Boot application in a view. I\'m sure I can access this version information, I just don\'t know how.
I tr
You can also add this in build.gradle :
build.gradle
springBoot { buildInfo() }
Then, you can use BuildProperties bean :
BuildProperties
@Autowired private BuildProperties buildProperties;
And get the version with buildProperties.getVersion()
buildProperties.getVersion()