October 2018
Intermediate to advanced
590 pages
15h 5m
English
The /actuator/info endpoint, by default, is empty. We will need to add the following settings to application.properties so that we can see the basic information:
info.app.name=@name@info.app.description=@description@info.app.encoding=@project.build.sourceEncoding@info.app.java.source=@java.version@info.app.java.target=@java.version@
We can use @..@ placeholders to refer to our Maven properties because we use spring-boot-starter-parent. Beside this basic information, we can add build information into this endpoint by adding the build-info goal to the spring-boot-maven-plugin:
<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> ... <executions> <execution> <goals> <goal>build-info</goal> ...
Read now
Unlock full access