我正在尝试在我的 spring boot 应用程序中设置执行器端点,但我无法获得我在 application.yml 中设置的值。这是我到目前为止的配置:
src/main/resources/application.yml
info.app:
description: mydescription
name: myname
version: 1.0
management.contextPath: /rest/internal/application
但是,当我尝试访问端点时,我只会得到这个:
rest call to http://localhost:8090/rest/internal/application/info
{
"Manifest-Version":"1.0",
"Created-By":"1.6.0_18 (Sun Microsystems Inc.)"
}
那么,我做错了什么?