Reputation: 84
My info endpoint is fetching details of another API. I have a dependency of another api in one of the module.
I only have one build.properties file and one application.properties file
But somehow when the application starts the info endpoint is showing wrong information
application.properties
#Spring configs
spring.application.name=MY API
spring.main.allow-bean-definition-overriding=false
info.app.name=${spring.application.name}
info.app.version=${project.version}
info.app.description= decsription
management.info.env.enabled=true
management.endpoints.web.exposure.include=health,info
management.info.build.enabled=true
management.info.git.enabled=true
Build.properties
info.app.name = ${project.name}
info.app.version = ${project.version}
info.app.description = ${project.description}
info.build.branch = ${scmBranch}
info.build.number = ${buildNumber}
info.build.date = ${timestamp}
Upvotes: 0
Views: 8