我尝试在 Spring Boot 中实现基于配置文件的应用程序,这显然适用于 Spring Boot。但是当我尝试为弹性搜索 APM 实现它时,它不起作用。
根据这里:我们可以用 elastic.apm 前缀描述属性:
elastic.apm.service_name=my-cool-service
elastic.apm.application_packages=org.example,org.another.example
elastic.apm.server_urls=http://localhost:8200
但它不起作用。当我用 elasticapm.properties 调用它时,它可以工作。
你有什么建议吗?