问题描述
Spring Boot 2.3.2.RELEASE
sentry-spring 1.7.30
sentry-logging 1.7.30
我想在application.yml中设置dsn:
sentry:
dsn: ${DSN}
但不起作用。 仅当我创建具有相同属性(硬编码)的sentry.properties时,它才有效。 我的问题是yml config怎么了?
解决方法
我可能认为您已经用 ""
编写了 DSN。如果您想在 application.yml
中使用它,请不要使用 ""
。
sentry:
dsn: "https://[email protected]/0" //wrong
sentry:
dsn: "https://[email protected]/0" //ok